LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-27-2009, 02:35 AM   #1
jernejk
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Which hdd drive is assigned to what device?


Hi,

I've got a server with intel S5000PSL motherboard and six sata drives. In my current installation, the drives are assigned from /dev/sda to /dev/sdf.

Now i'd like to boot my server using external usb hdd (for some testing purposes), but it seems the drive is assigned ti /dev/sdg only if it's plugged in AFTER linux starts booting (the same goes for installation DVD, hdd was assigned to /dev/sdg).

If i plug it in befor restarting server, and trying to boot from it, it's assigned to hd0 in grub (and of course it won't boot, sice it can't find files it's looking for on hd6).

My fixed hdds are assigned to three raid1 arrays. I'm afraid i could break something if I boot from usb hdd as hd0, since all /dev/sdx would be messed up and i guess my arrays could fail (which is a big no-no).

So the question is, what can I do to make linux see external drive as hd6 /dev/sdg??

Thanks
Jernej
 
Old 05-27-2009, 02:20 PM   #2
barghota
Member
 
Registered: Jul 2003
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Debian, FreeBSD
Posts: 94

Rep: Reputation: 38
Quote:
Now i'd like to boot my server using external usb hdd (for some testing purposes), but it seems the drive is assigned ti /dev/sdg only if it's plugged in AFTER linux starts booting (the same goes for installation DVD, hdd was assigned to /dev/sdg).
by 'hdd' here, you mean "Hard Disk Drive" or "/dev/hdd"?

any hard drives connected externally are assigned /dev/sd* even if its an IDE hard drive.

Quote:
If i plug it in befor restarting server, and trying to boot from it, it's assigned to hd0 in grub (and of course it won't boot, sice it can't find files it's looking for on hd6).
From this, i could assume that its an IDE hard drive which had an old system and u are trying to boot that system.

Quote:
So the question is, what can I do to make linux see external drive as hd6 /dev/sdg??
In case you will connect this hard drive as an external hard drive, this cannot be done.

But if you really insist on booting this system from that drive and you have IDE interfaces on the motherboard you could connect the hard drive to it.

If you want to use the hard drive as an external hard drive and boot from it, you will go through some steps.
1. adjust /etc/fstab on the hard drive u want to boot from.
2. adjust grub to boot correctly from that drive
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do I ensure a USB external HDD gets assigned the same SCSI id?? keenboy Linux - Hardware 4 02-03-2009 02:50 PM
Random device letters assigned on Ubuntu 8.04? brianpbarnes Linux - Hardware 1 12-04-2008 06:26 PM
USB HD being assigned different device names neddis Linux - Hardware 1 11-11-2007 11:22 AM
Cannot read CD - no device assigned? arobinson74 Linux - Hardware 2 01-16-2006 07:47 PM
SATA problem, hdd is detected but no dev is assigned cubus Slackware 1 03-18-2004 03:57 PM


All times are GMT -5. The time now is 02:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration