Solved mount USB hardrive

Hello,
It's a simple question but I have not taken note, it's just how to mount a hard drive into NTFS files connected to USB from a FreeBSD 10.3 Workstation?

Regards
Philippe
PS: I lost the procedure
 
I see the NTFS volume but I have the following error message :
Cannot to mount volume
details
mount: illegal option --m usage: mount [-t fstype][-o options] target_fs mount_point
 
philo_neo , you should use ntfs-3g instead of mount.
If you want to add the corresponding line to /etc/fstab, use this (with your device name):
Code:
/dev/da0s1   /mnt/usb   ntfs   mountprog=/usr/local/bin/ntfs-3g,noauto,late,rw       0   0
 
hi,
I followed your advice but my disk disappeared from the file manager.
Code:
/dev/da0s1   /mnt/usb   ntfs   mountprog=/usr/local/bin/ntfs-3g,noauto,late,rw       0   0

I created the directory "usb" in / mnt, I hard disk / mnt / usb is not accessible, with my device name / dev / da0s1...

i'm not sure of the name of the usb hard drive !

here, a little copy of dmesg
Code:
Root mount waiting for: usbus7 usbus3
Root mount waiting for: usbus7 usbus3
uhub3: 6 ports with 6 removable, self powered
uhub7: 6 ports with 6 removable, self powered
Root mount waiting for: usbus7 usbus3
usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER
Root mount waiting for: usbus7
ugen7.2: <JMicron USB to ATAATAPI Bridge> at usbus7
umass0: <MSC Bulk-Only Transfer> on usbus7
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:9:0:-1: Attached to scbus9
Trying to mount root from ufs:/dev/ada0s3a [rw]...
da0 at umass-sim0 bus 0 scbus9 target 0 lun 0
da0: <Hitachi HCS545050GLA380 > Fixed Direct Access SCSI-2 device
da0: Serial Number F54401AFFFFF
da0: 40.000MB/s transfers
da0: 476940MB (976773168 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
ugen0.2: <DaKai 2.4G RX> at usbus0
ukbd0: <DaKai 2.4G RX, class 0/0, rev 1.10/3.11, addr 2> on usbus0
kbd2 at ukbd0
ugen0.3: <vendor 0x1ea7 2.4G Mouse> at usbus0
bge0: link state changed to DOWN
bge0: link state changed to UP
ums0: <DaKai 2.4G RX, class 0/0, rev 1.10/3.11, addr 2> on usbus0
ums0: 5 buttons and [XYZ] coordinates ID=1
ums1: <vendor 0x1ea7 2.4G Mouse, class 0/0, rev 1.10/2.00, addr 3> on usbus0
ums1: 8 buttons and [XYZT] coordinates ID=2
info: [drm] Initialized drm 1.1.0 20060810
drmn0: <Caicos [Radeon HD 6450]> on vgapci0
info: [drm] RADEON_IS_PCIE

If you can tell me if I put the right hard drive because in total I have three hard disks on this workstation ?

Regards
Philippe
 
....
da0: 476940MB (976773168 512 byte sectors)
....
As you can see, /dev/da0 is your 500GB hard drive.
Now, list all /dev/da0xxx devices which correspond to partitions, for example:
Code:
$ ls -l /dev/da0*
crw-r-----  1 root  operator   0x78 May 20 08:56 /dev/da0
crw-r-----  1 root  operator   0x79 May 20 08:56 /dev/da0s1
crw-r-----  1 root  operator   0x7a May 20 08:56 /dev/da0s2
You may see da0p1 instead of da0s1.
However, if you don't see any, your hard disk may be formatted without partitions (which is very unlikely), we will need mount it like this
Code:
# ntfs-3g /dev/da0 /mnt/usb
 
Code:
root@dct-opiom:/usr/home/phipo # ls /dev/da0*
/dev/da0   /dev/da0s1
root@dct-opiom:/usr/home/phipo #
 
Okay, so what you get when you run this command?
Code:
# ntfs-3g /dev/da0s1 /mnt/usb
You said "same message", but I don't see any message you reported...
(Keep in mind that # means you should be root to run it)
 
Code:
root@dct-opiom:/usr/home/phipo # ntfs-3g /dev/da0s1 /mnt/usb
fuse: failed to open fuse device: No such file or directory
root@dct-opiom:/usr/home/phipo #
 
That's easy: add to your /boot/loader.conf:
Code:
fuse_load="YES"
and to your/etc/fstab:
Code:
/dev/da0s1   /mnt/usb   ntfs   mountprog=/usr/local/bin/ntfs-3g,noauto,late,rw       0   0
 
What do you mean?
If you want your HDD to be mounted automatically when you boot your system with the HDD plugged in, just remove noauto option, see mount(8).
If you want to automount it upon insertion, you should read the handbook first (then you may want searching forums/maillists for "automount").

By the way, mount /mnt/usb should be enough if you have your /etc/fstab entry.
 
Every time I reboot my workstation, the content I inserted,
for example directories containing programs disappear with each reboot
 
Back
Top