LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-02-2006, 12:51 AM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30
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
 
Old 10-02-2006, 12:54 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
/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

Last edited by odcheck; 10-02-2006 at 12:56 AM.
 
Old 10-02-2006, 01:09 AM   #3
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
On the HDD hdc I have some messages in the /home/user directory. How can I find that messages?
 
Old 10-02-2006, 01:36 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
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?
 
Old 10-02-2006, 02:27 AM   #5
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
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?
 
Old 10-02-2006, 03:19 AM   #6
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
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
 
  


Reply



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
[RAID1, GRUB] Secondary HDD can't boot up when primary HDD fails Akhran Linux - Newbie 2 05-04-2006 04:17 AM
Broken GRUB on primary HDD? d4w50n Linux - Newbie 1 04-09-2006 12:04 PM
Installing FC3 on primary slave HDD... oolceeoo Linux - Hardware 2 02-22-2005 09:59 PM
Can't remove 2ndry hdd w/Mandrake, primary with W2k won't boot! Ariel Starfire Linux - Newbie 1 05-14-2004 04:03 AM
Linux unstable after attaching primary slave IDE HDD glock19 Linux - General 4 01-28-2002 08:07 PM

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

All times are GMT -5. The time now is 11:57 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
Open Source Consulting | Domain Registration