[SOLVED] Manually assign a device name to a specific HDD
SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a PC that I use to clone HDDs, recover and copy data, ecc ecc.
The PC has slackware installed onto an IDE drive. Normally I work on SATA drives so I'm happy to have the OS on the IDE hdd so I have all SATA ports free.
But I have a problem: the IDE drive always gets the last letter after all the sata disks. If it's the only one it becomes sda, with 1 sata disk becomes sdb, with 2 sata disks sdc and so on.
Of course I get a kernel panic on every boot until I pass 'mount root=/dev/sdx' option each time to lilo with the actual IDE drive name
So I would like to stick manually a name to the disk so it will always be /dev/sda (or /dev/sdz or /dev/drivewithacustomname ) so I don't have more troubles on every boot.
I always tried to play with /dev/root (telling lilo to boot from /dev/root ) in various attempts, but without any result (I think that beacuse /dev/root is a symlink and lilo uses the link target, that will change moving drives)
But I can see a strange behaviour: on the kernel panic screen, I can see the list of all drives and partitions, each one has an hex code with a structure similar to an UUID, but this codes are DIFFERENT from the ones seen by blkid, and for the IDE disk these codes are 00000000-0000-0000-0000-00000000000 for both partitions ..
I don't know if this may help..
Thank you for yout effort, I'll go trying other options...
/usr/src/linux/Documentation/kernel-parameters.txt says to see about kernel root= parameter name_to_dev_t comment in init/do_mounts.c.
This comment says nothing about "LABEL=", so it is initrd sripts magic. It also says that PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF accepted by kernel itself but if partition table provides it.
Last edited by bormant; 09-06-2012 at 11:56 AM.
Reason: About PARTUID=