View Single Post
  #6   (View Single Post)  
Old 25th February 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

<just in case>
The '#' means that you have to run this command as root, it is not part of the command itself
</just in case>
.
So the command is:
Code:
mount -t ufs -o ro /dev/da0s1 /mnt
Is there an entry for 'da0s1' in "/dev/" ?
Code:
$ ls -l /dev/da*
crw-r-----  1 root  operator    0, 128 Feb 25 02:26 /dev/da0
crw-r-----  1 root  operator    0, 129 Feb 25 02:26 /dev/da0s1
You also could try to leave out the -t ufs part.

I count mount a USB stick with a FAT file system as follows:

Code:
# fdisk da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=487 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=487 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
    start 1072, size 7830480 (3823 Meg), flag 0
        beg: cyl 0/ head 17/ sector 2;
        end: cyl 121/ head 50/ sector 51
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
So here also slice nr 1is being used, and the file system type is FAT 32. I can mount with:
Code:
hercules# mount -t msdosfs -o ro /dev/da0s1 /mnt
hercules# ls -l /mnt
total 1356
-rwxr-xr-x  1 root  wheel  680899 Feb 10  2010 Articles.tgz
-rwxr-xr-x  1 root  wheel    5699 Feb  9  2010 OBSDsnapshot_tracking-1.05.tgz
drwxr-xr-x  1 root  wheel    4096 Dec  4  2009 Snapshots
-rwxr-xr-x  1 root  wheel    3224 Feb 10  2010 snapget
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote