Linux Mount Solaris x86 UNIX UFS Partitions

Q. How do I mount Solaris 10 / OpenSolaris x86 parition under Linux to access file system?

A. Solaris (and may other UNIX like) operating system use UFS (Unix file system) file system. You can use regular mount command to mount partition. mount command will not recognize the type of ufs automatically. You must specify the type of ufs by mount option:

  • old : Old format of ufs, this is the default, read only. (Don’t forget to give the -r option.)
  • 44bsd : For filesystems created by a BSD-like system like NetBSD,FreeBSD, and OpenBSD
  • sun : For filesystems created by SunOS or Solaris on Sparc.
  • sunx86 : For filesystems created by Solaris on x86.
  • hp : For filesystems created by HP-UX, read-only.
  • nextstep : For filesystems created by NeXTStep (read only).
  • nextstep-cd : For NextStep CDROMs (block_size == 2048),
  • openstep : For filesystems created by OpenStep (currently read only). The same filesystem type is also used by Mac OS X.
WARNING! These examples may requires Linux kernel recompile to support UFS file system. The UFS filesystem support is not enabled by default. You must compile the kernel with support for the UFS file system. (look for CONFIG_UFS_FS=m and CONFIG_UFS_FS_WRITE=y options).

First create, mount directory:
# mkdir /mnt/solaris
Now, use mount command as follows:
# mount -t ufs -o ro,ufstype=sunx86 /dev/sdXY /mnt/solaris
# mount -t ufs -o ro,ufstype=sunx86 /dev/sdb1 /mnt/solaris

This will mount the first partition /dev/sdb1. Read mount command man page for further information:
$ man mount

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • SIFE Dec 20, 2010 @ 22:51

    I am trying from a while to mount FreeBSD partition under CentOS 5.5 64bit but I fail, I get this message every time:

    [root@localhost # mount -t ufs -o ro,ufstype=bsd44 /dev/sda1 /mnt
    mount: unknown filesystem type 'ufs'
    Even I tryed to add UFS support to kernel but it fails to boot.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum