makebootdisk in 7.1

0 views
Skip to first unread message

George O

unread,
Sep 14, 2000, 3:00:00 AM9/14/00
to
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

Jano

unread,
Sep 19, 2000, 3:00:00 AM9/19/00
to
If I were you i would simply do a "cp /boot/vmlinuz /dev/fd0" (I know I
should use cat an this is a bad sintax but always worked for me :D)
From this command on u have your bootdisk (assumed u have your current
vmlinuz kernel image placed in /boot)
Hop it was helpful

Michael Kiser

unread,
Sep 25, 2000, 3:00:00 AM9/25/00
to

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...

George O

unread,
Sep 28, 2000, 1:09:54 AM9/28/00
to
On Tue, 19 Sep 2000 23:46:40 GMT, Jano <ja...@videosoft.it> wrote:

>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

George O

unread,
Sep 28, 2000, 1:09:55 AM9/28/00
to
On Mon, 25 Sep 2000 16:36:51 -0400, Michael Kiser wrote:

>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

Mr. Bean

unread,
Oct 4, 2000, 3:00:00 AM10/4/00
to
Me too. I need to make a boot disk to rescue another machine I'd been running.

sim...@my-deja.com

unread,
Oct 4, 2000, 10:01:21 PM10/4/00
to
I use the original boot install image to boot if I cannot do it
directly. when it ask for root, then I type image=/dev/hda9, then it
will continue to load from the hard disk.

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.

Allen Wong

unread,
Oct 4, 2000, 10:45:46 PM10/4/00
to
George O <not4...@kimo.com> wrote:
> On Tue, 19 Sep 2000 23:46:40 GMT, Jano <ja...@videosoft.it> wrote:

> 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

Neil Koozer

unread,
Oct 5, 2000, 3:00:00 AM10/5/00
to
Hi all,

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.


George O

unread,
Oct 6, 2000, 3:00:00 AM10/6/00
to
On 5 Oct 2000 02:45:46 GMT, Allen Wong <ama...@linuxfan.com> wrote:

>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

Reply all
Reply to author
Forward
0 new messages