FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sat May 15, 2021 03:42



Post new topic Reply to topic  [ 14 posts ] 
ntfs-3g problem 
Author Message

Joined: Wed May 19, 2010 00:37
Posts: 6
Post ntfs-3g problem
My Version is
ntfs-3g 2010.5.16 integrated FUSE 27 - Third Generation NTFS Driver

And the problem is

I have an Firmware image.. thats boot via grub4dos an kernel..

Last day i compiled a new kernel an put them via ntfs-3g in the firmware.. and now
grub has an error 16 or an error 13..
with an older version of ntfs-3g it works fine.. but i doesn`t find there anymore..

this failur is repucable..
when i put some thin in this firmware.. i become the error too..

Greatings from Bavaria :-)


Wed May 19, 2010 00:43
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g problem
Hi,

Quote:
and now grub has an error 16 or an error 13..

What do these errors mean ?
Have you upgraded grub while updating the kernel ?
Have you checked the md5 of the kernel image in the firmware ?

Regards

Jean-Pierre


Wed May 19, 2010 08:15
Profile

Joined: Wed May 19, 2010 00:37
Posts: 6
Post Re: ntfs-3g problem
13 : "Inconsistent filesystem structure"

This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.


This is the error 13


Thu May 20, 2010 05:10
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g problem
Hi,

Quote:
13 : "Inconsistent filesystem structure"

This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects

I understand you have created a grub-bootable system image on ntfs, then uploaded to your device, and the device cannot boot. Is this correct ? If not, please explain again where ntfs-3g sits in the process.

How did you check the file system image before uploading (mounting as loop, etc) ?

How did you check the uploaded image is identical to the original image ?

Regards

Jean-Pierre


Thu May 20, 2010 09:07
Profile

Joined: Wed May 19, 2010 00:37
Posts: 6
Post Re: ntfs-3g problem
I have an Windows NT Firmware..

In The Firmware package insert grub4dos hwo boots the kernel..

http://img188.imageshack.us/i/firmware.png/

I mount the firmware image with this options

mount -t ntfs-3g -o loop,offset=beginn of the filesystem firmware.bin /mount-point..
and put some things in the image.. after writhe in this file.. I become the grub 13 error..

The content of the Filesystem..
1menu.lst boot.ini bzImage grldr menu.lst ntdetect.com ntldr tinycore.gz

In the past, with an older Version of ntfs-3g it worked fine.. But with this new Version i become often an error,
when i edit with vi the menu.list.. vi has an error to..


Thu May 20, 2010 11:28
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g problem
Hi,

Quote:
mount -t ntfs-3g -o loop,offset=beginn of the filesystem firmware.bin /mount-point..
and put some things in the image.. after writhe in this file.. I become the grub 13 error..

So you are building a multi-partition image containing an ntfs partition.

Can you check the partition table (fdisk -l firmware.bin) ?

Can you extract the ntfs file system (dd bs=1 ibs=1 skip=beginn if=firmware.bin of=<some-file>) and check it on Windows by chkdsk (or put it on some server where I can check it) ?

Quote:
when i edit with vi the menu.list.. vi has an error to..


Do you mean the menu.lst used by grub or the menu.lst in your ntfs file system ?

Regards

Jean-Pierre


Thu May 20, 2010 12:38
Profile

Joined: Wed May 19, 2010 00:37
Posts: 6
Post Re: ntfs-3g problem
http://rapidshare.com/files/389593324/images.tar.html

Here you can download it when you like.. The archive contains the working image an the image who doesnt
work

Thanks for you help


Thu May 20, 2010 17:01
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g problem
Hi,

Quote:
Here you can download it when you like

Ok, thanks, done.

These are your files :

total 11719
-rwxrwxrwx 1 root root 259 2009-10-12 04:31 1menu.lst
-rwxrwxrwx 1 root root 90 2009-10-02 01:14 boot.ini
-rwxrwxrwx 1 root root 1813648 2010-05-20 15:59 bzImage
-rwxrwxrwx 1 root root 194461 2009-10-02 01:02 grldr
-rwxrwxrwx 1 root root 224 2009-10-12 04:32 menu.lst
-rwxrwxrwx 1 root root 26816 1998-11-12 05:56 ntdetect.com
-rwxrwxrwx 1 root root 156496 2001-01-29 19:12 ntldr
-rwxrwxrwx 1 root root 9817435 2010-05-20 15:59 tinycore.gz

This is the chkdsk report :

CHKDSK is verifying files (stage 1 of 3)...
1908 file records processed.
File verification completed.
0 large file records processed.
0 bad file records processed.
0 EA records processed.
0 reparse records processed.
CHKDSK is verifying indexes (stage 2 of 3)...
1910 index entries processed.
Index verification completed.
0 unindexed files processed.
CHKDSK is verifying security descriptors (stage 3 of 3)...
1908 security descriptors processed.
Security descriptor verification completed.
1 data files processed.
Windows has checked the file system and found no problems.

46591 KB total disk space.
11717 KB in 8 files.
4 KB in 1 indexes.
0 KB in bad sectors.
4155 KB in use by the system.
2048 KB occupied by the log file.
30714 KB available on disk.

512 bytes in each allocation unit.
93183 total allocation units on disk.
61429 allocation units available on disk.

This is the menu1.lst contents (this is a Windows-formatted file, with lines ending in \r\n)

color black/cyan yellow/cyan
timeout 0
default /default

title tiny
root (0x80,0)
kernel /bzImage root=/dev/hda1 ramdisk_size=32000 video=gx1fb:mode:1024x768-16@75 vga=785 pnpbios=off nomce quiet
initrd /tinycore.gz

You menu.lst file has roughly the same contents

So I find no ntfs-3g related error whatsoever, and chkdsk is very efficient in this regard.

I am however surprised to find a grub menu.lst formatted for Windows on an NTFS partition.

Regards

Jean-Pierre


Thu May 20, 2010 18:43
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g problem
Hi again,

I have found something strange in your images : the root directory for both images is marked for compression.

This has the consequence that the file tinycore.gz which you have rewritten with a recent version of ntfs-3g is itself compressed (I mean compressed twice, first by gzip, then by ntfs, saving a few more sectors). This is not a bug, rather this is a standard feature which was not implemented in older versions.

You will have no problem reading the file with ntfs-3g (even with old versions). How is this file read (grub obviously cannot read ntfs anyway) ?

If you want to remove the compression flag, use the following commands :
Code:
# mount on disk
[linux@p]$ sudo /bin/mount image-doesnt-work disk
# check compression flag on root directory
[linux@p]$ getfattr -e hex -n system.ntfs_attrib disk
# file: disk
system.ntfs_attrib=0x16080000
# remove compression flags
[linux@p]$ setfattr -v 0x16000000 -n system.ntfs_attrib disk
# check no more compression flag
[linux@p]$ getfattr -e hex -n system.ntfs_attrib disk
# file: disk
system.ntfs_attrib=0x16000000


You will have to delete the tinycore.gz file and copy it again from an external file.
This is the only compressed file on your ntfs partition.

Note : I checked the md5 of all your files, and they are the same in both images.

Regards

Jean-Pierre


Thu May 20, 2010 20:04
Profile

Joined: Wed May 19, 2010 00:37
Posts: 6
Post Re: ntfs-3g problem
tinycore.gz is in the two image the same .. But in the image who doesn`t work.. I have from the worked image tinycore.gz copyed
and puted in to the image whoe doesn`t work..

I think the compression .. makes the thing difficult for me..

Thank you very much for all

How can i disable compresion?


Thu May 20, 2010 21:56
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g problem
Hi again,

Quote:
How can i disable compresion?


You just have to type the commands I indicated.
Restricting to what is really needed :

Code:
mount -t ntfs-3g -o loop,offset=beginn of the filesystem firmware.bin /mount-point
setfattr -v 0x16000000 -n system.ntfs_attrib /mount-point


Regards

Jean-Pierre


Thu May 20, 2010 22:46
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g problem
Hi,


Quote:
Quote:
How can i disable compresion?

You just have to type the commands I indicated.

If you have any difficulties, you can just download the fixed image :
Code:
wget http://pagesperso-orange.fr/b.andre/image-now-works.gz

You will have to insert tinycore.gz and bzimage again (if the size is not 697134 bytes download again).

Regards

Jean-Pierre


Fri May 21, 2010 08:28
Profile

Joined: Wed May 19, 2010 00:37
Posts: 6
Post Re: ntfs-3g problem
thanks for you help..

Greatings from bavaria


Fri May 28, 2010 19:57
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g problem
Hi,

Quote:
Greatings from bavaria

Thanks. I will be in Oberpfalz next month.

Jean-Pierre


Fri May 28, 2010 20:46
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


Who is online

Users browsing this forum: No registered users and 2 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.