Re: Bricked Synology DS218j January 12, 2023 07:18AM |
Registered: 2 years ago Posts: 24 |
The partition table has been altered. Calling ioctl() to re-read partition table. [ 619.697106][ T3141] sda: sda1 Syncing disks. [ 619.707729][ T1728] sda: sda1 root@debian:~# lsblk lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 239G 0 disk `-sda1 8:1 1 239G 0 part sdb 8:16 1 14.5G 0 disk `-sdb1 8:17 1 14.5G 0 part / mtdblock0 31:0 0 4M 0 disk mtdblock1 31:1 0 4M 0 disk root@debian:~# mkfs.ext3 -L rootfs /dev/sda mkfs.ext3 -L rootfs /dev/sda mke2fs 1.44.5 (15-Dec-2018) Found a gpt partition table in /dev/sda Proceed anyway? (y,N) y y Creating filesystem with 62656641 4k blocks and 15671296 inodes Filesystem UUID: ea9e7a01-3ce8-4c1c-bebd-9caf88714c21 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Allocating group tables: done Writing inode tables: 1526/191done Creating journal (262144 blocks): done Writing superblocks and filesystem accounting information: done root@debian:~# lsblk lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 239G 0 disk sdb 8:16 1 14.5G 0 disk `-sdb1 8:17 1 14.5G 0 part / mtdblock0 31:0 0 4M 0 disk mtdblock1 31:1 0 4M 0 disk root@debian:~#
Re: Bricked Synology DS218j January 12, 2023 02:53PM |
Admin Registered: 14 years ago Posts: 19,422 |
mkfs.ext3 -L rootfs /dev/sda1
Re: Bricked Synology DS218j January 12, 2023 03:19PM |
Registered: 2 years ago Posts: 24 |
Ahh, of course!Quote
bodhi
That was wrong. You want to format the partition (sda is the whole disk). Should be
I must have used the wrong expression. It does boot all the way to the login promt.Quote
bodhi
It should be able to boot all the way to the Debian login prompt if the disk was correctly formatted. So redo it one more time with my correction above.
Debian GNU/Linux 10 debian ttyS0 debian login: root root Password: root Last login: Thu Jan 12 02:52:48 PST 2023 on ttyS0 Linux debian 5.2.9-mvebu-tld-1 #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019 armv7l
Re: Bricked Synology DS218j January 12, 2023 04:46PM |
Registered: 2 years ago Posts: 24 |
Re: Bricked Synology DS218j January 12, 2023 07:15PM |
Admin Registered: 14 years ago Posts: 19,422 |
Quote
Wiki tthread
Memory & Swap Settings
Tuning for low RAM boxes
logrotate examples
How to create and use a Swap file
ssh root@thisboxIPaddress
Re: Bricked Synology DS218j January 13, 2023 03:26AM |
Registered: 2 years ago Posts: 24 |
Quote
bodhi
Congrats! you're almost done.
Quote
The reason the reboot does not work because you have not set up the u-boot envs to boot automatically and save them to flash.
Quote
But in the mean time, you should be OK to explore and install Debian packages that you want to use
Quote
And first thing you should do is to create a swap file on this USB rootfs
Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019 Debian 10.0 Fri Jan 13 00:41:49 PST 2023 up 0 minutes root@debian:~# free -h free -h total used free shared buff/cache available Mem: 493Mi 22Mi 428Mi 1.0Mi 42Mi 352Mi Swap: 0B 0B 0B root@debian:~#
Quote
Use another USB flash drive to create the rootfs again, using the latest rootfs Debian-5.13.8-mvebu-tld-1-rootfs-bodhi.tar.bz2 (28 Sept 2021). See if you can boot it exactly the same way as with your current Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2 rootfs.
Re: Bricked Synology DS218j January 13, 2023 03:02PM |
Admin Registered: 14 years ago Posts: 19,422 |
Re: Bricked Synology DS218j January 15, 2023 09:44AM |
Registered: 2 years ago Posts: 24 |
Re: Bricked Synology DS218j January 15, 2023 02:44PM |
Admin Registered: 14 years ago Posts: 19,422 |
tftpboot 0xd00000 zImage tftpboot 0x800000 rd.bin tftpboot 0x1000000 dtbdump_3.dtb
radium
Re: Bricked Synology DS218j January 18, 2023 05:32PM |
Re: Bricked Synology DS218j January 19, 2023 07:42AM |
Registered: 2 years ago Posts: 24 |
> tftpboot 0xd00000 zImage > tftpboot 0x800000 rd.bin > tftpboot 0x1000000 dtbdump_3.dtb >>
Re: Bricked Synology DS218j January 19, 2023 07:48AM |
Registered: 2 years ago Posts: 24 |
Re: Bricked Synology DS218j February 18, 2023 09:01AM |
Registered: 2 years ago Posts: 24 |