LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How do I keep sda from changing its name to sdb? (https://www.linuxquestions.org/questions/linux-hardware-18/how-do-i-keep-sda-from-changing-its-name-to-sdb-650654/)

kinetic 06-20-2008 11:04 PM

How do I keep sda from changing its name to sdb?
 
Is there a kernel option to hard code a harddrive onto a specific device name? I am using a 2.6 kernel with udev. Thank you!

farslayer 06-21-2008 01:07 AM

udev rules

http://reactivated.net/writing_udev_rules.html

http://gentoo-wiki.com/HOWTO_Customizing_UDEV

http://wiki.debian.org/udev

These posts are about Hard drive rules..

http://www.linuxquestions.org/questi...rd+drive+rules

kinetic 06-22-2008 07:37 PM

Cool. Thank you. But will this have any effect on the order GRUB finds the hard drives and the "real_root" parameter?

elliott678 06-22-2008 08:01 PM

You may want to look into defining drives by UUID instead of device name, the UUID never changes.

I know it is an Arch tutorial, but I don't see anything specific to Arch in there, the same principles should apply to Gentoo.
http://wiki.archlinux.org/index.php/..._device_naming


All times are GMT -5. The time now is 02:35 PM.