Sponsored Content
Operating Systems OS X (Apple) Can't Mount Disk / Image after bad unmount Post 302325116 by Cranie on Friday 12th of June 2009 06:01:32 PM
Old 06-12-2009
Can't Mount Disk / Image after bad unmount

I have had a little issue with one of my disks, the usb cacble was pulled out and one of the external drives on it would no longer mount. I used First Aid and it verified and repaired both OK / nothing to do). After lots of messing around and not being able to mount I used Drive Genius 2 and that verified / rebuilt OK again with nothing to do.

Next I used that to duplicate to a disk image. At this point I re-formatted the disk and thats working fine now. The image I created has the same issue. I can see the partition in there but Disk Util / hdiutil can not mount the image. I get the following when trying to fsck the image (or disk before I reformatted):

BAD SUPER BLOCK: MAGIC NUMBER WRONG

I wrote a quick script and found 1 additional super block but fsck seg faults when I use that.

Some more info:

"./disk2s1.dmg: Macintosh HFS Extended version 4 data last mounted by: 'fsck', created: Sat Mar 7 18:42:44 2009, last modified: Mon Jun 1 08:40:53 2009, last checked: Sat Mar 7 18:42:44 2009, block size: 4096, number of blocks: 4883752, free blocks: 95358"

Its only a small 20GB drive. There are scripts and files I would like to recover but have no way to get this anyone have any ideas?

A simple:

cat disk2s1.dmg | strings

I can see file names I know are on the drive, so the data does seem to be intact just no easy way to get at it.
 

10 More Discussions You Might Find Interesting

1. HP-UX

Cannot unmount mount points??

When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted. How can I find out what process(es) is/are latching on the these mount points? Thank you for your time. (1 Reply)
Discussion started by: genzbeat
1 Replies

2. Gentoo

automating chroot and mount/unmount

Hello, I am trying to automate a task that I believe is easy. It is documented for manual system administrative purposes here: Gentoo Linux -- Installing the Gentoo Base System - chapter 6 I am attempting to do the following in a script: # cd $TOP_OF_ROOT_FS # mount -t proc none... (3 Replies)
Discussion started by: duderonomy
3 Replies

3. HP-UX

/usr out of disk space need to unmount/ expand volume /mount

Greetings, I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space. I have plenty of hard disk space on my computer so would like to expand the size of the volume. The... (5 Replies)
Discussion started by: Dirk_
5 Replies

4. OS X (Apple)

When a disk won't 'Unmount"

hdiutil detach -Force disk&number (ex:hdiutil detach -Force disk1) (3 Replies)
Discussion started by: unimachead
3 Replies

5. Shell Programming and Scripting

Unmount USB disk

Hi, How can I unmount an usb disk using the command umount? (3 Replies)
Discussion started by: Guccio
3 Replies

6. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

7. Shell Programming and Scripting

Cygwin bash script to unmount and mount an XP partition

As stated, I am looking into keeping my backup drive unmounted in normal windows use. Partly this is to address threats like cryptolocker. Since one of my backup drives is an internal drive, it will not likely afford any protection from such a threat. I am thinking of adding code to my rsync script... (5 Replies)
Discussion started by: LMHmedchem
5 Replies

8. Shell Programming and Scripting

Script to unmount and mount by UUID

Hi, Need a bit of help on this one as I am a scripting noob. I have a linux based NAS that mounts USB hard drives in an inconsistent location and to make matters worse, seems to lose the mount for an unknown reason and doesn't remount automatically unless the drive is removed and re-inserted.... (4 Replies)
Discussion started by: gtr33m
4 Replies

9. Solaris

Force unmount of a SWAP filesystem left over from bad Live Upgrade

Hello, Long story short, we built an alternate boot env. back in July and applied the latest CPU to about 15 servers. Of the 15 servers, 7 servers failed to start the zones after the luactivate / reboot. The zones failed to rename from <zone>-<boot_env> back to <zone>. This is fixed in patch... (16 Replies)
Discussion started by: mainegeek
16 Replies

10. UNIX for Beginners Questions & Answers

AIX - SAN Mount and Unmount on LPAR

We have 2 LPAR. LPAR #1 have a Application, Database Server process (ctree Server) and SAN+Physical Table. LPAR#2 has only Application. Both Application process are connected to Database via C-tree Server Process (Running on LPAR #1.. We want to keep one Active C-tree Server and one Backup... (1 Reply)
Discussion started by: gabhanes
1 Replies
FSCK(8) 						    BSD System Manager's Manual 						   FSCK(8)

NAME
fsck -- file system consistency check and interactive repair SYNOPSIS
fsck [-dfnPpqvy] [-l maxparallel] [-T fstype:fsoptions] [-t fstype] [-x mountpoint] [special | node ...] DESCRIPTION
The fsck command invokes file system-specific programs to check the special devices listed in the fstab(5) file or in the command line for consistency. It is normally used in the script /etc/rc during automatic reboot. If no file systems are specified, and ``preen'' mode is enabled ( -p option) fsck reads the table /etc/fstab to determine which file systems to check, in what order. Only partitions in fstab that are mounted ``rw,'' ``rq'' or ``ro'' and that have non-zero pass number are checked. File systems with pass number 1 (normally just the root file sys- tem) are checked one at a time. When pass 1 completes, all remaining file systems are checked, running one process per disk drive. By default, file systems which are already mounted read-write are not checked. The disk drive containing each file system is inferred from the longest prefix of the device name that ends in a digit; the remaining characters are assumed to be the partition designator. The options are as follows: -d Debugging mode. Just print the commands without executing them. -f Force checking of file systems, even when they are marked clean (for file systems that support this), or when they are mounted read- write. -l maxparallel Limit the number of parallel checks to the number specified in the following argument. By default, the limit is the number of disks, running one process per disk. If a smaller limit is given, the disks are checked round-robin, one file system at a time. -n Causes fsck to assume no as the answer to all operator questions, except "CONTINUE?". -P Display a progress meter for each file system check. This option also disables parallel checking. Note that progress meters are not supported by all file system types. -p Enter preen mode. In preen mode, fsck will check all file systems listed in /etc/fstab according to their pass number, and will make minor repairs without human intervention. -q Quiet mode, do not output any messages for clean filesystems. -T fstype:fsoptions List of comma separated file system specific options for the specified file system type, in the same format as mount(8). -t fstype Invoke fsck only for the comma separated list of file system types. If the list starts with ``no'' then invoke fsck for the file system types that are not specified in the list. -v Print the commands before executing them. -x mountpoint Exclude the filesystem which has a mountpoint the same as in /etc/fstab. Used only in ``preen'' mode. -y Causes fsck to assume yes as the answer to all operator questions. FILES
/etc/fstab file system table EXIT STATUS
fsck exits with 0 on success. Any major problems will cause fsck to exit with the following non-zero exit(3) codes, so as to alert any invoking program or script that human intervention is required. 1 Usage problem. 2 Unresolved errors while checking the filesystem. Re-running fsck on the filesystem(s) is required. 4 The root filesystem was changed in the process of checking, and updating the mount was unsuccessful. A reboot (without sync) is required. 8 The filesystem check has failed, and a subsequent check is required that will require human intervention. 12 fsck exited because of the result of a signal (usually SIGINT or SIGQUIT from the terminal). SEE ALSO
fstab(5), fsck_ext2fs(8), fsck_ffs(8), fsck_lfs(8), fsck_msdos(8), mount(8) BSD
February 17, 2010 BSD
All times are GMT -4. The time now is 03:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy