LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-23-2014, 02:52 AM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 184

Rep: Reputation: 24
is this a typo in my LInux+ book?


hi guys,

this table:

Primary master PATA hard disk had
Primary slave PATA hard disk hdb
Secondary master PATA hard disk hdc
Secondary slave PATA hard disk hdd

Table 2-3 PATA hard disk configurations

should had actually be hda???

just wanted to make sure
 
Old 01-23-2014, 02:56 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,159

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
yes that is usually hda
 
Old 01-23-2014, 03:24 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,499

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
And these days, they will show as /dev/sda,/dev/sdb,/dev/sdc,/dev/sdd - this change of name is due to the driver Linux now uses.
 
Old 01-27-2014, 08:25 AM   #4
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 184

Original Poster
Rep: Reputation: 24
thanks syg00...
 
Old 01-27-2014, 09:16 AM   #5
Rawcous
Member
 
Registered: Jan 2014
Location: Farnborough, Hampshire - UK
Distribution: Previously 2 * Fedora 18 Servers -> 2 * CentOS 6.5 + random distro testing
Posts: 75

Rep: Reputation: Disabled
Quote:
Originally Posted by sigint-ninja View Post
hi guys,

this table:

Primary master PATA hard disk had
Primary slave PATA hard disk hdb
Secondary master PATA hard disk hdc
Secondary slave PATA hard disk hdd

Table 2-3 PATA hard disk configurations

should had actually be hda???

just wanted to make sure
A thing to be aware of / remember is that dependent on the onboard hdd controller or installed hdd controller card, it is possible that the drive assignments can change post reboot. i.e. on a reboot Primary master PATA could be assigned /dev/sdc - On the the next reboot it could be /dev/sdd So via /etc/fstab it's not recommended to mount a drive at a particular location using the device name but to use the UUID

For example to mount the primary pata drive at location /media/data1 (via /etc/fstab), rather than

/dev/sda /media/data1 ext4 defaults,noatime 0 0

you would use

"disk_drive_uuid " /media/data1 ext4 defaults,noatime 0 0

The above would force the drive to be mounted at the fixed location. The UUID of the drive can be obtained using the blkid command

Hope this helps & good luck.

Regards,

Rawcous
 
Old 01-27-2014, 09:26 AM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,132

Rep: Reputation: Disabled
Quote:
Originally Posted by Rawcous View Post
A thing to be aware of / remember is that dependent on the onboard hdd controller or installed hdd controller card, it is possible that the drive assignments can change post reboot. i.e. on a reboot Primary master PATA could be assigned /dev/sdc - On the the next reboot it could be /dev/sdd
Interestingly, this was not the case for /dev/hdx devices in the pre-libata days. /dev/hda was always the master on the primary channel, /dev/hdb was always the slave on the primary channel and so on. If you connected a drive to the secondary PATA/EIDE channel and jumpered it as "slave", it became /dev/hdd even if you had no other drives.
 
Old 01-27-2014, 01:28 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,583

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by sigint-ninja View Post
hi guys,

this table:

Primary master PATA hard disk had
Primary slave PATA hard disk hdb
Secondary master PATA hard disk hdc
Secondary slave PATA hard disk hdd

Table 2-3 PATA hard disk configurations

should had actually be hda???

just wanted to make sure
yes looks like a simple autocorrect error. the primary master in a PATA (IDE) system would typically be /dev/hda as you mention.
 
  


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
typo in a/maketag ? guanx Slackware 1 09-16-2013 07:32 AM
Small typo jostber Slackware 12 07-09-2013 11:26 PM
Don't make a typo powadha General 6 09-21-2006 03:47 AM
Typo in the LQ rules Nylex LQ Suggestions & Feedback 1 07-18-2006 08:33 AM
is it an error or typo? blackcat Linux From Scratch 1 09-02-2002 07:41 PM


All times are GMT -5. The time now is 01:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration