LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 01:52 AM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 149

Rep: Reputation: 7
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, 01:56 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,524

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

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
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, 07:25 AM   #4
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 149

Original Poster
Rep: Reputation: 7
thanks syg00...
 
Old 01-27-2014, 08: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: 72

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, 08:26 AM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,935

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, 12:28 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,487

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


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