mount unclean shutdown hfsplus drive

steve reilly sfreilly at roadrunner.com
Sat Jan 30 18:52:40 UTC 2010


hi all,


working on this macbook trying to get data off the drive, having a bear 
of a time. any help or clue would be appreciated, ive about exhausted 
all my resources and googlefu......havent tried gparted livecd yet, but 
have a feeling ill get the same results.



**dmesg

[105923.563165] usb-storage: waiting for device to settle before scanning
[105928.560321] usb-storage: device scan complete
[105928.561231] scsi 8:0:0:0: Direct-Access     Seagate  Desktop 
   0130 PQ: 0 ANSI: 4
[105928.561984] sd 8:0:0:0: Attached scsi generic sg2 type 0
[105928.565277] sd 8:0:0:0: [sdb] 312581808 512-byte logical blocks: 
(160 GB/149 GiB)
[105928.567461] sd 8:0:0:0: [sdb] Write Protect is off
[105928.567467] sd 8:0:0:0: [sdb] Mode Sense: 2f 08 00 00
[105928.567472] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[105928.569063] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[105928.569073]  sdb:
[105928.945947] Alternate GPT is invalid, using primary GPT.
[105928.945955]  sdb1 sdb2
[105928.948718] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[105928.948726] sd 8:0:0:0: [sdb] Attached SCSI disk
[105929.540243] hfs: Filesystem was not cleanly unmounted, running 
fsck.hfsplus is recommended.  mounting read-only.
[105929.547758] hfs: failed to load extents file
[106046.044209] hfs: unable to find HFS+ superblock

**try to mount

steve at steve-laptop:/mnt$ sudo mount -t hfsplus /dev/sdb2 /mnt/macdrive
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
        missing codepage or helper program, or other error
        In some cases useful info is found in syslog - try
        dmesg | tail  or so


**try to force mount

steve at steve-laptop:/mnt$ sudo mount -o force -t hfsplus /dev/sdb2 
/mnt/macdrive
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
        missing codepage or helper program, or other error
        In some cases useful info is found in syslog - try
        dmesg | tail  or so


**try to fsck

steve at steve-laptop:/mnt$ sudo fsck.hfsplus -f /dev/sdb2
** /dev/sdb2
** Checking HFS Plus volume.
    Invalid B-tree node size
(3, 0)
** Volume check failed.



**fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util 
fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x15261526

    Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       19458   156290903+  ee  GPT



**parted
steve at steve-laptop:/mnt$ sudo parted /dev/sdb2
GNU Parted 1.8.8.1.159-1e0e
Using /dev/sdb2
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) check sdb2
Backtrace has 13 calls on stack:
   13: /lib/libparted-1.8.so.12(ped_assert+0x8a) [0x7f2a07a65f4a]
   12: /lib/libparted-1.8.so.12(ped_geometry_read+0xc5) [0x7f2a07a6e055]
   11: /lib/libparted-1.8.so.12(hfsplus_probe+0x26e) [0x7f2a07a8706e]
   10: /lib/libparted-1.8.so.12(ped_file_system_probe_specific+0xcf) 
[0x7f2a07a6770f]
   9: /lib/libparted-1.8.so.12(ped_file_system_probe+0xcb) [0x7f2a07a67c7b]
   8: /lib/libparted-1.8.so.12 [0x7f2a07a9a47a]
   7: /lib/libparted-1.8.so.12(ped_disk_probe+0x9b) [0x7f2a07a6d6eb]
   6: /lib/libparted-1.8.so.12(ped_disk_new+0x74) [0x7f2a07a6d794]
   5: parted [0x4091d7]
   4: parted(interactive_mode+0xf3) [0x40d7b3]
   3: parted(main+0x8f) [0x40a90f]
   2: /lib/libc.so.6(__libc_start_main+0xfd) [0x7f2a07284abd]
   1: parted [0x405399]
Error: /dev/sdb2: unrecognised disk label














More information about the ubuntu-users mailing list