Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2007
    Posts
    325

    new hdd on server

    Hello
    i have one server linux centos with one hdd
    then i install another hdd on this server

    datacenter say we must run mount ,until server can instal new hdd

    new hdd have very data( is not blank)

    if maybe please help me

    Thanks
    Soon ...

  2. #2
    Join Date
    Aug 2007
    Location
    Greece
    Posts
    390
    What exactly do you want to do with your new server?
    Your message doesnt have a clear question so we can help you.
    NOT a webhost!helping here just for the fun of it!
    G(r)eek inside.

  3. #3
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,202
    He wants to mount a drive so that he can see it

    Mount a drive - ' Map physical drive to folder within / " = basic example.


    This guide is meant to be a simple walkthrough on how to parition a new drive to be used only for backups. If you want to put mysql and a /tmp parition on it check out my other guide located on the left. This guide uses fdisk which is a very powerful tool but you should be fine as long as you are careful in what you do. Use this guide at your own risk! What ever you do make sure to NOT use the command "fdisk /dev/sda" or "fdisk /dev/hda" as that means you are editing your main and boot partition.



    ***WARNING***

    ***WARNING***

    ***WARNING***

    ***WARNING***

    ***WARNING***

    ***WARNING***

    ***WARNING***



    Be careful and follow this guide precisely That all say here is the actual guide.



    First run fdisk to look at your available disks.

    # fdisk -l

    Disk /dev/hda: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 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 268 2048287+ 82 Linux swap
    /dev/hda3 269 9726 75971385 83 Linux

    Disk /dev/hdc: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System



    What we see above is two seperate disks, one being hda and the other is hdc. The hda is the main boot drive and as I stated above you do not want to touch it! The first step is going to be to format the drive. If the drive is hdb, hdd, sdb, sdc, sdd simply replace "hdc" wherever you see in the guide with this.

    #fdisk /dev/hdc

    -press "n" for new partion
    -press "p" for primary partition
    -press "1" for the first partition
    -press enter for the first AND last cylinders. This will make it automatically use the entire disk
    -press "w" for write out to save what you have done



    The next step is to make the filesystem readable by linux. I am going to have you format it in ext3 which is the most common filesystem type.

    #mkfs.ext3 /dev/hdc1

    Note that I have used "hdc1" because it is the first partition. Now we are going to set the disk to automatically be mounted on boot as /backup. Again if you want it placed someplace else simply rename the directory.

    #mkdir /backup

    #pico -w /etc/fstab

    Add the following line:
    /dev/hdc1 /backup ext3 defaults 1 1



    Now test it out

    #mount /backup

    and you should be done If you have any questions please feel free to post them below. This guide should work fine for any server, it is not dependent on control panel.
    Quoted from eth0.us/mount
    DigitalGoods.info
    FREE Shared, Mega Resellers + Dedicated Servers

  4. #4
    Join Date
    Jan 2008
    Location
    India
    Posts
    46
    Quote Originally Posted by robocap View Post
    Hello
    i have one server linux centos with one hdd
    then i install another hdd on this server

    datacenter say we must run mount ,until server can instal new hdd

    new hdd have very data( is not blank)

    if maybe please help me

    Thanks
    It seems like you need to mount a new hard disk to your existing live server. For this connect the hard disk ( or ask DC to connect it ). Then type the following command

    Code:
     mount
    The command will show you mounted devices.

    Then type the following command

    Code:
     fdisk -l
    The above command will show the all connected disk drives in the server. By comparing the output of above 2 commands you can reach in conclusion that which one is not mounted ( ie; which one is the newly placed hard disk ). Say /dev/hdc1 is the partition of newly connected hard disk which is not mounted and it contains data. Then to mount it run the following

    Code:
    mkdir /newdrive
    
    mount /dev/hdc1  /newdrive
    Now check the folder /newdrive and you can see the data in /dev/hdc1 there. For mounting it permanently add the following line in /etc/fstab

    Code:
    /dev/hdc1  /newdrive  ext3   defaults     1 2

  5. #5
    Join Date
    Feb 2007
    Posts
    325
    thanks
    hd1 and hd2 have one name
    means for example name hd1 is test
    name hd2 is test again

    how may solved this problem?

    thanks
    Soon ...

  6. #6
    Join Date
    Feb 2007
    Posts
    325
    [[email protected] /]# mount
    /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    /dev/sda1 on /boot type ext3 (rw)
    tmpfs on /dev/shm type tmpfs (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    [[email protected] /]# fdisk -l

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 9729 78043770 8e Linux LVM

    Disk /dev/sdb: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 13 104391 83 Linux
    /dev/sdb2 14 9729 78043770 8e Linux LVM
    [[email protected] /]# mkdir /home2
    [[email protected] /]# mount /dev/sdb2 /home2
    mount: /dev/sdb2 already mounted or /home2 busy



    :-(
    please help me
    Soon ...

  7. #7
    Join Date
    Apr 2005
    Posts
    1,711
    Try:

    mount /dev/sdb /home2

Posting Permissions

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