Does anyone out there fail to make a LILO bootable diskette
for Slackware 7.1 with "makebootdisk"?
I always got an error message:
"Fatal: open /dev/fd0: No such file or directory"
But it is OK to make a LILO bootable dislette with
"makebootdisk" comes from Slackware 7.0.
I can't figure out what's wrong in the shell script.
Any idea or suggestion?
BTW, it seems better to add a "lba32" statement before
boot = /dev/fd0
message=/boot/message
prompt
....
--
George O
"George O" <geo...@ms55.hinet.net> wrote in message
news:slrn8s2kp9...@unixhouse.org...
>If I were you i would simply do a "cp /boot/vmlinuz /dev/fd0"
Yes, it works.
But, I want to know what's wrong with the script. :P
And, thanks for your suggestion. :)
--
George O
>once while the floppy was mounted and i think that is wrong, but i tried it
>with floppy unmounted too and got the same message. no advice here, just
>comeradery (sp).
So, I'm not alone. :D
It's important for me to find out what's wrong while I try to
make a bootable diskette.
Thanks for your reply. :)
--
George O
In article <8qod2p$18tc$1...@newssvr05-en0.news.prodigy.com>,
"Michael Kiser" <michae...@prodigy.net> wrote:
>
> hi,
> i am using Bigslack on windows and have had the same problem. i tried
it
> once while the floppy was mounted and i think that is wrong, but i
tried it
> with floppy unmounted too and got the same message. no advice here,
just
> comeradery (sp).
> michael kiser
>
> "George O" <geo...@ms55.hinet.net> wrote in message
> news:slrn8s2kp9...@unixhouse.org...
> > Greetings, :)
> >
> > Does anyone out there fail to make a LILO bootable diskette
> > for Slackware 7.1 with "makebootdisk"?
> >
> > I always got an error message:
> >
> > "Fatal: open /dev/fd0: No such file or directory"
> >
> > But it is OK to make a LILO bootable dislette with
> > "makebootdisk" comes from Slackware 7.0.
> >
> > I can't figure out what's wrong in the shell script.
> >
> > Any idea or suggestion?
> >
> > BTW, it seems better to add a "lba32" statement before
> >
> > boot = /dev/fd0
> > message=/boot/message
> > prompt
> > ....
> >
> >
> >
> > --
> > George O
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
> But, I want to know what's wrong with the script. :P
Whoever wrote the makebootdisk script neglected to create a /dev/fd0 in the
chrooted environment used in the lilo.conf for the boot disk. In 7.0,
makebootdisk recreates the various disk devices using this set of commands:
cp -a /dev/ed* $TMP/lilo/dev
cp -a /dev/fd* $TMP/lilo/dev
cp -a /dev/hd* $TMP/lilo/dev
cp -a /dev/sd* $TMP/lilo/dev
In the 7.1 makebootdisk, it has been changed to:
cat /proc/partitions | grep d | while read line ; do
SMASHED_LINE=$line
MAJOR=`echo $SMASHED_LINE | cut -f 1 -d ' '`
MINOR=`echo $SMASHED_LINE | cut -f 2 -d ' '`
DEVNAME=`echo $SMASHED_LINE | cut -f 4 -d ' '`
if [ ! -b $TMP/lilo/dev/$DEVNAME ]; then
mknod $TMP/lilo/dev/$DEVNAME b $MAJOR $MINOR
chown root.disk $TMP/lilo/dev/$DEVNAME
chmod 640 $TMP/lilo/dev/$DEVNAME
fi
done
Note that if you do a "cat /proc/partitions", there is no fd0 device even if
/dev/fd0 has been mounted. That's why lilo complains when it hits the
"lilo -r $TMP/lilo" part of the script.
HTH (and hope this is correct!)
Allen
--
Linux: If you're not careful, you might actually learn something.
7:00pm up 4 days, 23:39, 7 users, load average: 2.04, 2.02, 2.00
Here's a little script for making a bootdisk:
---------------
mkfs.minix /dev/fd0h1440
mount /dev/fd0 /mnt
mkdir /mnt/dev /mnt/etc
cp -a /boot /mnt
cp -a /dev/fd0 /dev/hdd6 /mnt/dev
cp /vmlinuz /mnt
cat << EOF > /mnt/etc/lilo.conf
boot=/dev/fd0
prompt
image=/vmlinuz
root=/dev/hdd6
EOF
lilo -c -r /mnt
umount /mnt
/----------------
You'll need to change both instances of /dev/hdd6 to your / partition.
Neil.
>Note that if you do a "cat /proc/partitions", there is no fd0 device even if
>/dev/fd0 has been mounted. That's why lilo complains when it hits the
>"lilo -r $TMP/lilo" part of the script.
Thanks, Allen. :)
Now I can try to fix the problem in makebootdisk.
Thank you VERY VERY MUCH. :)
--
George O