Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: mount drive?

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    To mount a drive use
    Code:
    mount /dev/hda1 /mnt/hda1
    Replace /dev/hda1 with the drive name and /mnt/hda1 with the mount location you want to use.
    Usally you mount your hadrdisk in /mnt/[directerory];

    hope this helps;
    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Thanks for your reply, but how do I know what the name is?
    How do I know what directory to mount it to?

  4. $spacer_open
    $spacer_close
  5. #4
    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

  6. #5
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    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 try
    Code:
    mkdir /mnt
    as root, and to create [something] do
    Code:
    mkdir /mnt/[something]
    replaceing something with your choich of name, like backup. o'r John's music.

    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  7. #6
    root@server [~]# mount /dev/hdb1 /backup
    mount: you must specify the filesystem type

    ?

  8. #7
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    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
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  9. #8
    No, I have not yet. But hopefully someone will help

  10. #9
    Linux 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. #10
    I think I have to mount before format correct?

    By the way, this is a secondary 80GB drive for the server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •