Torrent downloader with VPN only Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
przemko
Posts: 170
Joined: Sun Mar 15, 2020 5:40 pm

Re: Torrent downloader with VPN only

Post by przemko »

Hi, today after connection lost I try to restart my Raspberry and it wont run :(
Is it possible to rescue my Dietpi installation?
Regards.
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: Torrent downloader with VPN only

Post by Joulinar »

best would be to use a USB connector and plug your SD card into another Linux box to be able to run some file system checks
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 170
Joined: Sun Mar 15, 2020 5:40 pm

Re: Torrent downloader with VPN only

Post by przemko »

I put my sc-card and start `badblocks -n -v`.
Boot partition went fast:

Code: Select all

sudo badblocks -n -v /dev/mmcblk0p1
Poszukiwanie wadliwych bloków w trybie z niedestruktywnym zapisem
Od bloku 0 do 262143
Testowanie wzorcem losowym: 0
Przebieg zakończony, znaleziono 0 wadliwych bloków (błędów: 0/0/0)

0 Errors.

Rootfs going very slow:

Code: Select all

sudo badblocks -n -v /dev/mmcblk0p2
Poszukiwanie wadliwych bloków w trybie z niedestruktywnym zapisem
Od bloku 0 do 30900735
Testowanie wzorcem losowym: 0
12339828
12339829
12339830
12339831
...
It is OK, or stop that test and start another? Do You recommend something different?

Regards.
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: Torrent downloader with VPN only

Post by Joulinar »

hi,

I guess you placed the SD card into another system via USB port? If yes, you would need to check /dev/sda1 and /dev/sda2.

/dev/mmcblk0 is the SD card you are booting from

To show all devices connected

Code: Select all

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 170
Joined: Sun Mar 15, 2020 5:40 pm

Re: Torrent downloader with VPN only

Post by przemko »

I connect sd-card to card reader in my laptop.
When test ends I have 4 corrupted blocks.

Code: Select all

sudo badblocks -n -v /dev/mmcblk0p2
Poszukiwanie wadliwych bloków w trybie z niedestruktywnym zapisem
Od bloku 0 do 30900735
Testowanie wzorcem losowym: 0
12339828
12339829
12339830
12339831
Przebieg zakończony, znaleziono 4 wadliwych bloków (błędów: 4/0/0).
I also burn Dietpi image on new sd-card and put it to my Rpi4. I will try to restore my config from HDD. Can I rub Dietpi-Backup and restore?

Regards.
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: Torrent downloader with VPN only

Post by Joulinar »

well you could give it a try. Where is the backup stored? On SD Card or HDD?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 170
Joined: Sun Mar 15, 2020 5:40 pm

Re: Torrent downloader with VPN only

Post by przemko »

I store backup on HDD, also move `dietpi_userdata` to HDD.
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: Torrent downloader with VPN only

Post by Joulinar »

ok that might work. But I need to say I never tested this procedure. You would need to verify that user data is linked correctly afterwards.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 170
Joined: Sun Mar 15, 2020 5:40 pm

Re: Torrent downloader with VPN only

Post by przemko »

Can You tell me what to do first: link userddata to HDD and then restore backup, and when to install apps? Or dietpi_backup will restore my apps?

Edit. So I just select location `/mint/Toshiba/dietpi_backup` search for backup and restore. Then after all I reboot. System stop at:

Image
Last edited by przemko on Wed Dec 02, 2020 11:14 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 4205
Joined: Sat Nov 16, 2019 12:49 am

Re: Torrent downloader with VPN only

Post by Joulinar »

usually it should be enough to mount the HDD and perform a restore. Everything should be restored as it was saved before. This should include the link of DietPi User data directory. If possible try to do a backup of your HDD to avoid issues if thinks will go wrong. Better to be on safe side.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply