FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Tue Oct 17, 2017 17:12



Post new topic Reply to topic  [ 8 posts ] 
ntfs-3g refuses to mount windows raid rw, size error? 
Author Message

Joined: Tue Mar 03, 2009 00:18
Posts: 5
Post ntfs-3g refuses to mount windows raid rw, size error?
My problem is very similar to this gentlemen's:
viewtopic.php?f=3&t=492&p=1883&hilit=raid#p1883

I made a raid set under Windows XP, using both an underlying firmware raid driver and "Dynamic disks": essentially raid 0+1. I used dmraid and "mdadm -build etc." make the Linux array available, no superblock, without apparent error.

Mounting the raid set read only using the kernel ntfs driver has been without error, nor does Windows see a problem with the array, nor does any other Windows disk configuration utility.

ntfs-3g gives the same error message as listed in the above post, with ntfsresize insisting that there is a problem with the container being smaller than the filesystem. The suggestion made in the above post does not apply, as I used build, and there is no superblock.

How would you suggest I go about fixing the size problem, considering the raid set and filesystem were entirely created by Windows? Or is this a kernel/LDM/dmraid problem, and how do I diagnose the malfunctioning subsystem?


Tue Mar 03, 2009 00:32
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: ntfs-3g refuses to mount windows raid rw, size error?
Please send the exact ntfs-3g error message and the outputs of 'fdisk -lu' and 'cat /proc/partitions'


Tue Mar 03, 2009 00:45
Profile

Joined: Tue Mar 03, 2009 00:18
Posts: 5
Post Re: ntfs-3g refuses to mount windows raid rw, size error?
Thanks for responding. I'm not at the machine currently, but will post the output when I am.


Tue Mar 03, 2009 01:12
Profile

Joined: Tue Mar 03, 2009 00:18
Posts: 5
Post Re: ntfs-3g refuses to mount windows raid rw, size error?
The error:

mount -t ntfs-3g /dev/md2 /mnt/hd
Failed to read last sector (122881120): Invalid argument
Perhaps the volume is a RAID/LDM but it wasn't setup yet, or the
wrong device was used, or the partition table is incorrect.
Failed to mount '/dev/md/2': Invalid argument
The device '/dev/md/2' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?

fdisk -lu

Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x93fe39f6

Device Boot Start End Blocks Id System
/dev/hda1 * 63 122881184 61440561 42 SFS
/dev/hda2 122881185 125949599 1534207+ 42 SFS
/dev/hda3 125949600 625137344 249593872+ 42 SFS

Disk /dev/hdb: 250 MB, 250609664 bytes
64 heads, 32 sectors/track, 239 cylinders, total 489472 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x19cb014e

Device Boot Start End Blocks Id System
/dev/hdb4 * 32 489471 244720 6 FAT16

Disk /dev/md1: 1570 MB, 1570897920 bytes
2 heads, 4 sectors/track, 383520 cylinders, total 3068160 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000

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

Disk /dev/md0: 255.5 GB, 255584043008 bytes
2 heads, 4 sectors/track, 62398448 cylinders, total 499187584 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x08040000

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

Disk /dev/sda: 65 MB, 65536000 bytes
50 heads, 32 sectors/track, 80 cylinders, total 128000 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xa66b7d2e

Device Boot Start End Blocks Id System
/dev/sda1 * 32 127999 63984 6 FAT16

Disk /dev/md2: 62.9 GB, 62915084288 bytes
2 heads, 4 sectors/track, 15360128 cylinders, total 122881024 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x69205244

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/md2p1 ? 218129509 1920119918 850995205 72 Unknown
Partition 1 does not end on cylinder boundary.
/dev/md2p2 ? 729050177 1273024900 271987362 74 Unknown
Partition 2 does not end on cylinder boundary.
/dev/md2p3 ? 168653938 168653938 0 65 Novell Netware 386
Partition 3 does not end on cylinder boundary.
/dev/md2p4 2692939776 2692991410 25817+ 0 Empty
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

cat /proc/partitions
major minor #blocks name

3 0 312571224 hda
3 1 61440561 hda1
3 2 1534207 hda2
3 3 249593872 hda3
33 0 156290904 hde
33 1 61440561 hde1
33 2 1534207 hde2
33 3 249601905 hde3
34 0 156290904 hdg
3 64 244736 hdb
3 68 244720 hdb4
253 0 312581632 dm-0
253 1 61440561 dm-1
253 2 1534207 dm-2
253 3 249601905 dm-3
9 1 1534080 md1
9 0 249593792 md0
253 4 249592764 dm-4
253 5 2097152 dm-5
253 6 247463936 dm-6
8 0 64000 sda
8 1 63984 sda1
9 2 61440512 md2

As you can see, /dev/hda is an IDE disk, using LDM, dev/sda is a USB stick, /dev/hdb is a ZIP drive and fdisk is totally confused by the dmraid disk set (/dev/hde and /dev/hdg) providing the other side of the mirror for /dev/hda1

Here is the build command for /dev/md2, which uses the other side of the mirror.

mdadm -B -c 64 -l 1 -n 2 /dev/md2 /dev/hda1 /dev/mapper/pdc_ehjbbefi1


Tue Mar 03, 2009 05:00
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: ntfs-3g refuses to mount windows raid rw, size error?
/dev/md2 is 61440512 block which is 122881024 sectors which is indeed less by 96 sectors (122881120-122881024) then the size of NTFS.

Since the NTFS container can never be less than the size of the NTFS hence the error message is the expected one. Either you didn't assemble the /dev/md2 device correctly or you found a bug in the md software.


Tue Mar 03, 2009 17:14
Profile

Joined: Tue Mar 03, 2009 00:18
Posts: 5
Post Re: ntfs-3g refuses to mount windows raid rw, size error?
Quote:
/dev/md2 is 61440512 block which is 122881024 sectors which is indeed less by 96 sectors (122881120-122881024) then the size of NTFS.

Since the NTFS container can never be less than the size of the NTFS hence the error message is the expected one. Either you didn't assemble the /dev/md2 device correctly or you found a bug in the md software.
/dev/md2 is 61440512 block which is 122881024 sectors which is indeed less by 96 sectors (122881120-122881024) then the size of NTFS.

Since the NTFS container can never be less than the size of the NTFS hence the error message is the expected one. Either you didn't assemble the /dev/md2 device correctly or you found a bug in the md software.


Well, I knew that, it was in the original thread for 2007. I suspect that mdadm or dmraid is misrepresenting the size for some reason. Can't imagine where to start to track that down. Thanks anyway. I don't suppose there's an option to turn off the end of filesystem check if I wanted to take my chances?


Tue Mar 03, 2009 19:58
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: ntfs-3g refuses to mount windows raid rw, size error?
drphlox wrote:
I suspect that mdadm or dmraid is misrepresenting the size for some reason. Can't imagine where to start to track that down.

mdadm and dmraid development.
drphlox wrote:
Thanks anyway. I don't suppose there's an option to turn off the end of filesystem check if I wanted to take my chances?

Change the source code but keep in mind you may lose all your data.


Tue Mar 03, 2009 20:13
Profile

Joined: Tue Mar 03, 2009 00:18
Posts: 5
Post Re: ntfs-3g refuses to mount windows raid rw, size error?
Actually I got this fixed courtesy of the mdadm developer. Seems to have been my error in using -c64; I believe I ended up using -c16 and the container size worked.


Mon Jun 15, 2009 20:45
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.