Solved Old server died. Trying to mount that old working disk in new server...

Hi All,

Trying to mount the old 1TB (but working disk) on new server, and get it
to appear every time on boot up (and be visible in Windows via Samba).

This is what "gpart show da0" shows:
Code:
=>        63  1953525105  da0  MBR  (932G)
          63  1953525105    1  freebsd  [active]  (932g)

Here is what "gpart show da0s1" shows:
Code:
=>         0  1953525105  da0s1  BSD  (932G)
           0     1048576      1  freebsd-ufs  (512M)
     1048576     8185200      2  freebsd-swap  (3.9G)
     9233776     6189056      4  freebsd-ufs  (3.0G)
    15422832     1048576      5  freebsd-ufs  (512M)
    16471408  1937053697      6  freebsd-ufs  (924G)

Have created directory "ExtUSB" under /media:
Code:
/media/ExtUSB

What would you suggest for possible mounting commands?

How would I get this drive to mount automatically on boot-up?

(Don't need Samba instructions -- yet.)

Thanks for any help you can provide.
 
What would you suggest for possible mounting commands?
It's an 'old school' partitioning scheme. So you're going to likely find the old / on da0s1a, /var on da0s1d, /tmp on da0s1e and /usr on da0s1f. If I remember the order correctly.
 
  • Like
Reactions: mer
Thanks.

Pretty sure all my old data is on /usr.

What would command would you suggest for mounting the drive?

Would this work?
Code:
mount  /dev/da0s1 /media/ExtUSB
 
add something like that in /etc/fstab
Code:
/dev/da0s1a    /media/ExtUSB    ufs    rw    1    1
/dev/da0s1d    /media/ExtUSB/var    ufs    rw    1    1
/dev/da0s1e    /media/ExtUSB/tmp    ufs    rw    1    1
/dev/da0s1f    /media/ExtUSB/usr    ufs    rw    1    1
/dev/da0s1b none swap sw 0 0
 
getopt is correct that it is perhaps not a good idea to mount external USB disks by the way of /etc/fstab, since when somebody pulled the power plug of the drive because the power outlet was needed for the vacuum cleaner and/or pulled the USB cable, because it was needed for charging the cell phone, then the server will hang on the next restart. At least, you want to add the flag failok, and perhaps, in case this is meant for recovering old data to a new place, I would also mount that volume as read-only.
Code:
/dev/da0s1f      /media/ExtUSB/usr    ufs    ro,failok    1    1
Also check the output of tunefs -p /dev/da0s1f. If the volume got a label (for example ALABEL), then use that label in fstab:
Code:
/dev/ufs/ALABEL  /media/ExtUSB/usr    ufs    ro,failok    1    1
 
Back
Top