|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
How can I mount a UFS hard disk from OpenBSD?
Hi all,
I have a dock with a 4TB hardisk connected on the USB port on my laptop. The hardisk works perfectly on FreeBSD because the format is UFS. How can I mount this harddisk on OpenBSD? I tried "mount /dev/sd1i /mnt" but Code:
lenovo# mount /dev/sd1i /mnt/disc1/ mount_ffs: /dev/sd1i on /mnt/disc1: Invalid argument lenovo# Code:
lenovo# disklabel sd1 # /dev/rsd1c: type: SCSI disk: SCSI disk label: EZRZ-00GXCB0 duid: 0000000000000000 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 486401 total sectors: 7814037168 boundstart: 0 boundend: 7814037168 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 7814037168 0 unused i: 32734 34 unknown j: 7814000640 32768 MSDOS lenovo# |
|
||||
There are 2 things I see here, maybe try:
Code:
# mount /dev/sd1j
__________________
My best friends are parrots |
|
||||
Quote:
Code:
$ pwd $ /home/garry/ $ mkdir usb $ Code:
$ su $ password --- # pwd # /home/garry # mount /dev/sd1j usb # exit $ cd usb $ ls (to see what I have )
__________________
My best friends are parrots |
|
||||
Ah, I missed the second sentence:OpenBSD and FreeBSD disklabels have the same BSD roots, but they are not compatible. You would have to manually create on on-disk OpenBSD disklabel, add the partition manually, and then attempt to mount it. It is not clear to me that you would be able to mount it, since both OpenBSD and FreeBSD created different FFS/UFS extensions to manage partitions larger than 2TB.
|
|
||||
As jggimi says the FreeBSD and OpenBSD UFS implementation are not compatible.
I convert my desktop workstation to OpenBSD after 20 years of using FreeBSD so I had to figure out what to do with large data drives. Best I could come up with so far is to maintain a FreeBSD server and mount these drives via NFS from my OpenBSD machine.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
|||
FreeBSD calls the traditional 4 MBR partitions "slices". In FreeBSD each MBR partition or slice has a
private disklabel, while in OpenBSD there is only one disklabel for the whole disk, i.e. all 4 MBR partitions. This means that with the unmodified OpenBSD disklabel, you only will be able to mount the FreeBSD "a" or root partition/filesystem. I can mount a FreeBSD partition from OpenBSD: Code:
obsd# disklabel wd0 # /dev/rwd0c: type: ESDI disk: ESDI/IDE disk label: WDC WD3200AAKS-0 duid: e9298df9f130b613 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 38913 total sectors: 625142448 boundstart: 20971944 boundend: 104857704 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 4194296 20971944 4.2BSD 2048 16384 12958 # / b: 524288 25166240 swap # none c: 625142448 0 unused d: 6291456 25690528 4.2BSD 2048 16384 12958 # /usr e: 4194304 31981984 4.2BSD 2048 16384 12958 # /home i: 20971440 504 unknown j: 520284744 104857704 unknown To mount it: Code:
obsd# mount -o ro /dev/wd0i /mnt obsd# ls -l /mnt total 65776 -rw-r--r-- 2 root wheel 951 Dec 7 2018 .cshrc -rw-r--r-- 2 root wheel 470 Dec 7 2018 .profile drwxrwxr-x 2 root operator 512 May 19 08:05 .snap -r-------- 1 root wheel 33554432 May 19 08:05 .sujournal -r--r--r-- 1 root wheel 6177 Dec 7 2018 COPYRIGHT drwxr-xr-x 2 root wheel 1024 May 20 20:44 bin drwxr-xr-x 10 root wheel 1536 Jun 20 17:24 boot drwxr-xr-x 2 root wheel 512 May 19 08:05 dev -rw------- 1 root wheel 4096 Jun 20 17:24 entropy drwxr-xr-x 25 root wheel 2560 Jun 12 02:19 etc lrwxr-xr-x 1 root wheel 8 May 19 08:11 home -> usr/home drwxr-xr-x 4 root wheel 1536 May 20 20:44 lib drwxr-xr-x 3 root wheel 512 Dec 7 2018 libexec drwxr-xr-x 2 root wheel 512 Dec 7 2018 media drwxr-xr-x 2 root wheel 512 Dec 7 2018 mnt drwxr-xr-x 2 root wheel 512 Dec 7 2018 net dr-xr-xr-x 2 root wheel 512 Dec 7 2018 proc drwxr-xr-x 2 root wheel 2560 Dec 7 2018 rescue drwxr-xr-x 2 root wheel 512 Jun 12 02:19 root drwxr-xr-x 2 root wheel 2560 Dec 7 2018 sbin lrwxr-xr-x 1 root wheel 11 Dec 7 2018 sys -> usr/src/sys drwxrwxrwt 19 root wheel 1024 Jun 20 17:24 tmp drwxr-xr-x 15 root wheel 512 May 19 08:11 usr drwxr-xr-x 25 root wheel 512 Jun 20 16:26 var
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Exact same workflow for me.
I also added 2 doas rules that allow my user to use mount/umount for simple case, covers 99% of usage: Code:
permit nopass funkygoby as root cmd mount args /dev/sd1i mnt/ permit nopass funkygoby as root cmd umount args mnt/ |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to porting Openbsd 2.7 to support 128GB hard disk? | terrance | OpenBSD General | 3 | 22nd March 2012 03:11 AM |
Unable to mount second hard drive | Roric | OpenBSD General | 3 | 15th February 2011 05:02 AM |
Hard disk reliability | ephemera | General Hardware | 32 | 20th April 2010 10:17 AM |
Hard disk utilization | Greg_Morgan | General software and network | 3 | 16th October 2009 12:13 PM |
how to mount external hard disk ? | bsdnewbie999 | FreeBSD General | 6 | 27th May 2008 02:37 AM |