Menu

#20 can`t mount ext2-partition

closed-rejected
5
2004-03-04
2004-03-03
Anonymous
No

Hello,

MOX3.2d (7D24) Darwin 7.2.0

I reimaged an IBM Microdrive with the ml300-Images, see (at the
lower area of the page)
http://www.xilinx.com/ise/embedded/ml300/members/index.htm

After reimaging the Microdrive, it has three partitions, one FAT16-
FS, one swap-space-FS and one Unix-FS.

When I stick the microdrive into an USB-CF-Card-Reader, the
FAT16-Partition mounts automaticly, the two other not (as
expected).

Trying to mount the ext2-FS mit 'ExtFSManager' does not work.

The 'disktool -l'-excerpt fort the Microdrive is:
--------------------------------------------------
***Disk Appeared ('disk2s1',Mountpoint = '/Volumes/MICRODRIVE',
fsType = 'msdos', volName = 'MICRODRIVE')
***Disk Appeared ('disk2s2',Mountpoint = '', fsType = '', volName
= '')
***Disk Appeared ('disk2s3',Mountpoint = '', fsType = 'ext2',
volName = 'UNTITLED')
***Disk Appeared ('disk2',Mountpoint = '', fsType = '', volName =
'')
----------------------------------------------------

'ExtFSManager' shows for the ext2-Partition:
-----------------------------------------------------
IOKit-Name: Untitled 3
Gerδt: disk2s3
Auswerfbar: Ja
DVD/CD-ROM: Nein
Mount-Point: Nicht aktiviert
Beschreibbar: Ja
Gerδte-Kapazitδt: 698.91 MB (732856320 bytes)
Gerδte-Blockgrφίe: 512 bytes
-------------------------------------------------------

Discussion

  • Peter Kämmerling

    Logged In: YES
    user_id=989589

    I did send this bug(?)-report.

    Peter Kmmerling
    P.Kaemmerling@fz-juelich.de

     
  • Brian Bergstrand

    • status: open --> open-accepted
     
  • Brian Bergstrand

    Logged In: YES
    user_id=595265

    Can you mount the partition manually?

    From Terminal:

    mkdir /Volumes/micro
    sudo /sbin/mount_ext2 /dev/disk2s3 /Volumes/micro
    disktool -r

    If this works, then I'd say that a filesystem personality is missing.

    The output of 'ioreg -c IOMedia' will help.

     
  • Brian Bergstrand

    Logged In: YES
    user_id=595265

    Ooops, it looks like Disk Arb did find the correct filesystem type, so the
    personality should be set correctly.

    Maybe the fs is not clean. Try running fsck on it (before mounting).

    sudo /sbin/fsck_ext2 -y /dev/disk2s3

    Also, look in the /var/log/system.log file for any errors.

     
  • Peter Kämmerling

    Logged In: YES
    user_id=989589

    This happened:
    ----------------------------
    [peterka:~] peterka% sudo /sbin/mount_ext2 /dev/disk2s3 /Volumes/
    micro
    Password:
    kextload: /System/Library/Extensions/ext2fs.kext loaded successfully
    mount_ext2: /dev/disk2s3 on /Volumes/micro: Operation not permitted
    -----------------------------

    meanwhile I gave an other HD attached to my system a fresh ext2-fs.
    This runs perfectly with ext2fsx

     
  • Brian Bergstrand

    Logged In: YES
    user_id=595265

    Peter, it really looks like the filesystem is not clean.

    It think the error is coming from ext2_vfsops.c:803.

    Check /var/log/system.log for an error similar to:
    "EXT2-fs WARNING: R/W mount denied. Filesystem is not clean - run
    fsck"

    Please run fsck on the drive:
    sudo /sbin/fsck_ext2 -y /dev/disk2s3

    If this returns no problems, make double sure by forcing a full check:
    sudo /sbin/fsck_ext2 -fy /dev/disk2s3

    Thanks.

     
  • Peter Kämmerling

    Logged In: YES
    user_id=989589

    After

    ---------------------------------------
    [peterka:/Volumes] peterka% sudo /sbin/fsck_ext2 -y /dev/disk2s3
    Password:
    e2fsck 1.34 (25-Jul-2003)
    /dev/disk2s3 was not cleanly unmounted, check forced.
    Pass 1: Checking inodes, blocks, and sizes
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Checking reference counts
    Pass 5: Checking group summary information
    Free blocks count wrong for group #0 (10580, counted=10760).
    Fix? yes

    Free blocks count wrong (26875, counted=27055).
    Fix? yes

    /dev/disk2s3: ***** FILE SYSTEM WAS MODIFIED *****
    /dev/disk2s3: 33435/89472 files (0.3% non-contiguous), 151865/178920
    blocks
    ---------------------------------------

    the ext2-partition could be handled perfectly.
    Whow! Now I can go on developing the Linux on my Microdrive!
    Marvelous!

    Thank You Brian for Your quick and competend advice.
    Why didn`t I have the idea myself to check the fs?
    I will give the provider of the diskimage a hint that his fs is corrupted.

    Peter

     
  • Brian Bergstrand

    Logged In: YES
    user_id=595265

    Peter,

    Glad it works now. I'm closing this bug as rejected since there wasn't a
    software problem.

     
  • Brian Bergstrand

    • status: open-accepted --> closed-rejected
     

Log in to post a comment.