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

Carl Benedict cbenedic at pittsburghtechs.com
Tue Dec 14 13:28:04 EST 2004


On Mon, 2004-12-13 at 11:30, Brandon Kuczenski wrote:
> 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?

In case you can't get a Knoppix CD or it doesn't support NTFS for some
odd reason, I've used this in the past to access NTFS drives:

http://home.eunet.no/~pnordahl/ntpasswd/

I'm not sure if this meets all of your requirements, but it's a handy
utility and also a small download.  Since this disc is meant to help you
reset NT/2000 passwords, the init script will prompt you for some
options first before you get a shell.  Note that the last version I used
only had NTFS read built into the kernel, but NOT write.  It was
probably still experimental at the time.  

HTH
> 
> -Brandon
> 
> _______________________________________________
> wplug-bsd mailing list
> wplug-bsd at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug-bsd
-- 
Carl Benedict
Pittsburgh Techs
Main:  724-741-0233
http://www.pittsburghtechs.com
cbenedic at pittsburghtechs.com



More information about the wplug-bsd mailing list