Little issue about hdd. I can't find the 2nd

Discussion in 'Installation/Configuration' started by hhhhhh, Sep 24, 2008.

  1. hhhhhh

    hhhhhh New Member

    Hello,

    I was searching my second hard drive the last night to make a mirror with other folders (send all uploaded images to the 2nd hdd), but I didn't find it.

    When I execute fdisk -l in ssh appear that:

    Code:
    Disk /dev/sda: 150.0 GB, 150039945216 bytes
    255 heads, 63 sectors/track, 18241 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000cad43
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       17495   140528556   83  Linux
    /dev/sda2           17496       18241     5992245    5  Extended
    /dev/sda5           17496       18241     5992213+  82  Linux swap / Solaris
    
    Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x9bae9bae
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1      121600   976751968+  83  Linux
    /dev/sda is the main disc, where I have the linux OS and scripts.
    /dev/sdb is the 2nd where I want create folders.

    I went to /dev folder and missing, I went to /media folder and missing :confused:

    After that, i went to /etc/fstab to watch it and display it:

    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    # /dev/sda1
    UUID=336011ee-a92d-4b0e-bf81-56963a685b6b /               ext3    relatime,errors=remount-ro,usrquota,grpquota 0       1
    # /dev/sda5
    UUID=539d6ba9-38ae-4143-a3d6-03b6ab05f80e none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
    My question is How can I do to show sdb or sdb1 disc in /media or /dev folder like display in fdisk?

    I was thinking to do it but I prefer to receive another opinion:

    $ sudo mkdir /media/sdb1
    $ sudo mount /dev/sdb1 /media/sdb1

    I read about edit fstab but I don't know how to do it.

    Thanks in advance! :)
     
    Last edited: Sep 24, 2008
  2. falko

    falko Super Moderator ISPConfig Developer

    You can do it that way.

    Add something like this to /etc/fstab:
    Code:
    /dev/sdb1 /media/sdb1               ext3    relatime,errors=remount-ro 0       1
     
  3. hhhhhh

    hhhhhh New Member

    Thank you very much again falko! :)
     

Share This Page