Results 1 to 10 of 14
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" ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-30-2004 #1Just Joined!
- Join Date
- Oct 2004
- Posts
- 52
mount drive?
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?
Thanks
- newbie -
specs:
cpanel/whm
centos 3.3
- 11-30-2004 #2
To mount a drive use
Replace /dev/hda1 with the drive name and /mnt/hda1 with the mount location you want to use.Code:mount /dev/hda1 /mnt/hda1
Usally you mount your hadrdisk in /mnt/[directerory];
hope this helps;
dylunio
- 11-30-2004 #3Just Joined!
- Join Date
- Oct 2004
- Posts
- 52
Thanks for your reply, but how do I know what the name is?
How do I know what directory to mount it to?
- 11-30-2004 #4Just Joined!
- Join Date
- Oct 2004
- Posts
- 52
I'm using IDE. This is what whm's server info shows (before mount)
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 75G 3.4G 68G 5% /
/dev/hda1 99M 14M 80M 15% /boot
none 498M 0 498M 0% /dev/shm
- 11-30-2004 #5
I'm not sure how to find out the drivename, but if its a new second hard drive it will be ether /dev/hdb or /dev/hdb1 I'm not sure,
Mount it anyware you want, usuly you mount things in /mnt/[something], if /mnt dosen't exist tryas root, and to create [something] doCode:mkdir /mnt
replaceing something with your choich of name, like backup. o'r John's music.Code:mkdir /mnt/[something]
dylunio
- 11-30-2004 #6Just Joined!
- Join Date
- Oct 2004
- Posts
- 52
root@server [~]# mount /dev/hdb1 /backup
mount: you must specify the filesystem type
?
- 11-30-2004 #7
Have you formated the drive since it's brand new? It might need this to mount, but I'm afraid I don't know how to format a hdd,
dylunio
- 11-30-2004 #8Just Joined!
- Join Date
- Oct 2004
- Posts
- 52
No, I have not yet. But hopefully someone will help
- 11-30-2004 #9Linux Engineer
- Join Date
- Nov 2004
- Location
- Montreal, Canada
- Posts
- 1,267
if you didnt format your drive,
perform this command
fdisk -l
that will give you the hd* (* = number) of the Hard Drive you want to format
then as ROOT
perform this command
mkfs /dev/hd*
this will format the drive
Post any other question regarding your issue if needed\"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
\"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps
- 11-30-2004 #10Just Joined!
- Join Date
- Oct 2004
- Posts
- 52
I think I have to mount before format correct?
By the way, this is a secondary 80GB drive for the server.


Reply With Quote
