View Single Post
  #9   (View Single Post)  
Old 22nd February 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Mounting these filesystems if defined via MBR is fairly easy. Step 1 - use disklabel(8) to determine what partition letters have been assigned to the partitions. IDE drives are wd0, wd1, wd2... and SCSI/USB/SATA drives are sd0, sd1, sd2... For example:

# disklabel sd2

That will produce a report of the partition letters assigned by OpenBSD (virtually) for the third SCSI/USB/SATA drive. Foreign filesystems with MBR partitions will be assigned letters between "i" and "p". Partition "c" is reserved, and is always the entire drive.

Step 2:

Mount the desired partition. Example:

# mount /dev/sd2i /mnt

That will mount the "i" partition of drive sd2 as /mnt.
Reply With Quote