LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-09-2020, 01:08 AM   #1
00x
LQ Newbie
 
Registered: Aug 2018
Distribution: OpenBSD
Posts: 16

Rep: Reputation: 0
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

Last edited by 00x; 06-09-2020 at 01:59 AM.
 
Old 06-09-2020, 04:57 AM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,630

Rep: Reputation: Disabled
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.)
 
Old 06-10-2020, 06:26 AM   #3
00x
LQ Newbie
 
Registered: Aug 2018
Distribution: OpenBSD
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 06-10-2020, 09:18 AM   #4
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,630

Rep: Reputation: Disabled
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(?).

Last edited by fatmac; 06-10-2020 at 09:22 AM.
 
Old 06-10-2020, 09:32 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,951

Rep: Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Time taken to copy data from PC to External USB HDD and External USB HDD to PC will same? jegadezz Linux - Newbie 3 11-14-2017 09:22 AM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
Slow USB transfer rates (60kb p/s) External HDD --> Internal HDD drfrostbyte Linux - Hardware 4 03-28-2011 01:20 AM
new hdd, old mount needs to point to new hdd mount. phorning Linux - Newbie 3 06-14-2010 05:44 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration