Solved

Cannot delete/erase mac mini raid partition

Posted on 2012-03-14
5
691 Views
Last Modified: 2012-06-04
Hi There

I have a Mac mini that had OSX Leopard Server on it. We installed Lion Server on it when it first came out and put it in to a small school and gave them all the details. They were having issues and asked us to sort it all out. We had no passwords so decided to re-install the OS.

This was not a very good idea. On an internet restore it keeps stalling and telling me that I need to go to the disk utility and delete the main partition. When I do this it has the two 500GB drives combined to a master stripped drive. However everything is locked and will not allow me to make any adjustments.

Is there any way to unlock these drives and allow me to reset all the partitions and Raid configuration?

regards
0
Comment
Question by:doey
  • 2
  • 2
5 Comments
 
LVL 10

Expert Comment

by:robertcerny
Comment Utility
Hello,
it lools like something went terribly wrong. I would recommend to boot from DVD and repartition drives and recreate mirror.
0
 

Author Comment

by:doey
Comment Utility
The mac mini server edition does not have an optical drive. However the OS is on a USB stick and I can boot from that. From this I can get into the disk utility which I believe is the only place to perform the actions required. I have listed the proble that I get from the disk utility above.
0
 
LVL 47

Accepted Solution

by:
dlethe earned 500 total points
Comment Utility
UNIX 101.  Learn how to use dd and the terminal interface.

If you want to blow the partitioning away, then you use dd to write zeros to the appropriate device, as in:

sudo dd if=/dev/zero of=/dev/xxxxx  bs=1024k count=1  

Above will put zeros in the first 1MB of /dev/xxxxx
To figure out what device(s) you want to blow away
enter mount
and it will give some cross-reference info..  (Below shows my system which has a time machine on network, an iSCSI target, parallels running windows and a few other things ..)

To blow away everything in /dev/disk0   use /dev/disk0 as the "if="  to blow away contents of my bootcamp  partition in disk0, you would use /dev/disk0s3 in my case.

(Warning, there is no Are-you-sure.  If you blow away something, it is gone, even if you tell it to blow away the system disk you are booted to.  It will gladly do so).

Choose the device wisely and make sure you are careful about what you want to blow away.

davidslaptop:~ david$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk0s3 on /Volumes/BOOTCAMP (msdos, asynchronous, local, noowners)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
map -static on /Volumes/mounts (autofs, automounted, nobrowse)
afp_3YlCHx3dINti2MIyao0l5AQ8-3.2e00000e on /Volumes/TM_David (afpfs, nobrowse)
/dev/disk1s2 on /Volumes/ANSITargetOnJeeves (hfs, local, journaled)
vfstool@prlufs0 on /private/tmp/5313/C (prlufs, nodev, noexec, nosuid, synchronous, mounted by david)
vfstool@prlufs1 on /private/tmp/5313/E (prlufs, nodev, noexec, nosuid, synchronous, mounted by david)
vfstool@prlufs2 on /private/tmp/5313/I (prlufs, nodev, noexec, nosuid, synchronous, mounted by david)
davidslaptop:~ david$

Open in new window


==
df -H shows supporting information

davidslaptop:~ david$ df -H
Filesystem                                Size   Used  Avail Capacity  Mounted on
/dev/disk0s2                              466G   388G    77G    84%    /
devfs                                     205k   205k     0B   100%    /dev
/dev/disk0s3                               34G    48M    34G     1%    /Volumes/BOOTCAMP
map -hosts                                  0B     0B     0B   100%    /net
map auto_home                               0B     0B     0B   100%    /home
map -static                                 0B     0B     0B   100%    /Volumes/mounts
afp_3YlCHx3dINti2MIyao0l5AQ8-3.2e00000e   839G   296G   543G    36%    /Volumes/TM_David
/dev/disk1s2                              107G    52G    55G    49%    /Volumes/ANSITargetOnJeeves
vfstool@prlufs0                            34G    29G   5.3G    85%    /private/tmp/5313/C
vfstool@prlufs1                           100G    40G    60G    40%    /private/tmp/5313/E
vfstool@prlufs2                           106G    52G    54G    50%    /private/tmp/5313/I
davidslaptop:~ david$

Open in new window


So i above ,  /dev/disk0s2 is a partition on the /dev/disk0 and it is 466GB total, and /dev/disk0s3 is partition on the same disk used by BOOTCAMP at 34 GB,   The rest is other stuff.  You would have a /dev/disk1 presumably which has some number of partitions on it.

To blow away 100% of a physical disk
dd if=/dev/zero of=/dev/disk03 bs=1024k
(Will blow away all of physical disk /dev/disk03)
0
 

Author Comment

by:doey
Comment Utility
WOW. Thanks dlethe.

This is the type of answer that I was hoping for. I have yet to try it out. But when you say "blow away" I presume you mean erase everything. If that's the case then this is exactly what I want to do. I want to start totally afresh.
0
 
LVL 47

Expert Comment

by:dlethe
Comment Utility
Yes, I mean write zeros to the disk, technically that doesn't mean erase everything, it means to overwrite the 1s with zeros.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Package creation on OS X uses the PackageMaker utility installed as part of the XCode development suite ( on the OSX Client CD).  Packages can be installed as part of the machine build process, or later using Apple Remote Desktop. They are generally…
This article describes in detail how to set up the iPad in the Enterprise using iPCU aka iPhone Configuration Utility.  This could also be used for the iPhone although I have not detailed out any differences. Preparation as an iPad Administrator:…
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now