Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.