Subject: Re: Accessing MBR/DOS partitions
To: jon <TYR124840@tyler.net>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 04/22/2002 15:11:36
On Mon, Apr 22, 2002 at 02:15:37AM -0500, jon wrote:
> I have been adding my FAT partition to my NetBSD disklabel so that I could
> access it, by switching between two virtual consoles and copying the sector
> values from "fdisk" output into the disklabel. slow =/
> 
> My friend uses FreeBSD on occasion, and he says there's a device used to
> refer directly to a partition as defined in the MBR, without having to add
> it in the disklabel, like
> 
> /dev/adXsN
> 
> where X is the drive, 0 indexed, and N is the partition, also 0-indexed
> 
> so /dev/ad2s0 would be the first partition of the third drive
> 
> and in Linux it would be
> 
> /dev/hdXnS
> 
> where X refers to drive, n to partition, and S the slice if applicable, such
> as hda1 or hdc1a
> 
> Is there a similar thing in NetBSD? It's the only OS I've ever used which
> doesn't have an apparent method for accessing drives by
> drive/partition/slice; instead, it's just drive/slice

Really ? So you've never used anything else than a PC I guess :)

> 
> Just wondering because sometimes I have 4 partitions for 4 different
> operating systems and it would be nice to be able to access them more easily

mbrlabel should do what you need, but read the man page carefully.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--