All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB2 cannot mount correct NTFS-partition
@ 2008-07-16 14:07 Oleg Strikov
  2008-07-16 14:43 ` Javier Martín
  2008-07-17  2:00 ` Bean
  0 siblings, 2 replies; 4+ messages in thread
From: Oleg Strikov @ 2008-07-16 14:07 UTC (permalink / raw)
  To: grub-devel

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!



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GRUB2 cannot mount correct NTFS-partition
  2008-07-16 14:07 GRUB2 cannot mount correct NTFS-partition Oleg Strikov
@ 2008-07-16 14:43 ` Javier Martín
  2008-07-17  2:00 ` Bean
  1 sibling, 0 replies; 4+ messages in thread
From: Javier Martín @ 2008-07-16 14:43 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

El mié, 16-07-2008 a las 14:07 +0000, Oleg Strikov escribió:
> 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 (???)

[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GRUB2 cannot mount correct NTFS-partition
  2008-07-16 14:07 GRUB2 cannot mount correct NTFS-partition Oleg Strikov
  2008-07-16 14:43 ` Javier Martín
@ 2008-07-17  2:00 ` Bean
  2008-07-17  2:16   ` Bean
  1 sibling, 1 reply; 4+ messages in thread
From: Bean @ 2008-07-17  2:00 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Jul 16, 2008 at 10:07 PM, Oleg Strikov <oleg.strikov@gmail.com> wrote:
> 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.

-- 
Bean



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GRUB2 cannot mount correct NTFS-partition
  2008-07-17  2:00 ` Bean
@ 2008-07-17  2:16   ` Bean
  0 siblings, 0 replies; 4+ messages in thread
From: Bean @ 2008-07-17  2:16 UTC (permalink / raw)
  To: The development of GRUB 2

On Thu, Jul 17, 2008 at 10:00 AM, Bean <bean123ch@gmail.com> wrote:
> On Wed, Jul 16, 2008 at 10:07 PM, Oleg Strikov <oleg.strikov@gmail.com> wrote:
>> 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.

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

-- 
Bean



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-17  2:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 14:07 GRUB2 cannot mount correct NTFS-partition Oleg Strikov
2008-07-16 14:43 ` Javier Martín
2008-07-17  2:00 ` Bean
2008-07-17  2:16   ` Bean

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.