The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

centos and freebsd mount

Discussion in 'General Discussion' started by arkain, Jan 17, 2006.

  1. arkain

    arkain Well-Known Member

    Joined:
    Mar 20, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Hi guys,

    I'm currently running centos on my server, and my 2nd hd is freebsd... How can I mount this without formatting the hard drive? Please help, it's urgent....
     
  2. thehostinghut

    thehostinghut Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    Here is how I have done it:

    create a directory in the root partition say freebds or backup I don't think it really matters.

    Then create a entry in fsab something like this:

    LABEL=/freebds /freebsd ext3 defaults,usrquota 1 2

    Where freebsd is needs to be whatever you named the directory in the first step


    Then you should just be able to type:

    mount /freebsd or whatever you called the directory.

    I don't think I left anything out. If I did I am sure someone will correct me on this.

    I am not sure if you need to do this but you can list your drives by doing this:

    Then if you type this in your shell:

    fdisk -l

    It should list your drives and what they are. Something like this:

    Disk /dev/hda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 45 361431 83 Linux
    /dev/hda2 46 567 4192965 82 Linux swap
    /dev/hda3 568 14593 112663845 83 Linux

    Disk /dev/hdc: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdc1 * 1 14593 117218241 83 Linux <===This is the one you most likly be looking for.

    Tracy
     
  3. arkain

    arkain Well-Known Member

    Joined:
    Mar 20, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Then create a entry in fsab something like this:

    LABEL=/freebds /freebsd ext3 defaults,usrquota 1 2


    How do I go about doing that?
     
  4. thehostinghut

    thehostinghut Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    cd /etc

    pico -w fstab (nano -w if pico does not work)

    Then put that in there

    Then ctrl+x to save it.

    Tracy
     
  5. arkain

    arkain Well-Known Member

    Joined:
    Mar 20, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    LABEL=/freebds /freebsd ext3 defaults,usrquota 1 2

    is that a type? freebds? or freebsd?
     
  6. thehostinghut

    thehostinghut Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
  7. arkain

    arkain Well-Known Member

    Joined:
    Mar 20, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    this is what I have now...

    255 heads, 63 sectors/track, 8924 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 8924 71681998+ a5 FreeBSD
     
  8. thehostinghut

    thehostinghut Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
Loading...

Share This Page