Mounting a FreeBSD UFS drive in (Ubuntu) Linux

Posted Monday, March 21st 2011 in FreeBSD, Linux - Permalink

Linux has the ability to mount a FreeBSD-style UFS file system. However, due to licensing conflicts, the Linux kernel is not configured to write to the UFS filesystem. The instructions below will mount the filesystem as read-only.

To begin, change to the device directory,

$ cd /dev
$ ls

SATA drives will be listed as sd*. The sd will be followed by a letter designating the physical HDD. The number after that will designate the partition (slice in BSD terms). You can mount it using the following command

$ sudo mount -t ufs -r -o ufstype=ufs2 /dev/sda5 /mnt 

Here, /dev/sda5 is a FreeBSD slice on the first SATA HDD, and we will mount slice 5 to /mnt.

List Posts Newest Posts Page 1Next Page