LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Witch is my primary HDD? (https://www.linuxquestions.org/questions/linux-newbie-8/witch-is-my-primary-hdd-488627/)

gubak 10-02-2006 12:51 AM

Witch is my primary HDD?
 
I have two harddisks inside the server. One of them is the primary the another is the mirror HDD. If I type command "fdisk -l" to see the harddisks I get the following result:

"
Disk /dev/hdc: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Unit = cylinders of 16065 * 512 = 8225280

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 13 104391 83 Linux
/dev/hdc2 14 9954 79851082+ 83 Linux
/dev/hdc3 9955 10011 457852+ 82 Linux swap


Disk /dev/hda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Unit = cylinders of 16065 * 512 = 8225280

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9954 79851082+ 83 Linux
/dev/hda3 9955 10011 457852+ 82 Linux swap
"

My question is: Witch one is the primary HDD hdc or hda?

Thanks

odcheck 10-02-2006 12:54 AM

/dev/hda

and
Quote:

fdisk (in the first form of invocation) is a menu driven program for creation and manipulation of partition tables. It understands DOS type partition tables and BSD or SUN type disklabels.

The device is usually one of the following:

/dev/hda /dev/hdb /dev/sda /dev/sdb


(/dev/hd[a-h] for IDE disks, /dev/sd[a-p] for SCSI disks, /dev/ed[a-d] for ESDI disks, /dev/xd[ab] for XT disks). A device name refers to the entire disk.

The partition is a device name followed by a partition number. For example, /dev/hda1 is the first partition on the first IDE hard disk in the system. Disks can have up to 15 partitions. See also /usr/src/linux/Documentation/devices.txt

gubak 10-02-2006 01:09 AM

On the HDD hdc I have some messages in the /home/user directory. How can I find that messages?

odcheck 10-02-2006 01:36 AM

Quote:

Originally Posted by gubak
On the HDD hdc I have some messages in the /home/user directory. How can I find that messages?


what do you mean?
System messages ? What kind of messages?

gubak 10-02-2006 02:27 AM

Email messages for a user.
Weakly ones I made a whole system backup (dd if=/dev/hda of=/dev/hdc), so I copy the entire primary HDD on the secondary HDD. My last update were made 5 days ago. Yesterday my linux system was crashed down (perhaps because of power - I couldn't start it). It's not problem, I just changed the HDD's and my system worked again with 5 days old datas. But the big problem is, that one of my users got a very important message (email message) 3 days ago (so this message was not backuped, but this message is on the another HDD witch doesn't start).
So my problem is this mail. This mail is no the hdc (/home/user) but I don't know how to access it.
Do you have any idea?

odcheck 10-02-2006 03:19 AM

So you can start yor system now with the backup hdd. And as far as I understand you
physical moved the discs. So how about if you just mount that disk in to a mount dir on your working system?
Like mount /dev/hdc2 /mnt/disk


All times are GMT -5. The time now is 01:39 AM.