Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 156659

Summary: mount does not autosense cramfs image
Product: [Fedora] Fedora Reporter: Mike McLean <mikem>
Component: e2fsprogsAssignee: Thomas Woerner <twoerner>
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: kzak, sct
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 1.37-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-01 12:53:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
libblkid cramfs bugfix none

Description Mike McLean 2005-05-02 22:51:47 UTC
* util-linux-2.12p-8
* glibc-2.3.5-4
* kernel-2.6.11-1.1276_FC4

Take a cramfs image (like stage2.img from the install disc) and try to 
mount it with mount -o loop.  Mount fails to autosense the fstype and the mount
fails.  If -t cramfs is added to the command line, the mount succeeds.

Furthermore, when the mount -o loop fails, the loop device is not freed. So
after running this command a few times you find yourself completely out of loop

Comment 2 Karel Zak 2005-05-03 12:37:41 UTC
Created attachment 113959 [details]
libblkid cramfs bugfix

The problem is with the libblkid (from e2fsprogs package). There's wrong cramfs
magic number. The patch contains:

- fix of cramfs magic number
- support for cramfs LABELs

I sent it to e2fsprogs upstream too.

Comment 4 Karel Zak 2005-09-01 12:53:57 UTC
Fixed in FC4|5. The problem is unimportant for RHEL3|4 where is the mount
command without libblkid. Closing...