[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Little OT] grub and udev root device



On Wed, Aug 02, 2006 at 04:04:57PM -0700, Hemlock wrote:
> Hello,
> 
> I'm wondering if its possible to rename my / device with udev and get grub 
> to see it and boot it?
> Here's what I tried:
> 
> kernel 2.6.17
> 
> /etc/udev/rules.d/010local.rules
> 
> BUS="scsi", ID="0:0:0:0", NAME="sata%n"
> 
> I have one partition on my sata drive so I edited fstab
> to mount / on to /dev/sata1 instead of /dev/sda1
> 
> I then edited grub and changed root=/dev/sda1 to root=/dev/sata1
> I also made a new initrd image just in case:
> 
> # mkinitrd -o /boot/initrd.img-2.6.17sata -r /dev/sata1
>      (I edited the grub menu too to use the new initrd.img)

Why not use labels, label the ext3 partiton and then change your
/etc/fstab and -r to LABEL=/ <- place here whatever you label your
partition

> 
> If I reboot, I get a kernel panic, something about cannot open dev/console
>    attempted to kill init
> 
> If I reboot again and edit the grub boot loader and point the root back 
> to /dev/sda1, the system boots fine, although a 
> # df -h 
> shows / mounted to /dev/sata1
> 
> Is it even possible to boot off a customly named root device?
> 
> Thanks
> Mike
> 
> 
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-amd64-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 

Attachment: signature.asc
Description: Digital signature


Reply to: