Skip to contentSkip to conversation

GRUB2 cannot mount correct NTFS-partition

DISCUSSION Oleg Strikov 3 participants 4 messages Jul 16, 2008 – Jul 17, 2008

lore
Share & tools
lore
#0 lore raw

Hi!
I get strange problem, using grub2-current (and last releases as well)
- ntfs partition cannot be mounted due to incorrect MFT size. After grub_printf() debug i collect some data:
MFT_SIZE = 1968 (too big!) = cluster_per_mft (246) * spc (8) It looks like incorrect value :( but i get the same result on number of my ntfs partitions.
Partitions can be mounted in linux/windows without any problems.

What data should i collect to fully describe my problem? Thanks!

#1 lore raw
Quoted 1 line · Oleg Strikov

MFT_SIZE = 1968 (too big!) = cluster_per_mft (246) * spc (8)

Was that written by GRUB? I could not find that string, nor parts of it, in the source code. WRT your problem, the closest match I could find is in fs/ntfs.c, around line 819:

if ((data->mft_size > MAX_MFT) || (data->idx_size > MAX_IDX))

    goto fail;

Where MAX_MFT is (1024 >> BLK_SHR) = (1024 >> 9) = 2 (???)

#2 lore raw
In reply to Oleg Strikov
Quoted 11 lines · Oleg Strikov

Hi!
I get strange problem, using grub2-current (and last releases as well)
- ntfs partition cannot be mounted due to incorrect MFT size. After grub_printf() debug i collect some data:
MFT_SIZE = 1968 (too big!) = cluster_per_mft (246) * spc (8) It looks like incorrect value :( but i get the same result on number of my ntfs partitions.
Partitions can be mounted in linux/windows without any problems.

What data should i collect to fully describe my problem? Thanks!

Hi,

cluster_per_mft is a signed number, 246 = -10, so size of mft is actually 2^10 = 1024, which is the default value. Your problem should be caused by something else.

Signature · 1 line
Bean
#3 lore raw
Quoted 10 lines · Bean
Quoted 9 lines · Oleg Strikov

Hi!
I get strange problem, using grub2-current (and last releases as well)
- ntfs partition cannot be mounted due to incorrect MFT size. After grub_printf() debug i collect some data:
MFT_SIZE = 1968 (too big!) = cluster_per_mft (246) * spc (8) It looks like incorrect value :( but i get the same result on number of my ntfs partitions.
Partitions can be mounted in linux/windows without any problems.

Quoted 8 lines
Quoted 2 lines

What data should i collect to fully describe my problem? Thanks!

Hi,

cluster_per_mft is a signed number, 246 = -10, so size of mft is actually 2^10 = 1024, which is the default value. Your problem should be caused by something else.

Hi,

BTW, you can use fstest.exe to dump some useful information about ntfs file system, download it at:

http://grub4dos.sourceforge.net/grub4dos/fstest.exe

Run the following commands:

fstest.exe info C:\
fstest.exe list C:\
fstest.exe inode C:\$MFT

Signature · 1 line
Bean