Click to See Complete Forum and Search --> : Device Mounting Problem


jklanka
01-22-2008, 06:43 AM
Hi,

I am trying to mount a harddisk ( hdc ) device.

But when I run "mount -t auto /dev/hdc1 /mnt/hdc/hdc1" then I get

mount: unknown filesystem type 'xfs'

And if I run "mount -t vfat /dev/hdc1 /mnt/hdc/hdc1" then I get

mount: /dev/hdc1 already mounted or /mnt/hdc/hdc1 busy


I have pasted all the out put for the following linux commands. Please help me to sort this problem.

cat /etc/fstab :

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0


cat /etc/mtab
/dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda2 /tmp ext3 rw 0 0
/dev/hda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0


df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
107G 5.0G 97G 5% /
/dev/hda2 487M 11M 451M 3% /tmp
/dev/hda1 99M 17M 77M 19% /boot
tmpfs 236M 0 236M 0% /dev/shm



fdisk -l :

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 13 104391 83 Linux
/dev/hda2 14 77 514080 83 Linux
/dev/hda3 78 14593 116599770 8e Linux LVM

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 8127 4096007+ fd Linux raid autodetect
/dev/hdc2 8128 11175 1536192 fd Linux raid autodetect
/dev/hdc3 11176 12216 524664 fd Linux raid autodetect
/dev/hdc4 12217 155061 71993880 fd Linux raid autodetect

Disk /dev/md4: 73.7 GB, 73721643008 bytes
2 heads, 4 sectors/track, 17998448 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md4 doesn't contain a valid partition table

Disk /dev/md3: 537 MB, 537133056 bytes
2 heads, 4 sectors/track, 131136 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md3 doesn't contain a valid partition table

Disk /dev/md2: 1572 MB, 1572995072 bytes
2 heads, 4 sectors/track, 384032 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 4194 MB, 4194238464 bytes
2 heads, 4 sectors/track, 1023984 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table


cat /etc/blkid/blkid.tab
<device DEVNO="0xfd01" TIME="1199785551" TYPE="swap">/dev/mapper/VolGroup00-LogVol01</device>
<device DEVNO="0xfd00" TIME="1199785551" UUID="2b1e9e8c-53c0-4f42-8319-6d1ef7952baa" SEC_TYPE="ext2" TYPE="ext3">/dev/mapper/VolGroup00-LogVol00</device>
<device DEVNO="0x0302" TIME="1200925998" LABEL="/tmp" UUID="39ec675e-f2b7-4f51-8394-3b6cd519db49" SEC_TYPE="ext2" TYPE="ext3">/dev/hda2</device>
<device DEVNO="0x0301" TIME="1200925998" LABEL="/boot" UUID="fc901d9d-7f34-4d5a-abc7-e33ca97f4a7a" SEC_TYPE="ext2" TYPE="ext3">/dev/hda1</device>
<device DEVNO="0xfd00" TIME="1199785551" UUID="2b1e9e8c-53c0-4f42-8319-6d1ef7952baa" SEC_TYPE="ext2" TYPE="ext3">/dev/VolGroup00/LogVol00</device>
<device DEVNO="0xfd01" TIME="1200925988" TYPE="swap">/dev/VolGroup00/LogVol01</device>
<device DEVNO="0x1601" TIME="1201030851" UUID="a8cf9ddd-eeda-4db4-b34d-80841f2f3e5e" TYPE="xfs">/dev/hdc1</device>
<device DEVNO="0x1602" TIME="1200960212" UUID="0e5bace8-5b41-491f-be40-4314bd32a74e" TYPE="xfs">/dev/hdc2</device>
<device DEVNO="0x1603" TIME="1200960242" TYPE="swap">/dev/hdc3</device>
<device DEVNO="0x1604" TIME="1200960266" UUID="1591bae6-8348-4282-8ff3-c0c9aa5bd8ba" TYPE="xfs">/dev/hdc4</device>


Please help

Thanks

happybunny
01-22-2008, 01:50 PM
sounds like that drive has an xfs filesystem on it that your kernel can't read.

what is in /proc/filesystems? is xfs listed?

jklanka
01-23-2008, 01:11 AM
Hi,

cat /proc/filesystems outputs

nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cpuset
nodev binfmt_misc
nodev debugfs
nodev securityfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev eventpollfs
nodev devpts
ext2
nodev ramfs
nodev hugetlbfs
iso9660
nodev mqueue
ext3
nodev rpc_pipefs
nodev autofs

wheelnut
01-23-2008, 05:46 AM
Need to compile xfs into the kernel or as a module and load the module using

modprobe xfs

HTH

bwkaz
01-23-2008, 07:38 PM
Uh, I'm not so sure it's actually XFS. It looks like fdisk thinks it's a "Linux RAID autodetect" (or at least, that's the value that's in the partition table's "type" byte for these partitions). If that's really what it is, then the real filesystem isn't on hdc1, it's on one of the md* devices. (But fdisk won't tell you anything about the md* devices, because Linux RAID devices aren't partitioned. You'd probably have to copy the first few megs out of the md* device into a normal file, then run file on that file, to see what filesystem it has on it.)

Unless, jklanka -- did you specifically set up software RAID on this machine, using various partitions from your hdc hard drive? If not, then ignore this post. :)

happybunny
01-24-2008, 08:22 PM
Is there data on the drive you want to keep?

if not, just fdisk it again and carve it up and/or format it anew