Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 21341  / 2 Years ago, sun, august 7, 2022, 8:28:14

I get this strange error trying to mount UFS partition.



   sudo mount -r -t ufs -o ufstype=ufs2 /dev/sdb2 /home/tim/ufs_mount
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


I'm a Ubuntu newbie and just switched from FreeNAS.



tim@T3:~$ sudo fdisk -l

Disk /dev/sda: 400.1 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders, total 781422768 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a77a6

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 765700095 382849024 83 Linux
/dev/sda2 765702142 781422591 7860225 5 Extended
/dev/sda5 765702144 781422591 7860224 82 Linux swap / Solaris

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x90909090

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 240974 120456 a5 FreeBSD
/dev/sdb2 240975 2928601304 1464180165 a5 FreeBSD
/dev/sdb3 2928601305 2930272064 835380 a5 FreeBSD

More From » mount

 Answers
4

You need to get the bsd partition, that fdisk -l cant show you.



First:



$ dmesg|grep bsd

[ 3.467958] sde1: <bsd:bad subpartition - ignored
[ 3.467959] sde2: <bsd: sde5 >


Look after a partion, in this case sde5 seemed to be the one fore me.



Then:



$ sudo mount -t ufs -r -o ufstype=ufs2 /dev/sde5 ~/freebsd


The forum answer that got me on the right track


[#41645] Tuesday, August 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
darpose

Total Points: 424
Total Questions: 99
Total Answers: 121

Location: Jersey
Member since Fri, Oct 1, 2021
3 Years ago
darpose questions
Sun, Jan 23, 22, 04:32, 2 Years ago
Tue, Apr 25, 23, 23:44, 1 Year ago
Wed, Dec 15, 21, 14:42, 2 Years ago
Wed, Jun 2, 21, 23:41, 3 Years ago
;