LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2011, 12:46 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,648

Rep: Reputation: 51
Which drive is master?


Kernel 2.6.21.5, Slackware 12.0

Hi:
Could you give me a command to inquire which of the optical drives that are installed in my machine is configured as master? When in doubt, I have had to remove the case and visually inspect the drive rear panel. But perhaps it's unnecessary work.

EDIT
I'm suspecting /dev/hdc is always master.

EDIT EDIT
And in deed it is. Sorry.

Last edited by stf92; 08-04-2011 at 12:53 AM.
 
Old 08-04-2011, 06:51 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,428

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
FYI if you haven't discovered the pattern yet;
/dev/hda 1st IDE controller master
/dev/hdb 1st IDE controller slave
/dev/hdc 2nd IDE controller master
/dev/hdd 2nd IDE controller slave
And so on

Typically the hard drive was/is connected to /dev/hda and DVD/CDROM connected to /dev/hdc but not necessarily. If you look at the output of dmesg after boot up you should see where the drives are auto detected and its associated information.
 
Old 08-06-2011, 09:48 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,648

Original Poster
Rep: Reputation: 51
Thanks for your kind reply. Dmesg was the first place to which I went, but did not find the word "master" in it. It was wikipedia who finally came to my rescue. I had these things clear about ten years ago, when I made my DOS-bootable linux into a self-booteable one (although the OS can't boot itself).
Thanks again.

Last edited by stf92; 08-06-2011 at 09:50 AM.
 
Old 08-06-2011, 10:13 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,428

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
The output would just tell you the device ID not wether it is master or slave. Sorry about the confusion.
 
  


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
convert a slave drive back into a master drive rbees Linux - General 6 01-24-2008 09:23 AM
master and slave drive - fc3 adkenc Linux - Hardware 1 11-23-2004 01:38 PM
Debian on master drive, now can I put a drive with W95 as slave? everest Linux - Software 0 07-03-2004 04:40 AM
master hard drive question zetsui Linux - Hardware 1 11-02-2003 11:02 PM
What's the deal with Master/Slave drive? concoran Linux - General 7 03-30-2002 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration