PDA

View Full Version : Unable to mount a hard drive partition



mdyehiya
27th July 2008, 06:48 PM
Hi All,
I created partition on the extended disk partition using fdisk.
Creating partition done with the following steps

1. Using fdisk created extended partion
2. Created logical partion for complete extended partion
3. Formatted partition with mke2fs /dev/sda5
4. Added entry in /etc/fstab
5. Tried to mount the partion and it throws follows error

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


Device Boot Start End Blocks Id System
/dev/sda1 1 3500 28113718+ 83 Linux
/dev/sda2 * 3825 10249 51598336 7 HPFS/NTFS
/dev/sda3 3501 3824 2602530 82 Linux swap / Solaris
/dev/sda4 10249 14593 34898912+ 5 Extended
/dev/sda5 10249 14593 34898881 83 Linux

Any suggestions pls

Regards

Mohamed Yehiya S

a thing
27th July 2008, 08:25 PM
What's the line in /etc/fstab?

mdyehiya
27th July 2008, 08:32 PM
/dev/sda5 /apps/dataDrive ext3 defaults,force 0 0


the mount directory exists in the system

SlowJet
27th July 2008, 09:03 PM
mkfs.ext3 /dev/sda5

#mount
mount /dev/sda5 -t ext3 /apps/dataDrive
# /apps/dataDrive will need chown and SELinux labels
# do not use -F for force

# fstab entry
/dev/sda5 on /apps/dataDrive ext3 defaults 1 2


SJ

mdyehiya
27th July 2008, 09:28 PM
Great help
My problem got resolved now

Thanks