LinuxQuestions.org
Visit Jeremy's Blog.
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 09-25-2006, 03:29 AM   #1
gzunk
Member
 
Registered: Sep 2006
Posts: 89

Rep: Reputation: 20
Can I specify hard disk order?


I have a minor problem. I have an Asus A8N-SLI which has 4 nForce SATA ports and 4 SiImage SATA ports.

Grub sees the disks as (hd0) up to (hd5) which 0,1,2,3 being the nvidia SATA 1,2,3,4 and 4,5 being SATA 1,2 on the SiImage, which is what I would expect.

When I boot the kernel however, they get mappend like this:

NVidia SATA 1 (grub 0) -->/dev/sde
NVidia SATA 2 (grub 1) -->/dev/sdf
NVidia SATA 3 (grub 2) -->/dev/sdc
NVidia SATA 4 (grub 3) -->/dev/sdd
SiImage SATA 1 (grub 5) --> /dev/sda
SiImage STAT 2 (grub 6) --> /dev/sdb

This is a pain, since I often switch disks in and out of the system. I boot from NVidia SATA 1 (grub 0) and if I remove any of the hard disks, all the entries in fstab, the grub root device configuration have to change.

Is there any way I can get the kernel to probe the disks in a specific order so that I can ensure that my boot disk is /dev/sda?

Thanks
 
Old 09-25-2006, 08:28 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Take a look at udev. With the proper rules set up you can have it detect individual disks and create dedicated device entries for them. It won't help you with anything you do before boot-up, but you'll certainly be able to have a consistant fstab.

See here for more on udev:
http://www.kernel.org/pub/linux/util...plug/udev.html
 
  


Reply



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
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
SAN LUN disk device order jhumeston Linux - Software 1 07-28-2004 06:02 PM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM

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

All times are GMT -5. The time now is 04:27 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