LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   mount external usb hdd on FreeBSD (https://www.linuxquestions.org/questions/%2Absd-17/mount-external-usb-hdd-on-freebsd-4175676750/)

00x 06-09-2020 01:08 AM

mount external usb hdd on FreeBSD
 
This hard drive works completely fine on Ubuntu.

Here is what happens when I try to mount it on FreeBSD:

Code:

# dmesg
...
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <Seagate Expansion 0710> Fixed Direct Access SPC-4 SCSI device
da0: Serial Number NAARJKXT
da0: 40.000MB/s transfers
da0: 1907729MB (3907029167 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>

Code:

root@generic:/dev # ls -la | grep da
crw-r-----  1 root  operator  0x66 Nov 21 00:53 da0
crw-r-----  1 root  operator  0x7e Nov 21 00:57 da0s1

Code:

# gpart show da0
=>        63  3907029104  da0  MBR  (1.8T)
          63          1      - free -  (512B)
          64  3907024065    1  ntfs  [active]  (1.8T)
  3907024129        5038      - free -  (2.5M)

but:
Code:

root@generic:/dev # mount /dev/da0 /mnt
mount: /dev/da0: No such file or directory


When I tried plugging it into my NetBSD computer I got a different error:
Code:

# dmesg
...
[ 1301438.693912] sd0 at scsibus0 target 0 lun 0: <Seagate, Expansion, 0710> disk fixed
[ 1301440.493992] sd0(umass0:0:0:0): not ready, data = 00 00 00 00 04 01 00 00 00 00
[ 1301440.504146] sd0: drive offline
[ 1301440.543994] sd0: fabricating a geometry

Code:

# mount /dev/sd0 /mnt
mount_ffs: /dev/sd0 on /mnt: incorrect super block


fatmac 06-09-2020 04:57 AM

You may need to specify the file system type as NTFS, & you probably need to mount a slice/partition, not the whole disk, try da0s1, (or perhaps da0p1).

(You may need ntfs-3g to get read/write access.)

00x 06-10-2020 06:26 AM

Since inside /dev there is both da0 and da0s1, I tried every mount_<var> option (ie. `mount_nfs, mount_cd9660' etc) for both da0 and da0s1, but nothing. (Even `mount -t ntfs/nfs/cd9660 etc' and still nothing.

`gpart show da0s1' wont show anything. I'm not sure what da0s1 even is. The kernal/dmesg says da0 is the Seagate HDD though, there is no problem detecting the HDD it seems.

I shouldn't need to reformat this HDD at all, it works 100% fine on Ubuntu, auto detects and mounts, I can copy and modify files to and from it etc.

I just don't understand what the problem could be.

By the way I am running FreeBSD 12.1 on ARM64 (Raspberry Pi 3 b+) if that is at all relevant. The USB keyboard that is also plugged in has no problems.

I will try mounting a small 16gb USB and see what happens, but apart from that I'm all out if ideas.

fatmac 06-10-2020 09:18 AM

I don't use FreeBSD, but do use OpenBSD on occasion, this is the syntax that I use, as the root operator.

Code:

mount -t ntfs /dev/da0s1 /mnt
(/dev/da0s1 is the first slice/partition on that disk)

((Running FreeBSD on arm64 has no relevance to your problem.))

Check that you actually have an NTFS file handler in (probably) /usr/sbin

P.S. The permmisions might be another clue...
Quote:

root@generic:/dev # ls -la | grep da
crw-r----- 1 root operator 0x66 Nov 21 00:53 da0
crw-r----- 1 root operator 0x7e Nov 21 00:57 da0s1
Not sure why NetBSD has it as offline(?).

BW-userx 06-10-2020 09:32 AM

https://www.freebsd.org/doc/handbook/usb-disks.html

You might want to look up auto mount for bsd as well. I'd be more detailed if I wasn't on my phone


All times are GMT -5. The time now is 03:15 AM.