LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2024, 05:38 PM   #1
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Rep: Reputation: 8
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
 
Old 04-01-2024, 01:55 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
I haven't had to do that for a while.

https://www.kernel.org/doc/html/late...guide/ufs.html

You might run lsblk -f on them.

You may also look and see what you have on your machine
Code:
ls /usr/lib/modules/6.7.9-arch1-1/kernel/fs
9p          coda      fat      jffs2           nfsd       pstore    ufs
affs        cramfs    fscache  jfs             nilfs2     quota     vboxsf
afs         dlm       fuse     lockd           nls        reiserfs  xfs
bcachefs    ecryptfs  gfs2     mbcache.ko.zst  ntfs3      romfs     zonefs
befs        erofs     hfs      minix           ocfs2      smb
btrfs       exfat     hfsplus  netfs           omfs       squashfs
cachefiles  ext4      isofs    nfs             orangefs   ubifs
ceph        f2fs      jbd2     nfs_common      overlayfs  udf
I don't know where slack has that.
 
1 members found this post helpful.
Old 04-01-2024, 02:18 PM   #3
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,370

Rep: Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087
Quote:
Originally Posted by teckk View Post
I haven't had to do that for a while.

https://www.kernel.org/doc/html/late...guide/ufs.html

You might run lsblk -f on them.

You may also look and see what you have on your machine
Code:
ls /usr/lib/modules/6.7.9-arch1-1/kernel/fs
9p          coda      fat      jffs2           nfsd       pstore    ufs
affs        cramfs    fscache  jfs             nilfs2     quota     vboxsf
afs         dlm       fuse     lockd           nls        reiserfs  xfs
bcachefs    ecryptfs  gfs2     mbcache.ko.zst  ntfs3      romfs     zonefs
befs        erofs     hfs      minix           ocfs2      smb
btrfs       exfat     hfsplus  netfs           omfs       squashfs
cachefiles  ext4      isofs    nfs             orangefs   ubifs
ceph        f2fs      jbd2     nfs_common      overlayfs  udf
I don't know where slack has that.
Code:
# ls /lib/modules/6.6.23/kernel/fs
adfs    bfs         dlm       gfs2     minix   orangefs   quota   zonefs
affs    cachefiles  ecryptfs  hfs      nilfs2  overlayfs  sysv    binfmt_misc.ko
afs     ceph        efs       hfsplus  nls     pstore     ubifs
autofs  coda        freevxfs  hpfs     ocfs2   qnx4       ufs
befs    cramfs      fuse      jffs2    omfs    qnx6       vboxsf
 
Old 04-01-2024, 02:23 PM   #4
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,370

Rep: Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087
@mw.decavia
Can you post the output of? :
Code:
# file -s /dev/sdc2
 
1 members found this post helpful.
Old 04-01-2024, 04:44 PM   #5
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by marav View Post
@mw.decavia
Can you post the output of? :
Code:
# file -s /dev/sdc2
of course

Code:
# file -s /dev/sdc2
/dev/sdc2: DOS/MBR boot sector, BSD disklabel
And file ufs.ko was found here -

Code:
/lib/modules/5.15.19/kernel/fs/ufs/ufs.ko
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.
 
1 members found this post helpful.
Old 04-01-2024, 05:09 PM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,370

Rep: Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087
Nice, so solved?
 
Old 04-01-2024, 07:03 PM   #7
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by marav View Post
Nice, so solved?
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 ?
 
Old 04-01-2024, 07:30 PM   #8
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,370

Rep: Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087Reputation: 4087
According to man mount
Code:
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.
 
Old 04-01-2024, 11:50 PM   #9
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 229

Rep: Reputation: 45
@marav , There used to be a third & maybe fourth selection .

ultrix

JimL ;-)
 
Old 04-02-2024, 12:54 AM   #10
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 972

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
Quote:
Originally Posted by mw.decavia View Post
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.

regards Henrik
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/sdc2 partition almost full...how to reclaim space? eco_bach Linux - Newbie 4 08-06-2018 12:10 AM
tell kernel NOT to try mount specific partition -aka- Wrong ufstype may corrupt your masuch Linux - Newbie 11 05-10-2015 06:42 AM
change /dev/sdc2 name mmhs Linux - Newbie 5 12-26-2011 05:40 AM
Mount -o ufstype=bsdX, /home not readable. Mr-Bisquit *BSD 1 04-06-2010 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration