Bug 21151 - Mounting FAT32 file system fails
Summary: Mounting FAT32 file system fails
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel   
(Show other bugs)
Version: 7.3
Hardware: ia64
OS: Linux
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2000-11-20 23:05 UTC by Matt Domsch
Modified: 2005-10-31 22:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-11-28 05:13:12 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Matt Domsch 2000-11-20 23:05:24 UTC
Mounting of a FAT32-formatted file system fails on IA-64.  Same works on

  (use fdisk to make one big sdb1 partition, 18GB or so) 
  mkdosfs -F 32 /dev/sdb1 
  mount /dev/sdb1 /mnt/fat32-1 

  On IA-64, I get the following error: 
  Directory 1: bad FAT    (from linux/fs/fat/inode.c) 
  File system panic (dev 08:11) 
    FAT error             (from linux/fs/fat/misc.c) 
    File system has been set read-only. 

  If the file system previously existed (created by any other tool), after
the (read-only) mount, I can only see garbage.

Comment 1 Matt Domsch 2000-11-20 23:10:05 UTC
kernel 2.4.0-0.34 (2.4.0-test9) is where this fails.

Comment 2 Bill Nottingham 2000-11-21 16:55:29 UTC
Persists in 2.4.0-test10.

Comment 3 Bill Nottingham 2000-11-21 17:02:35 UTC
Works in test11 on an ia32 box.

Oddly, the filesystem was made on an ia32, so it's not a problem with mkdosfs.

Comment 4 Matt Domsch 2000-11-21 17:08:22 UTC
I've never seen this fail on IA-32, regardless of kernel.

Comment 5 Matt Domsch 2000-11-21 17:13:21 UTC
Sizeof(fat_boot_sector,fat_boot_fsinfo,msdos_dir_entry,msdos_dir_slot) are all 
identical between IA-32 and IA-64.  vfat_slot_info is different, but only 
because loff_t changes size, but that isn't stored on-disk (I don't think).

#define MODULE
#define __KERNEL__
#include <linux/module.h>

#include <linux/modversions.h>

#include <linux/config.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/string.h>

#include <linux/msdos_fs.h>

  printk("sizeof(struct fat_boot_sector) = %d\n", sizeof(struct fat_boot_sector)
  printk("sizeof(struct fat_boot_fsinfo) = %d\n", sizeof(struct fat_boot_fsinfo)
  printk("sizeof(struct msdos_dir_entry) = %d\n", sizeof(struct msdos_dir_entry)
  printk("sizeof(struct msdos_dir_slot) = %d\n", sizeof(struct msdos_dir_slot));
  printk("sizeof(struct vfat_slot_info) = %d\n", sizeof(struct vfat_slot_info));

  return 0;


Comment 6 Bill Nottingham 2000-11-28 05:13:05 UTC
Fixed in kernel24-2.4.0-0.41 (and 2.2.18pre23, FWIW).

Note You need to log in before you can comment on or make changes to this bug.