[wplug-bsd] NetBSD: mounting a Windows XP disk

Brandon Kuczenski brandon at 301south.net
Mon Dec 13 11:30:06 EST 2004


On Mon, 13 Dec 2004, Tom Rhodes wrote:

> On Sat, 11 Dec 2004 17:44:57 -0500 (EST)
> Brandon Kuczenski <brandon at 301south.net> wrote:
>
>> I am trying to use a NetBSD live-filesystem CD-ROM to recover files from a
>> dying HDD belonging to a friend, which runs Windows XP.  The disk lives
>> inside an IBM T30 laptop.
>
> Gotta love IBM.  :)
>

...

>>   d: 78140160        0     unused        0     0         # (Cyl.    0 - 77519)
>>   e: 75327777       63       NTFS                        # (Cyl.    0*- 74729)
>>   f:  2812320 75327840     unused        0     0         # (Cyl. 74730 - 77519)
>>
>> Incidentally, how would the kernel divine this information if it couldn't
>> read the disklabel?
>
> The kernel, if I'm not mistaken, would create a false label
> based on hardware.
>
> Have you tried to mount any of the parts with random / likely
> file system drivers?
>

Well, I was advised that really I want to mount wd0e based on the 
partition table.  I tried that and got even more unpleasant errors:

in syslog:

Dec 11 09:16:58  /netbsd: wd0: no disk label
Dec 11 09:16:58  /netbsd: ntfs_readntvattr_plain: POSSIBLE RUN ERROR
Dec 11 09:16:58  /netbsd: ntfs_readattr_plain: ntfs_readntvattr_plain
failed: o: 0, s: 1177000
Dec 11 09:16:58  /netbsd: ntfs_readattr_plain: attrib: 0 - 287

... and on the console:
mount_ntfs: /dev/wd0e on /tmp/home: Argument list too long


>>
>> I infer that wd0d is where the data lives, and it is split into 8
>> subpartitions (sort of like FreeBSD's slices/partitions thing).  Do I need
>> a /dev/wd0de device?
>
>
> You shouldn't.  You know, there is a device out there which permits
> the connection of a laptop hard disk drive to a standard PC.  This
> way you wouldn't need live file system CDs.  :)
>

Yeah.  I was hoping this way could work so that I could just get the 
[warranty] replacement hard drive from Big Blue and be done with it.


>>
>> If I try to mount -t ntfs /dev/wd0d /tmp/home I get the error "Invalid
>> Argument".
>
> DANGER!  DANGER!  WILL ROBINSON: NTFS SUPPORT IN *BSD IS VERY
> LACKING AND YOU MAY BE BETTER OFF USING LINUX/WINDOWS FOR THIS
> TYPE OF THING.
>

Hmm.

Anyone got a Knoppix CD?

-Brandon



More information about the wplug-bsd mailing list