Dockstar Debian USB does not boot after power failure August 01, 2011 05:40AM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Dockstar Debian USB does not boot after power failure August 01, 2011 08:14AM |
Registered: 14 years ago Posts: 58 |
Re: Dockstar Debian USB does not boot after power failure August 01, 2011 09:21AM |
Registered: 13 years ago Posts: 23 |
sudo fsck.ext4 -v /dev/sdx1
Re: Dockstar Debian USB does not boot after power failure August 01, 2011 07:24PM |
Registered: 13 years ago Posts: 264 |
Re: Dockstar Debian USB does not boot after power failure August 04, 2011 05:28PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Dockstar Debian USB does not boot after power failure August 05, 2011 05:18AM |
Registered: 13 years ago Posts: 3 |
Re: Dockstar Debian USB does not boot after power failure August 05, 2011 04:31PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Dockstar Debian USB does not boot after power failure August 06, 2011 06:58AM |
Registered: 13 years ago Posts: 3 |
Re: Dockstar Debian USB does not boot after power failure August 21, 2011 03:25AM |
Registered: 13 years ago Posts: 3 |
Re: Dockstar Debian USB does not boot after power failure August 21, 2011 11:42AM |
Registered: 13 years ago Posts: 264 |
Re: Dockstar Debian USB does not boot after power failure August 21, 2011 03:03PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Dockstar Debian USB does not boot after power failure August 21, 2011 06:53PM |
Registered: 13 years ago Posts: 264 |
Re: Dockstar Debian USB does not boot after power failure August 22, 2011 04:16AM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Dockstar Debian USB does not boot after power failure August 28, 2011 02:18PM |
Registered: 13 years ago Posts: 21 |
scienty
Re: Dockstar Debian USB does not boot after power failure November 17, 2011 03:22PM |
scienty
Re: Dockstar Debian USB does not boot after power failure November 19, 2011 12:33PM |
scienty
Re: Dockstar Debian USB does not boot after power failure November 19, 2011 04:58PM |
Re: Dockstar Debian USB does not boot after power failure December 18, 2011 04:14PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Dockstar Debian USB does not boot after power failure December 19, 2011 01:07AM |
Registered: 14 years ago Posts: 136 |
Re: Dockstar Debian USB does not boot after power failure December 19, 2011 02:46AM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Dockstar Debian USB does not boot after power failure December 19, 2011 02:52AM |
Registered: 14 years ago Posts: 136 |
Re: Dockstar Debian USB does not boot after power failure December 19, 2011 03:19AM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Dockstar Debian USB does not boot after power failure December 21, 2011 03:33AM |
Admin Registered: 13 years ago Posts: 18,896 |
1. Use a fresh USB stick to create the 2-partition Debian drive - Create 2 EXT2 partitions. First for boot (large enough to hold the boot folder, i.e. 100M), and second for rootfs (the rest of the drive). - Mark the boot partition active. Label this boot partiton boot - Label the rootfs partition ROOTFS 2. Copy and move files from the orginal Debian USB stick - As root, copy the rootfs from the original USB stick to the 2nd partition on the new USB stick - On the new USB stick, move the /boot folder (from the 2nd partition) to the 1st partition 3. Modify rc.local on the new USB stick to remount boot partition as read-only - Assuming the 2 partitions were mounted by pmount using its label: /media/boot and /media/ROOTFS. - Add to /etc/rc.local the remount command so that the boot partition is read-only after started up: mount -o remount,ro /media/boot 4. Change UBoot env to identify rootfs by the label ROOTFS fw_setenv usb_init "run usb_scan; setenv usb_root LABEL=ROOTFS" 5. Sync, and shutdown. Reboot with the new 2-partition Debian drive. 6. After booted up, run iotop to find which processes periodically write to disk and symlink their log files to /tmp #iotop -o -b -qqq
# fw_printenv usb_init usb_init=run usb_scan; setenv usb_root LABEL=ROOTFS # cat /proc/cmdline console=ttyS0,115200 root=LABEL=ROOTFS rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
root@Ds1:~# mount rootfs on / type rootfs (rw) none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) none on /proc type proc (rw,nosuid,nodev,noexec,relatime) none on /dev type devtmpfs (rw,relatime,size=60416k,nr_inodes=15104,mode=755) none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) /dev/disk/by-label/ROOTFS on / type ext2 (rw,noatime,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,relatime,mode=755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime) tmpfs on /tmp type tmpfs (rw,relatime) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) /dev/sda1 on /media/boot type ext2 (ro,nosuid,nodev,noexec,noatime,errors=remount-ro)