qnap_mtd_resize_for_bullseye
qnap_mtd_resize_for_bullseye copied to clipboard
How can I reinstall Debian after resize?
Hi first. I messed up... I managed to completely delete my /usr/ folder. How do I reinstall Debian now? I don't mean recover, I mean completely reinstall.
Hi. Do you have serial console access? If so, see issue #44. You'll need to reinstall Debian 10, then upgrade to 11, then upgrade to 12. It'll take time but it's perfectly doable.
No idont have a seriel console access. How can I reinstall Debian 10?
I don't think it's possible without serial console, after the partition resize.
It is, but you way just tweek the debian install script. It will be
Follow https://github.com/amouiche/qnap_mtd_resize_for_bullseye/blob/master/Recovery.md to re-intall the QNAP original firmware using the QNAP TFTP method
- re-install debian 10 as usual.
- you will not need to do the partitionning again, it will already be set.
Just tell me what you experience, and we will update the recorvery documentation along. Arnaud
On Tue, 2023-09-12 at 13:12 -0700, Luca Paolini wrote:
I don't think it's possible without serial console, after the partition resize. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.*** m>
ok i try it.
I'll edit the post to avoid spamming.
1.Recover via qnap live disk. Went without any problems [~] # cat /proc/mtd dev: size erasesize name mtd0: 00080000 00010000 "U-Boot" mtd1: 00200000 00010000 "Kernel" mtd2: 00900000 00010000 "RootFS1" mtd3: 00300000 00010000 "RootFS2" mtd4: 00040000 00010000 "U-Boot Config" mtd5: 00140000 00010000 "NAS Config" under qnap fw.
Edit 19:11: Debian 10 is anstalled and running. root@qnas:~# sudo ./qnap_mtd_resize.py --dry-run
[Check of the QNAP model and see if supported] kirkwood-qnap: machine: QNAP TS419 family DTB file: kirkwood-ts419-6282.dtb Kernel has already been resized. Can't process further safely.
So upgrade to bookworm is currently in progress.
It took me all afternoon, but I was able to reinstall Debian without accessing the serial console. @amouiche
edit: 23:38 Upgrade to bookworm is finished and Nas is purring like a kitten. So that this doesn't happen to me again, I selected when installing that /, /var/, /tmp/ and /home/ are on spare partitions and I can backup the pure /. df -h Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf udev 371M 0 371M 0% /dev tmpfs 76M 272K 76M 1% /run /dev/sda2 23G 761M 21G 4% / tmpfs 377M 0 377M 0% /dev/shm tmpfs 5,0M 0 5,0M 0% /run/lock /dev/sda5 1,8G 40K 1,7G 1% /tmp /dev/sda3 9,1G 293M 8,4G 4% /var /dev/sda1 234M 17M 205M 8% /boot /dev/sda6 x,xx 48K x,xx x% /home tmpfs 76M 0 76M 0% /run/user/0
It is, but you way just tweek the debian install script. It will be - Follow https://github.com/amouiche/qnap_mtd_resize_for_bullseye/blob/master/Recovery.md to re-intall the QNAP original firmware using the QNAP TFTP method - re-install debian 10 as usual. - you will not need to do the partitionning again, it will already be set. Just tell me what you experience, and we will update the recorvery documentation along. Arnaud
@amouiche Thanks for your help, it worked perfectly. Luckily I have to say, the serial to USB adapter I bought from Amazon doesn't fit the pins on the board of my TS-421, the plugs are too big...