Mounting a drive

Code:
[root@jakeserver ~]# fdisk /dev/amrd0s3
******* Working on device /dev/amrd0s3 *******
parameters extracted from in-core disklabel are:
cylinders2840 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders2840 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 partitions 1 is:
sysid 7 (0x07), (OS/2 HPFS, NTFS, QNX=2 (16-bit) or Advanced UNIX)
    start 63, size 45624537 (22277 Meg), flag 0
        beg: cyl 1023/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

that is fdisk /dev/amrd0s3 if anyone needs to know,
amrd0s3 is the drive I've needed to mount.
 
Don't run fdisk on slices, just run it on the disk device: # fdisk /dev/amrd0

That will show all the slices (s1, s2, s3, etc).

However, looking at that blurb, it's most likely NTFS.

You can try the native NTFS support, which would allow you to mount it read-only: # mount -t ntfs -r /dev/amrd0s3 /mnt

Then you an use # ls /mnt to see if it mounted correctly, and has the data that you want.

If you want the mount to stay across reboots, then create a directory to use as the (permanent) mountpoint (/home/whatever, for example) and then add a line to /etc/fstab similar to
Code:
/dev/amrd0s3   /home/whatever   ntfs   ro   0   0
You can test that the line in fstab works using:
# mount /home/whatever
and
# umount /home/whatever

See the fstab(5), mount(8) and mount_ntfs(8) man pages for all the gory details.
 
Don't run fdisk on slices, just run it on the disk device. So # fdisk /dev/amrd0 That will show all the slices.

However, looking at that blurb, it's most likely NTFS.

You can try the native NTFS support, which would allow you to mount it read-only: # mount -t ntfs -r /dev/amrd0s3 /mnt The you an use ls to see if it mounted correctly, and has the data that you want.

If you want the mount to stay across reboots, then create a directory to use as the mountpoint (/home/whatever, for example) and then add a line to /etc/fstab similar to
Code:
/dev/amrd0s3   /home/whatever   ntfs   ro   0   0
You can test that the line in fstab works using # mount /home/whatever and # umount /home/whatever

See the fstab(5), mount() and mount_ntfs() man pages for all the gory details.
 
phoenix said:
# mount -t ntfs -r /dev/amrd0s3 /mnt The you an use ls to see if it mounted correctly, and has the data that you want.


Code:
[root@jakeserver ~]$ mount -t ntfs -r /dev/amrd0s3 /mnt

WORKED! Thank you so much phoenix! You were a HUGE help!
 
xsiick said:
I am still having an issue however. I am unsure what fs the drive is, and I am also unsure how to determine what fs it is.
fdisk(8) should be able to tell you that.

If it is ntfs, and I need to install the package, then i would need to connect to the internet which I haven't figured out yet.
You only need the ntfs-3g package/port if you want write access to an ntfs filesystem. Read-only ntfs is supported natively.
 
to read write

fusefs-ntfs port to free bsd
http://www.freshports.org/sysutils/fusefs-ntfs

first have to load the Fuse driver. You can load it manually:


Code:
%su -
#kldload /usr/local/modules/fuse.ko

Or automatically at system bootup: With root privilege, open /etc/rc.conf and add the following line:

Code:
fusefs_enable="YES"

If you don't have a mount point yet for your NTFS partition, create one, ie:

Code:
#mkdir -p /mnt/ntfsc

Then with the driver loaded, you just have to mount your NTFS partition. Assuming your partition is /dev/ad0s1, that would be:

Code:
#ntfs-3g /dev/ad0s1 /mnt/ntfsc

Then open your file browser, go to your mount point, you have read and write access to your files :)
 
Back
Top