How to mount mass storage drive

Discussion in 'Technical' started by perfectpol7, Jan 30, 2009.

  1. perfectpol7

    perfectpol7 New Member

    I have a file server fedora 10 and unable to mount mass storage. How to i mount mass storage drive. I have tried to mount using GUI but to no avail. If you click the mass storage error message "Unable to mount location, can't mount file"
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What are the outputs of
    Code:
    fdisk -l
    and
    Code:
    mount
    ? What's the device you tried to mount?
     
  3. perfectpol7

    perfectpol7 New Member

    the output for code fdisk -1:
    fdisk: invalid option -- '1'

    Usage: fdisk [-b SSZ] [-u] DISK Change partition table
    fdisk -l [-b SSZ] [-u] DISK list partition tables
    fdisk -s Partition Give partition sizes in blocks
    fdisk -v Give fdisk version

    Here DISK is sothing like /dev/hdb or /dev/sda and partition is somtehing like /dev/hda7
    -u: give Start and End in sector (instead of cylinder) units
    -b 2048: (for certain MO disks) use 2048-byes sector

    then mount outputs:
    /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 tempfs (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    gvfs-fuse-daemon on /home/admin/ .gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=admin)
    gvfs-fuse-daemon on /home/admin/ .gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=admin)
    gvfs-fuse-daemon on /home/user/ .gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=user)

    The device that i want to mount are other two hard drives in my server. The server is new and had three harddrives. out of these three i am only using the one on which the fedora is installed. So i want to use the other two harddrives.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    It's fdisk -l, not fdisk -1.
     
  5. perfectpol7

    perfectpol7 New Member

    Sorry for delaying to response as I was hook up with some other stuff.

    the output fdisk -l is

    [root@serverGra ~]# fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0006cd12

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 25 200781 83 Linux
    /dev/sda2 26 19457 156087540 8e Linux LVM

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00092b15

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 60802 488386583+ 8e Linux LVM

    Now how would l mount this /dev/sdb: 500GB need to use it.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    /dev/sdb1 uses LVM. What's the output of
    Code:
    pvdisplay
    ?
     
  7. perfectpol7

    perfectpol7 New Member

    [root@serverGra ~]# pvdisplay
    --- Physical volume ---
    PV Name /dev/sdc1
    VG Name UserData
    PV Size 465.76 GB / not usable 4.02 MB
    Allocatable yes
    PE Size (KByte) 4096
    Total PE 119234
    Free PE 119234
    Allocated PE 0
    PV UUID fjmLnF-rN4a-Ag36-KhoB-s20g-ScNb-f1BclX

    --- Physical volume ---
    PV Name /dev/sdb1
    VG Name VolGroup01
    PV Size 465.76 GB / not usable 4.02 MB
    Allocatable yes
    PE Size (KByte) 4096
    Total PE 119234
    Free PE 119234
    Allocated PE 0
    PV UUID rt3e5T-iOda-2eKe-g4RL-z8ol-3SJc-s68YXC

    --- Physical volume ---
    PV Name /dev/sda2
    VG Name VolGroup00
    PV Size 148.86 GB / not usable 13.24 MB
    Allocatable yes
    PE Size (KByte) 32768
    Total PE 4763
    Free PE 1
    Allocated PE 4762
    PV UUID q3w4db-mVkg-n85q-qC2S-cqk9-b5kq-boVMGJ
     
  8. falko

    falko Super Moderator Howtoforge Staff

    There's a volume group called VolGroup01 on /dev/sdb1.

    What are the outputs of
    Code:
    vgdisplay
    and
    Code:
    lvdisplay
    ?
     
  9. perfectpol7

    perfectpol7 New Member

    the output results are:-

    [root@serverGra ~]# vgdisplay
    --- Volume group ---
    VG Name UserData
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 1
    VG Access read/write
    VG Status resizable
    MAX LV 256
    Cur LV 0
    Open LV 0
    Max PV 256
    Cur PV 1
    Act PV 1
    VG Size 465.76 GB
    PE Size 4.00 MB
    Total PE 119234
    Alloc PE / Size 0 / 0
    Free PE / Size 119234 / 465.76 GB
    VG UUID 39qCD9-fG6B-LRfX-b0eX-huBx-3Dc8-jAWeK1

    --- Volume group ---
    VG Name VolGroup01
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 1
    VG Access read/write
    VG Status resizable
    MAX LV 256
    Cur LV 0
    Open LV 0
    Max PV 256
    Cur PV 1
    Act PV 1
    VG Size 465.76 GB
    PE Size 4.00 MB
    Total PE 119234
    Alloc PE / Size 0 / 0
    Free PE / Size 119234 / 465.76 GB
    VG UUID CQfNpK-Exti-Ak2h-N5f6-QHT6-m0Wo-nDcxXi

    --- Volume group ---
    VG Name VolGroup00
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 3
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 2
    Open LV 2
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size 148.84 GB
    PE Size 32.00 MB
    Total PE 4763
    Alloc PE / Size 4762 / 148.81 GB
    Free PE / Size 1 / 32.00 MB
    VG UUID 0FsL1e-sZed-rI1L-eRAh-NG4F-UmdR-HryFY9

    You have new mail in /var/spool/mail/root
    [root@serverGra ~]#

    [root@serverGra ~]# lvdisplay
    --- Logical volume ---
    LV Name /dev/VolGroup00/LogVol00
    VG Name VolGroup00
    LV UUID cUohhL-eFwY-946G-3CvX-MzAf-d8tD-JCEdnP
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 144.41 GB
    Current LE 4621
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:0

    --- Logical volume ---
    LV Name /dev/VolGroup00/LogVol01
    VG Name VolGroup00
    LV UUID 1OXE5c-GIA8-qVCX-XYvl-kJg2-fx0d-8yCim0
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 4.41 GB
    Current LE 141
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:1

    [root@serverGra ~]#
     
  10. falko

    falko Super Moderator Howtoforge Staff

    /dev/sdb1 is used for the volume group VolGroup01 (which currently doesn't contain any logical volumes).

    You msut now create at least one logical volume in that volume group, create a file system on it, and mount it.
    Take a look at this tutorial: http://www.howtoforge.com/linux_lvm
     
  11. perfectpol7

    perfectpol7 New Member

    I have follow the tutorial in the above link and at the end to write command (w) the output is:-

    Command (m for help): w
    The partition table has been altered!

    Calling ioctl() to re-read partition table.

    WARNING: Re-reading the partition table failed with error 22: Invalid argument.
    The kernel still uses the old table.
    The new table will be used at the next reboot.
    Syncing disks.

    is it right or I have harm my computer. I did not reboot the computer. What this error 22.

    the fdisk -l output is the same nothing changed.
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Please reboot and take a look at the
    Code:
    fdisk -l
    output again.
     
  13. perfectpol7

    perfectpol7 New Member

    okay! I will do that on monday as i am out of office. Will i data be okay as this is a server
     
  14. perfectpol7

    perfectpol7 New Member

    root@serverGra ~]# fdisk -l

    the output of the fdisk -l code after reboot

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0006cd12

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 25 200781 83 Linux
    /dev/sda2 26 19457 156087540 8e Linux LVM

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00092b15

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 60802 488386583+ 8e Linux LVM

    Disk /dev/sdc: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00081343

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 1 60802 488386583+ 8e Linux LVM
    [root@serverGra ~]#
     
  15. perfectpol7

    perfectpol7 New Member

    root@serverGra ~]# fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0006cd12

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 25 200781 83 Linux
    /dev/sda2 26 19457 156087540 8e Linux LVM

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00092b15

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 60802 488386583+ 8e Linux LVM

    Disk /dev/sdc: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00081343

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 1 60802 488386583+ 8e Linux LVM
    [root@serverGra ~]#
     
  16. falko

    falko Super Moderator Howtoforge Staff

    /dev/sdb1 and /dev/sdc1 are used for LVM. You can now create logical volumes on them.

    BTW, you don't need to reformat the hard drives. When I posted the link to http://www.howtoforge.com/linux_lvm , my intention was to show you the commands to create logical volumes and create file systems.
     
  17. perfectpol7

    perfectpol7 New Member

     
  18. falko

    falko Super Moderator Howtoforge Staff

Share This Page