[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] Flash disk probs
One other thing: Lilo seems to want an entry in the flash disk's
/dev directory for the root= device line. For example, if I have
the root=/dev/hda1, I need to copy the /dev/hda1. Otherwise it
seems to complain during installation.
Here's my buildflashboot script in case it shows any delusions I
might be operating under... :-)
#!/bin/sh
#
# buildflashboot = build a bootable flash disk
#
TARGET=/dev/hda1 #flash disk
PROGDIR=`pwd`
ROOTOFF=900
#
# make a little file system
#
umount $TARGET
umount /mnt
mke2fs -vm0 $TARGET $ROOTOFF
#
# mount the target device onto the mnt dir and prepare the
# various pieces
#
umount /mnt
mount $TARGET /mnt
#rm -rf /mnt/lost+found
mkdir /mnt/boot
mkdir /mnt/dev
mkdir /mnt/etc
#cp -R /dev/null /mnt/dev
#cp -R /dev/fd0 /mnt/dev
cp -R /dev/hda /mnt/dev
cp -R /dev/hda1 /mnt/dev
#cp -R /dev/hdb /mnt/dev
#cp -R /dev/hdb1 /mnt/dev
cp -R /dev/ram* /mnt/dev
#cp -R /dev/console /mnt/dev
cp /boot/boot.b /mnt/boot
#
# run lilo on the drive
#
rdev -r vmlinuz.flash 50052
rdev vmlinuz.flash /dev/hda1
cp lilo.conf.flash /mnt/etc/lilo.conf
cp vmlinuz.flash /mnt/vmlinuz
lilo -C etc/lilo.conf -v -r /mnt
#
# copy over the compressed root file system starting at ROOTOFF
#
dd if=rootfs.gz of=$TARGET bs=1k seek=$ROOTOFF
#
# some checks
#
rdev -r /mnt/vmlinuz
rdev /mnt/vmlinuz
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu