On 24-Jun-98 Hugh Lawson wrote:
> 
>> SLP/Internet Section wrote:
>> > 
>> > Hi,
>> > 
>> > 1)When I do rdev /boot/vmlinuz, I get :
>> > Root device /dev/sdb1
>> > 
>> > But my partition is dev/hda2...and anyway I do have have any Scsi drive.
>> > I really dont understand How come?
>> 
> 
> Here's my understanding (gurus, please critique if wrong!):
> 
> rdev /boot/vmlinuz <ret> returns the present rdev setting.  This can be
> wrong sometimes without causing any harm.
> 
> But here is a case where it would definitely do harm.
> Let's say you wanted to make a boot floppy, like this:
> 
> dd if=/boot/vmlinuz of=/dev/fd0 bs=8192 <ret>
> 
> If the rdev value was wrong then this boot floppy wouldn't work.  So,
> before making the boot floppy, do rdev /boot/vmlinuz /dev/hda2 <ret>,
> assuming /boot/vmlinuz and /dev/hda2 are  the right values for you.  This
> actually changes the rdev value.
> 
> Hugh Lawson
> Greensboro, North Carolina
> [EMAIL PROTECTED]

You're mostly right.  The rdev on kernels that lilo boots is generally
meaningless because lilo overrides it with whatever is in /etc/lilo.conf for
that boot option.  Some boot floppies need the kernel to figure it out for
itself, and thus rdev is necessary.

--
Steve Borho <[EMAIL PROTECTED]>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to