Sunday, 20 May 2012

Extenal HDD mounting error on centos

I am trying to mount an external hard disk

[root@sysadmin ~]# mount   /dev/sdb1 /mnt/HDD/

mount: you must specify the file system type

but i am getting error. So i specified the file system type

[root@sysadmin ~]# mount -t ext4 /dev/sdb1 /mnt/HDD/

mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so




Solution:



Step: 1

I checked HDD detected or not, using following command

[root@sysadmin ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd967d967

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       31871   256000000   83  Linux
/dev/sda2   *       31871       60419   229313536   83  Linux
/dev/sda3           60419       60802     3072000   82  Linux swap / Solaris

Disk /dev/sdb: 2000.4 GB, 2000398933504 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x584d2cea

  Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      243201  1953512001    7  HPFS/NTFS


HDD detected. Hard disk name /dev/sdb1



Step:2

I installed the fuse-ntfs-3g-2010.10.2-1.el5.rf.x86_64 rpm package.

  #  yum   install  fuse-ntfs
                or
  #  wget http://marush.com/wp-content/uploads/2009/03/ntfs-3g-200921-el5i686.rpm

# rpm -ivh ntfs-3g-200921-el5i686.rpm

After installed that package again i tried

[root@sysadmin ~]# mount   /dev/sdb1 /mnt/HDD/

I mounted the External HDD.


No comments:

Post a Comment