mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anton Altaparmakov <aia21@cam.ac.uk>
To: "Marcin Gibuła" <mg@iceni.pl>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Windows Logical Disk Manager error
Date: Mon, 27 Sep 2004 13:23:53 +0100	[thread overview]
Message-ID: <1096287833.8148.53.camel@imp.csi.cam.ac.uk> (raw)
In-Reply-To: <200409231254.12287@senat>

On Thu, 2004-09-23 at 11:54, Marcin Gibuła wrote:
> Hi, 
> while using a disc partitioned with ldm the following error occures:
> 
> sda:<6>ldm_validate_vmdb(): VMDB and TOCBLOCK don't agree on the database 
> size.
> [LDM] sda1 sda2 sda3 sda4
> 
> One partition is then unaccessible (though it works in windows). Kernel 
> version is 2.6.8.1, but the problem also seems to appear in earlier versions.

Ok, I have now had the time to look at the ldm database you sent me. 
The problem is very simple.  You are using spanned volumes which are not
supported by the Linux LDM driver.  You need to use the software raid
(MD) driver in Linux to assemble the LDM partition devices (shown above)
into the correct MD devices and then mount the created md device(s). 
See linux-2.6/Documentation/filesystems/ntfs.txt for detailed
description of what you need to do.

The details you may want to know are that you have 4 volumes, three with
NTFS and one with FAT16:

Volume1: NTFS: Letter C in Windows: Size 10GiB
Volume2: NTFS: Letter D in Windows: Size 46GiB
Volume3: FAT16: Letter in Windows unknown: Size 28GiB
Volume6: NTFS: Letter in Windows unknown: Size 109GiB

Volume1 is a simple one partition volume which is the first LDM
partition on your other harddisk (i.e. the one you did not send me the
ldm dump from).  You can just mount that with the NTFS driver.

Volume2 is a two partition concatenated volume made up of partitions
sda1 (26GiB) and sda3 (20GiB) (in this order) on the disk you sent me
the ldm dump from.  This is why you get the errors when you try to mount
sda1.  It tries to access data that is outside sda1, i.e. in sda3, but
sda1 ends at the end of sda1 (obviously) so the data is not readable. 
You need to assemble sda1 and sda3 using the instructions in the ntfs
documentation (see above) and then mount the created MD device with the
ntfs driver.

Volume3 is a simple one partition volume which is the second LDM
partition on your other harddisk.  You can just mount that with the vfat
driver.

Volume6 is a two partition concatenated volume mad up of partitions sda4
(109GiB) and sda2 (32kiB!) (in this order!) on the disk you sent me the
ldm dump from.  You should assemble this as described for Volume2 and
then mount the created MD device with the ntfs driver.

btw. You can obtain all the above information yourself in the future by
running:
	linux-ldm-0.0.8/test/ldminfo --dump /dev/sda
And then putting the displayed info together.

Let me know how it goes.  Both success and failures are interesting to
me as I do not remember anyone actually having had spanned ldm volumes
before so it would be nice to know it all works...

Best regards,

	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/, http://www-stu.christs.cam.ac.uk/~aia21/


  parent reply	other threads:[~2004-09-27 12:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23 10:54 Marcin Gibuła
2004-09-23 11:20 ` Anton Altaparmakov
2004-09-23 21:44   ` Marcin Gibuła
2004-09-27 12:23 ` Anton Altaparmakov [this message]
2004-09-30 23:49   ` Marcin Gibuła
2004-10-01  8:36     ` Anton Altaparmakov
2004-10-01 14:26       ` Marcin Gibuła
2004-10-01 14:43         ` Anton Altaparmakov
2004-10-01 23:43           ` Anton Altaparmakov
2004-10-02  9:14             ` Marcin Gibuła
2004-10-02 13:35               ` Anton Altaparmakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1096287833.8148.53.camel@imp.csi.cam.ac.uk \
    --to=aia21@cam.ac.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mg@iceni.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®