15 Jul 2012

FreeBSD UFS unter Linux mounten

Wie mounte ich FreeBSD UFS unter Linux? Hier eine Schnellanleitung, das UFS-Dateisystem muss natürlich im Kernel aktiviert sein.


  • dmesg-Output:
 sd 7:0:0:0: Attached scsi generic sg6 type 0
 sd 7:0:0:0: [sdf] 781422768 512-byte logical blocks: (400 GB/372 GiB)
 sd 7:0:0:0: [sdf] Write Protect is off
 sd 7:0:0:0: [sdf] Mode Sense: 28 00 00 00
 sd 7:0:0:0: [sdf] No Caching mode page present
 sd 7:0:0:0: [sdf] Assuming drive cache: write through
 sd 7:0:0:0: [sdf] No Caching mode page present
 sd 7:0:0:0: [sdf] Assuming drive cache: write through
 sdf: sdf1
 sdf1: <bsd: sdf5 sdf6 sdf7 sdf8 sdf9 >
 sd 7:0:0:0: [sdf] No Caching mode page present
 sd 7:0:0:0: [sdf] Assuming drive cache: write through
 sd 7:0:0:0: [sdf] Attached SCSI disk 
  • do the mount
# mount -r -t ufs -o ufstype=ufs2 /dev/sdf7 /mnt/test 
  • check
 $ mount
[...]
 /dev/sdf8 on /mnt/test type ufs (ro,ufstype=ufs2)