LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   is this a typo in my LInux+ book? (https://www.linuxquestions.org/questions/linux-newbie-8/is-this-a-typo-in-my-linux-book-4175492252/)

sigint-ninja 01-23-2014 01:52 AM

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

pan64 01-23-2014 01:56 AM

yes that is usually hda

syg00 01-23-2014 02:24 AM

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.

sigint-ninja 01-27-2014 07:25 AM

thanks syg00...

Rawcous 01-27-2014 08:16 AM

Quote:

Originally Posted by sigint-ninja (Post 5103452)
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

Ser Olmy 01-27-2014 08:26 AM

Quote:

Originally Posted by Rawcous (Post 5106093)
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.

lleb 01-27-2014 12:28 PM

Quote:

Originally Posted by sigint-ninja (Post 5103452)
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.


All times are GMT -5. The time now is 11:28 PM.