LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-18-2017, 09:10 AM   #1
maxfisher
LQ Newbie
 
Registered: Sep 2017
Posts: 2

Rep: Reputation: Disabled
Question Problems loop mounting ufs filesystem on centos7


I am trying to mount a vmdk flat file which contains an ordinary msdos partition table with 2 ufs slices a 2GB root partition and a 200 MB swap partition. When mounted natively in FreeBSD the filesystem is shown to be ufs2.

file -sL /dev/ufsid/59b65b72848c9171
/dev/ufsid/59b65b72848c9171: Unix Fast File System [v2] (little endian) last mounted on / ...

The following commands are executed on the centos system.

modprobe ufs
kpartx -a -v UFS_fs.vmdk
add map loop0p1 (253:9): 0 4194225 linear /dev/loop0 63

mount -t ufs -o ro,ufstype=ufs2 /dev/mapper/loop0p1 /mnt

mount: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p1,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

dmesg | tail
...
[ 7137.735075] ufs_read_super: bad magic number

partprobe /dev/loop0

fdisk -l | tail

Disk /dev/mapper/loop0p1: 2147 MB, 2147443200 bytes, 4194225 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 label type: dos
Disk identifier: 0x90909090

Device Boot Start End Blocks Id System
/dev/mapper/loop0p1p4 * 0 49999 25000 a5 FreeBSD


mount -t ufs -o ro,ufstype=ufs2 /dev/mapper/loop0p1p4 /mnt
mount: special device /dev/mapper/loop0p1p4 does not exist


partx -l /dev/mapper/loop0p1
# 1: 63- 4194287 ( 4194225 sectors, 2147 MB)


mount -r -t ufs -o loop,offset=32768,ufstype=ufs2 /dev/mapper/loop0p1 /mnt

mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

dmesg | tail
...
[ 7482.023299] ufs_read_super: bad magic number
[ 7490.939276] ufs_read_super: bad magic number

partx -l /dev/loop0

# 1: 63- 4194287 ( 4194225 sectors, 2147 MB)
# 5: 3784625- 4194224 ( 409600 sectors, 209 MB)

mount -r -t ufs -o ufstype=ufs2 /dev/loop0p1 /mnt
mount: /dev/loop0p1 is already mounted or /mnt busy

mount -r -t ufs -o loop,ufstype=ufs2 /dev/loop0p1 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.


mount -r -t ufs -o ufstype=ufs2 /dev/loop0 /mnt
mount: /dev/loop0 is already mounted or /mnt busy


mount -r -t ufs -o loop,ufstype=ufs2 /dev/loop0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

I am especially confused as to why fdisk -l shows a FreeBSD partition but mount claims it doesn't exist. ls -l also fails to show it. Does fdisk use a different method of listing block devices? Any suggestions on what else I should try? I've tried everything I can think of at this point. It *should* work but doesn't.
 
Old 09-20-2017, 02:38 PM   #2
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Rep: Reputation: 26
So far I see if being a module issue thats needed: https://superuser.com/questions/8015...on-on-centos-7
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount UFS filesystem on Ubuntu mikeavison Linux - Hardware 12 08-08-2011 11:33 AM
[SOLVED] UFS Filesystem Errors? Insane Silliness! thund3rstruck *BSD 4 05-04-2011 07:28 PM
I can't mount UFS filesystem from Linux malcarada Linux - General 3 03-09-2008 12:27 PM
Gentoo. Problems with the loop device when mounting an iso file Snerkel Linux - Software 4 11-26-2004 03:34 PM

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

All times are GMT -5. The time now is 06:05 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