Tue Jan 10, 2012 2:11 am
Tue Jan 10, 2012 9:26 pm
mke2fs 1.41.12 (17-May-2010)
mkfs.ext2: No such file or directory while trying to determine filesystem size
/sbin/tune2fs: No such file or directory while trying to open /media/sdb2/snapshot/live-rw
Couldn't find valid filesystem superblock.
Logical sector size is zero.
Wed Jan 11, 2012 1:36 am
syslinux -d ${BOOTDIR} /dev/${DEVICE}1
dd if=/dev/zero of=/dev/sdb
Wed Jan 11, 2012 1:06 pm
Wed Jan 11, 2012 3:58 pm
# tree /media/snaplive/
/media/snaplive/
├── data
├── snapshot
│ ├── filesystem.squashfs
│ ├── initrd.gz
│ └── vmlinuz
└── syslinux
├── chain.c32
├── ldlinux.sys
├── splash.jpg
├── syslinux.cfg
└── vesamenu.c32
3 directories, 8 files
Wed Jan 11, 2012 10:33 pm
dd conv=notrunc bs=446 count=1 if=/dev/zero of=/dev/sdX
syslinux -d syslinux /dev/sdX1
/sbin/install-mbr /dev/sdX
syslinux -d syslinux /dev/sdX1
best replug it first) gparted should sort the rest without <install-mbr>.
dd conv=notrunc bs=440 count=1 if=/usr/lib/syslinux/mbr.bin of=/dev/sdX
Thu Jan 12, 2012 7:07 pm
'# ${SIZE} is required in megabytes, e.g. 1000
dd 'if=/dev/zero' of=/media/diskmountpoint/live-rw bs=1024 count=${SIZE}000
#format it ext2 and stop fsack
/sbin/mkfs.ext2 -F /media/diskmountpoint/live-rw
/sbin/tune2fs -c 0 /media/diskmountpoint/live-rw
Fri Jan 13, 2012 6:26 pm
dd if=/dev/zero of=/dev/sdX (let it run for a few seconds for about 50mb)
gparted - create partition table and single vfat. make it bootable.
install-mbr /dev/sdX
syslinux /dev/sdX1
copied live/ folder from mounted iso
copied syslinux.cfg from snapshot2usb.deb into root of usb
copied vesamenu.c32 and splash.png from isolinux/ folder of mounted iso into root of usb.
edited syslinux.cfg to say 'initrd.img' instead of 'initrd.gz'.
boot the stick. It worked in the second computer I tried* (see below).
# For persistence to work,
# create live-rw file:
cd /media/disk
dd 'if=/dev/zero' of=live-rw bs=1024 count=2000000
#format it ext2 and stop fsack
/sbin/mkfs.ext2 -F live-rw
/sbin/tune2fs -c 0 live-rw
Here's the directory structure on the stick:
.
├── ldlinux.sys
├── live
│ ├── filesystem.squashfs
│ ├── initrd.img
│ ├── memtest
│ └── vmlinuz
├── live-rw
├── Refracta
│ ├── package_list
│ └── Release_Notes
├── splash.png
├── syslinux.cfg
└── vesamenu.c32
* worked on Sempron-64 on ASUS motherboard (about six years old), but not on Dell Core2-duo (about four years old). The Dell gives 'boot error' message after post.
Sat Jan 14, 2012 2:29 am
-s, --stupid
Install a "safe, slow and stupid" version of SYSLINUX. This ver‐
sion may work on some very buggy BIOSes on which SYSLINUX would
otherwise fail. If you find a machine on which the -s option is
required to make it boot reliably, please send as much info
about your machine as you can, and include the failure mode.
Sat Feb 11, 2012 12:34 pm