Installing permanently to remove usb October 15, 2021 03:34AM |
Registered: 2 years ago Posts: 17 |
lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T 0 disk |-sda1 8:1 0 502M 0 part `-sda2 8:2 0 1.8T 0 part `-md0 9:0 0 1.8T 0 linear sdb 8:16 1 7.6G 0 disk `-sdb1 8:17 1 7.6G 0 part / mtdblock0 31:0 0 1M 0 disk mtdblock1 31:1 0 512K 0 disk mtdblock2 31:2 0 512K 0 disk mtdblock3 31:3 0 512K 0 disk mtdblock4 31:4 0 10M 0 disk mtdblock5 31:5 0 10M 0 disk mtdblock6 31:6 0 47.8M 0 disk mtdblock7 31:7 0 10M 0 disk mtdblock8 31:8 0 47.8M 0 diskI am assuming sda1 was created by NSA310 since it contains
l -h tmp/ total 479M drwxr-xr-x 3 root root 1.0K Mar 13 2016 . drwxr-xr-x 3 root root 4.0K Oct 15 00:13 .. drwxr-xr-x 2 root root 12K Mar 13 2016 lost+found -rwxrwxrwx 1 root root 341M Mar 13 2016 swap_ul6545p -rw-r--r-- 1 root root 136M Mar 13 2016 sysdisk.imgwhich would make for sysdisk.img being the stock OS. I cannot mount the mtdblockX partitions so I would venture to guess I could overwrite the stuff in /dev/sda1 and modify uboot to load my kernel from there.
Re: Installing permanently to remove usb October 15, 2021 03:42PM |
Admin Registered: 13 years ago Posts: 18,848 |
Quote
Backup and Cloning rootfs
Back up a live rootfs using rsync
CrashPlan 4.3.0
Backup/Restore rootfs using tar command
Adjust udev rules after cloning rootfs
Stock Pogoplug rootfs
How to clone a rootfs from one Kirkwood box to another: Step 1 and Step 2
How to clone SATA rootfs to USB rootfs
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'
setenv sata_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv load_uimage 'ext2load ide 0:1 0x800000 /boot/uImage' setenv load_uinitrd 'ext2load ide 0:1 0x2100000 /boot/uInitrd' setenv sata_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' setenv sata_bootcmd 'run sata_set_bootargs; run sata_boot' setenv bootcmd 'ide reset; run sata_bootcmd; reset'
Re: Installing permanently to remove usb October 15, 2021 03:59PM |
Registered: 2 years ago Posts: 17 |
Quote
bohdi
Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on USB rootfs
Quote
randomDude
# dmesg | grep -i bad
Scanning device for bad blocks
Bad eraseblock 2 at 0x000000040000
Bad eraseblock 3 at 0x000000060000
If I have wiped the HDD how can I boot without these uboot envs? It would be impossible to start the old stock kernel due to the wipe...?Quote
bohdi
Do it in serial console but don't save it until after you can do a few boots.
lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T 0 disk |-sda1 8:1 0 502M 0 part `-sda2 8:2 0 1.8T 0 part `-md0 9:0 0 1.8T 0 linear /mnt/share sdb 8:16 1 7.6G 0 disk `-sdb1 8:17 1 7.6G 0 part / mtdblock0 31:0 0 1M 0 disk mtdblock1 31:1 0 512K 0 disk mtdblock2 31:2 0 512K 0 disk mtdblock3 31:3 0 512K 0 disk mtdblock4 31:4 0 10M 0 disk mtdblock5 31:5 0 10M 0 disk mtdblock6 31:6 0 47.8M 0 disk mtdblock7 31:7 0 10M 0 disk mtdblock8 31:8 0 47.8M 0 disk
Re: Installing permanently to remove usb October 15, 2021 04:39PM |
Admin Registered: 13 years ago Posts: 18,848 |
Quote
randomDude
> # dmesg | grep -i bad
> Scanning device for bad blocks
> Bad eraseblock 2 at 0x000000040000
> Bad eraseblock 3 at 0x000000060000
>
Re: Installing permanently to remove usb October 15, 2021 04:44PM |
Admin Registered: 13 years ago Posts: 18,848 |
`-sda2 8:2 0 1.8T 0 part `-md0 9:0 0 1.8T 0 linear
Re: Installing permanently to remove usb October 15, 2021 04:49PM |
Registered: 2 years ago Posts: 17 |
Re: Installing permanently to remove usb October 15, 2021 06:21PM |
Admin Registered: 13 years ago Posts: 18,848 |
Quote
Flash drives issues
How to prolong the life of your rootfs USB thumb drive
Re: Installing permanently to remove usb October 18, 2021 04:36PM |
Registered: 2 years ago Posts: 17 |
Re: Installing permanently to remove usb October 18, 2021 04:39PM |
Registered: 2 years ago Posts: 17 |
Re: Installing permanently to remove usb October 18, 2021 04:44PM |
Registered: 2 years ago Posts: 17 |
Re: Installing permanently to remove usb October 18, 2021 05:53PM |
Admin Registered: 13 years ago Posts: 18,848 |
Re: Installing permanently to remove usb October 19, 2021 02:49PM |
Registered: 9 years ago Posts: 429 |
Re: Installing permanently to remove usb October 19, 2021 04:41PM |
Registered: 2 years ago Posts: 17 |
Re: Installing permanently to remove usb October 19, 2021 05:06PM |
Admin Registered: 13 years ago Posts: 18,848 |
Re: Installing permanently to remove usb October 20, 2021 12:47PM |
Registered: 9 years ago Posts: 429 |
Re: Installing permanently to remove usb October 20, 2021 04:24PM |
Registered: 2 years ago Posts: 17 |
Re: Installing permanently to remove usb October 20, 2021 04:29PM |
Admin Registered: 13 years ago Posts: 18,848 |
Re: Installing permanently to remove usb October 20, 2021 05:01PM |
Registered: 9 years ago Posts: 429 |
Re: Installing permanently to remove usb October 26, 2021 09:10PM |
Registered: 5 years ago Posts: 125 |