Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
How do I mount a hard disk on a server? I've never done this before to be honest. How do I know "where it is" or what directory, ie "/backup" or such to mount to? Please explain.
How do I see all disks on the server, their full info?
I need to format it first.
I'm using IDE. This is what whm's server info shows (before mount)
Where XX is the drive and partition and <some-directory> is an empty directory either in /mnt (popular place for mounts) or any other empty directory you create.
If this is a new drive, you'll need to format it and create filesystem on it but yet I won't go any further until you provide more info.
Originally posted by chadi Thanks for your help, here are the results
root@server [~]# /sbin/fdisk -l
Disk /dev/hdc: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/hda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 144 1052257+ 82 Linux swap
/dev/hda3 145 10011 79256677+ 83 Linux
Okay, thanks for the info.. it appears you have a /dev/hdc with no partitions.. are you trying to imply more questions or something? What do you want to do with this drive? Do I need to ask more questions or are you going to provide more details in what your trying to accomplish?
This is a leased server, I have another server which I had the techs at data center take the 80gb drive to install on this server.
They said they cabled it and I just have to mount it.
I just want to mount the 2nd 80gb drive after formatting it and use it as a mirror drive
Originally posted by chadi This is a leased server, I have another server which I had the techs at data center take the 80gb drive to install on this server.
They said they cabled it and I just have to mount it.
I just want to mount the 2nd 80gb drive after formatting it and use it as a mirror drive
Originally posted by chadi well, it is not actually raid but mirror as in backup drive
Okay. Format it and then create a mount for it..
If you want partitions setup though to split it up or just one big drive, use cfdisk or fdisk..
cfdisk /dev/hdc
Then format the drive, if your using ext3 with a journaling filesystem, do a command like this (where hdc1 is the partition you created, repeat if you created more than one partition.. ex: hdc2, hdc3.. etc):
mke2fs -j /dev/hdc1
When its done, create your empty directory you want to mount it from:
cd /
mkdir backup
mount /dev/hdc1 /backup
And if you want it to mount automatically at boot time.. add it to your /etc/fstab file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.