Forum Home
Press F1
 
Thread ID: 127014 2012-09-29 12:52:00 fstab wrong? Cato (6936) Press F1
Post ID Timestamp Content User
1304066 2012-09-29 12:52:00 Can someone (Erayd :)) tell me what is wrong with this?


Failed to mount /mnt/MEDIA

Which bring down a bunch of dependencies which prevents me from starting.

systemctl status reports:



NTFS signature is missing.
Failed to mount '/dev/sda6': Invalid argument
The device '/devsda6" doesn't seem to have a valid NTFS
Maybe the wrong device is used? blah blah balh



cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
# UUID=31050625-09e8-4b3f-adb2-3eec980fb778
/dev/sdb5 / btrfs rw,relatime,space_cache 0 1

# UUID=0a79854f-7114-4fc2-a79a-9ad77249dd41
/dev/sdb1 /boot ext2 rw,relatime 0 2

# UUID=8e32b1b9-189c-420e-a795-e4ede130a112
/dev/sdb6 /home btrfs rw,relatime,nospace_cache 0 2

#/dev/sda6 /mnt/MEDIA ntfs-3g auto,rw 0 0


What am I missing here?
Cato (6936)
1304067 2012-09-29 14:15:00 cat /proc/partitions

Post the results?
Chilling_Silence (9)
1304068 2012-09-29 14:16:00 I assume that /dev/sda6 actually exists and contains a valid NTFS filesystem? The error messages you have posted seem to indicate otherwise.

According to the manpages for ntfs-3g and fuse, 'auto' is not a valid mount option. If you remove that option, does it then mount correctly?

If removing 'auto' didn't help, try to mount it manually (mount -t ntfs-3g /dev/sda6 /mnt/MEDIA) rather than using fstab - what happens?
Erayd (23)
1304069 2012-09-29 17:27:00 Removing auto didn't work .


[root@localhost mnt]# mount -t ntfs-3g /dev/sda6 /mnt/asdf5/
NTFS signature is missing .
Failed to mount '/dev/sda6': Invalid argument
The device '/dev/sda6' doesn't seem to have a valid NTFS .
Maybe the wrong device is used? Or the whole disk instead of a
partition (e . g . /dev/sda, not /dev/sda1)? Or the other way around?



Disk identifier: 0x160e4564

Device Boot Start End Blocks Id System
/dev/sda1 * 16065 524313404 262148670 7 HPFS/NTFS/exFAT
/dev/sda2 524313405 2202061679 838874137+ 5 Extended
/dev/sda5 524313468 1048610744 262148638+ 7 HPFS/NTFS/exFAT
/dev/sda6 1048610808 1572908084 262148638+ 7 HPFS/NTFS/exFAT
/dev/sda7 1572908148 2202061679 314576766 7 HPFS/NTFS/exFAT

Partition exists and I can mount it properly with "mount /dev/sda6 /mnt/MEDIA" .

I tried it in fstab the same way, without a type or any other arguments . And that works .
Cato (6936)
1304070 2012-09-30 01:24:00 I can mount it properly with "mount /dev/sda6 /mnt/MEDIA".Don't do that - mounting without an explicit type will use the kernel NTFS driver, which doesn't have proper write support. If you try to mount as RW using this driver, you run a *very* high risk of destroying your filesystem.


I tried it in fstab the same way, without a type or any other arguments. And that works.Same comment as above - don't do this unless mounting as read-only. If you're wanting to write, you should be using the ntfs-3g fuse driver.

Noting the output from running 'mount -t ntfs-3g /dev/sda6 /mnt/asdf5/', this is a pretty good indication that the filesystem is likely stuffed. Can Windows successfully mount it RW?

What did you use to create the filesystem? If Windows, please state which version.

If you look at it with testdisk, does testdisk see anything odd about the partition?

Does chkdsk find any errors?

Could you please post the output of running 'blkid', and 'blkid -p /dev/sda6'?
Erayd (23)
1304071 2012-09-30 01:40:00 Just to double-check here, are you *sure* that /dev/sda6 actually contains an NTFS filesystem as opposed to something else? Erayd (23)
1304072 2012-09-30 02:24:00 Something is wrong with the partition table.

Running blkid -p /dev/sda6, it is btrfs.


/dev/sda6: UUID="24f6f03a-7222-4be9-b030-6a5b78710e2c" UUID_SUB="4fc46124-a53d-4696-b4bc-2d1e863194da" TYPE="btrfs" USAGE="filesystem" PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0x7" PART_ENTRY_NUMBER="6" PART_ENTRY_OFFSET="1048610808" PART_ENTRY_SIZE="524297277" PART_ENTRY_DISK="8:0"

I was relying on fdisk to tell me what was what.


fdisk -l

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes, 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x160e4564

Device Boot Start End Blocks Id System
/dev/sda1 * 16065 524313404 262148670 7 HPFS/NTFS/exFAT
/dev/sda2 524313405 2202061679 838874137+ 5 Extended
/dev/sda5 524313468 1048610744 262148638+ 7 HPFS/NTFS/exFAT
/dev/sda6 1048610808 1572908084 262148638+ 7 HPFS/NTFS/exFAT
/dev/sda7 1572908148 2202061679 314576766 7 HPFS/NTFS/exFAT

Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x74491a7c

Device Boot Start End Blocks Id System
/dev/sdb1 * 16065 289169 136552+ 83 Linux
/dev/sdb2 289176 242967059 121338942 7 HPFS/NTFS/exFAT
/dev/sdb3 242967060 765159884 261096412+ f W95 Ext'd (LBA)
/dev/sdb4 767087685 976768064 104840190 7 HPFS/NTFS/exFAT
/dev/sdb5 242967123 347823314 52428096 83 Linux
/dev/sdb6 347823378 760966919 206571771 83 Linux
/dev/sdb7 760966983 765159884 2096451 82 Linux swap / Solaris
Cato (6936)
1304073 2012-09-30 02:39:00 Something is wrong with the partition table.The partition table is fine. It just doesn't match the filesystem you've put on it ;).


Running blkid -p /dev/sda6, it is btrfs.This will be why ntfs-3g freaked out. Mount it as btrfs, and all will be well.


I was relying on fdisk to tell me what was what.What fdisk is showing you is the partition type flag - that flag has nothing to with the filesystem that's actually on the partition. Some operating systems use it as a hint when figuring out how to treat the partition - however using this as an authoritative source of information about the partition's contents is a very bad idea, as it can easily be wrong (as you've just found out :D).

Edit: If you want, you can use fdisk to change the partition type to the correct one (although you don't need to do this, as Linux really doesn't care about that flag). Press 't', choose the partition number, and enter '83' as the type.
Erayd (23)
1304074 2012-09-30 02:54:00 Thanks dude! :) Cato (6936)
1304075 2012-09-30 03:07:00 Thanks dude! :)No worries, glad I could help :). Erayd (23)
1