LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-24-2009, 01:57 PM   #1
hplgonzo
LQ Newbie
 
Registered: Jun 2008
Location: austria
Distribution: arch
Posts: 5

Rep: Reputation: 0
hdd detection problems


hello everybody.

i've got a very strange problem concerning the detection of my ide-harddrives and the cdrom drive. i have plugged 2 ide hdd's to the first connector on my mainboard and a cdrom drive to the second connector. after installing debian my harddrives should be detected as hda and hdb, as well as hde for the cd-rom drive.

but now i come to my problem. sometimes the harddrives are detected as hde and hdf and cdrom is hda -> so i cannot start my system, because it looks for root on hda, but its placed on hde now. after rebooting i have a 50 % chance that debian detects my drives in the right way and it boots from hda (root) correctly.

my mainboard: asus p5w dh deluxe

is there a solution for this problem or do you have similar experiences with your ide drives?

yours,
hplgonzo
 
Old 04-24-2009, 02:07 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by hplgonzo View Post
hello everybody.

i've got a very strange problem concerning the detection of my ide-harddrives and the cdrom drive. i have plugged 2 ide hdd's to the first connector on my mainboard and a cdrom drive to the second connector. after installing debian my harddrives should be detected as hda and hdb, as well as hde for the cd-rom drive.

but now i come to my problem. sometimes the harddrives are detected as hde and hdf and cdrom is hda -> so i cannot start my system, because it looks for root on hda, but its placed on hde now. after rebooting i have a 50 % chance that debian detects my drives in the right way and it boots from hda (root) correctly.

my mainboard: asus p5w dh deluxe

is there a solution for this problem or do you have similar experiences with your ide drives?

yours,
hplgonzo
You can reference drives in lilo/grub by uuid also.

You can find the uuid of any given drive by doing:

vol_id -u /dev/name

(eg on my server vol_id -u /dev/sda1 returns the uuid for it)

Then in grub for the root= line you change it to:
root=UUID=xx-xx-xx-xx whateveroptionsyounormallyhave

That will make it end up the right drive each time... you can also specify uuid in other places like the fstab.

So basically, boot once, get the uuid of the drive, set it in grub's conf, reinstall grub to mbr, and reboot.

Last edited by rweaver; 04-24-2009 at 02:09 PM.
 
Old 04-24-2009, 04:32 PM   #3
hplgonzo
LQ Newbie
 
Registered: Jun 2008
Location: austria
Distribution: arch
Posts: 5

Original Poster
Rep: Reputation: 0
Wink

Quote:
Originally Posted by rweaver View Post
You can reference drives in lilo/grub by uuid also.

You can find the uuid of any given drive by doing:

vol_id -u /dev/name

(eg on my server vol_id -u /dev/sda1 returns the uuid for it)

Then in grub for the root= line you change it to:
root=UUID=xx-xx-xx-xx whateveroptionsyounormallyhave

That will make it end up the right drive each time... you can also specify uuid in other places like the fstab.

So basically, boot once, get the uuid of the drive, set it in grub's conf, reinstall grub to mbr, and reboot.
thanks a lot for your help rweaver.
that solution works absolutely fine !!!
i really had no idea how to solve that problem, but know everything runs perfectly without any error messages or reboots ...
 
  


Reply

Tags
detection, dev, hdd, uuid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Ata detection Swiftmind Red Hat 1 06-05-2007 07:53 AM
cd burner detection problems bookie Linux - Newbie 10 04-16-2007 10:02 AM
hdd boot detection pingvina Linux - Software 8 02-26-2006 11:38 AM
HDD detection baparekh Linux - Hardware 0 07-16-2005 03:09 PM
CDROM detection problems andrew001 Linux - Hardware 3 06-15-2003 09:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration