[SOLVED] fails: mount -t ufs -o ro,ufstype ufs2 /dev/sdc2 /mnt
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
fails: mount -t ufs -o ro,ufstype ufs2 /dev/sdc2 /mnt
I need to resave some old files originally created under freebsd on a byegone pc, into some fs that is more generic. Right now adding a freebsd install to the laptop I have available would not be practical.
Back in the day when I was using slackware 14.x, this worked.
Code:
mount -t ufs -o ro,ufstype=ufs2 /dev/sdc2 /mnt
but now using slackware 64 15.0 , this error happens instead.
Code:
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc2,
missing codepage or helper program, or other error.
This is the (partial) output of "lsmod"
Code:
Module Size Used by
fuse 159744 1
ufs 94208 0
This is happening on every drive and partition I have tried.
If I am trying to mount ufs partitions in an outdated way, please tell me the correct current way.
Last edited by mw.decavia; 03-31-2024 at 05:43 PM.
Reason: typo
But more importantly, I found the solution after user teckk replied -
It appears the 15.0 version of ufs.ko on my pc, thinks every ufs file needs to be "ufstype=44bsd" regardless of the ufs types I know the partitions are (because I created them myself years ago). When trying to mount a partition I know is ufs2, it still wants me to mount it as "44bsd". And then there is no error.
Yes, though back in Slackware 14.x it was not like this. Perhaps some developer might have a look at the ufs fs module when the next release is being prepared ?
Mount options for ufs
ufstype=value
UFS is a filesystem widely used in different operating systems. The problem are differences among implementations. Features of some implementations are undocumented, so its
hard to recognize the type of ufs automatically. That’s why the user must specify the type of ufs by mount option. Possible values are:
44bsd
For filesystems created by a BSD-like system (NetBSD, FreeBSD, OpenBSD).
ufs2
Used in FreeBSD 5.x supported as read-write.
Perhaps some developer might have a look at the ufs fs module when the next release is being prepared ?
The ufs kernel module is part of the Linux kernel sources. Slackware usually uses upstream Linux kernels without any patches, so "some developer" should if so probably be some upstream Linux kernel developer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.