Mount UFS partitions (not slices) from linux /etc/fstab
*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
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.
One thought I have:
in the kernel-config there are options that look like what you would need to do what you describe:
in: --> File systems --> Miscellaneous filesystems --> there is read only support for UFS
and in: --> Partition Types --> Advanced partition selection --> there is BSD disklabel (FreeBSD partition tables) support
and some other choices...
If these things are compiled into the kernel you might be able to do what you want...?
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by jomen
...there is BSD disklabel (FreeBSD partition tables) support and some other choices...
If these things are compiled into the kernel you might be able to do what you want...?
Yes, but how? I mean, what option would I use in /etc/fstab? "man" doesn't tell...
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Solved
Solution:
Code:
cat /proc/partitions
shows major and minor numbers, #blocks and name. All these partitions can be mounted, typing a "/dev/" in front of the name and the usual mount options.
Code:
fdisk -l ==>{doesn't list the BSD Partitions}
In my case the partitions hidden from fdisk were something like /dev/hda17 up to /dev/hda22. My "old" partitions had the maximum number of /dev/hda16. Obviously the BSD partitions were appended to the usual partitions like from a second logical partition.
So I am curious what will happen, when I create a new partition with fdisk -- I don't think anything untoward will happen, maybe I have to change /etc/fstab and give the BSD-partitions new numbers, physically they reside in /dev/hda3 and thus should be protected...
Anyhow, this then seems to be the way how to proceed .
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by JZL240I-U
...So I am curious what will happen, when I create a new partition with fdisk -- I don't think anything untoward will happen, maybe I have to change /etc/fstab and give the BSD-partitions new numbers, physically they reside in /dev/hda3 and thus should be protected...
I tried it. I got my new partition allright and nothing was deleted, but all the numbers of the BSD-slices were incremented by one .
One can live with that but it's certainly not nice.
What options are you trying in /etc/fstab ?
I would not care about the high numbers. You may create those with mknod. With "ls -l /dev/hda*" you get the pattern.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.