Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 20:22:40 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        Tim McMillen <timcm@umich.edu>, Indrani Datta <drani_00@yahoo.com>
Cc:        questions@freebsd.org
Subject:   Re: accessing the dos directory
Message-ID:  <14968.51312.63699.7647@guru.mired.org>
In-Reply-To: <83356623@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim McMillen <timcm@umich.edu> types:
> On Wednesday January 31, 2001 18:39, Lucas Bergman wrote:
> > > How do I view my dos partition from within BSD? I had it set up to
> > > do this, but I crashed the system, had to reinstall, and now I
> > > can't remember how it was done. I thought maybe I just needed to
> > > set up a dos partition, and I think I did during install, but it
> > > doesn't seem to be doing the trick.
> >
> >   # mount -t msdos /dev/wd0a /mnt
> >
> > Of course, adjust the device name and mount point to taste.  If you
> > want it to be mounted automatically, put an entry in /etc/fstab.
> > The relevant man pages are mount(8), mount_msdos(8), and fstab(5).
> 
> and disklabel(8)  Running 
> # disklabel wd0     should show you what slices you have on the disk.

I think you meant fdisk, not disklabel. fdisk looks at the disk, and
shows you slices. Disklabel looks at slices, and shows you the BSD
partitions in the slice (if you point it at a disk, it'll show you the
partitions for the first slice, and we'll pretend that DD disks don't
exist).

	<mike

> Then you have to name the slice correctly in order to mount it.  You 
> may also want to look at the output of dmesg to see what the name of 
> your hard drive device is.  They changed in 4.x from wd to ad, so an 
> example of how I mount my FAT partition on  a 4.2 machine is:
> tim# mount -t msdos /dev/ad0s1 /mnt
> 	I actually have two Win installations on this HD which FreeBSD doesn't 
> like and I am going to wipe out soon, but I can mount the second one 
> too, with:
> tim# mount -t msdos /dev/ad0s2 /mnt2
> after creating mnt2
> 
> 						Tim
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14968.51312.63699.7647>