Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Important tips on pdisk' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Important tips on pdisk
Authored by: metafeather on Nov 20, '02 05:25:01AM

Having used pdisk on OS9 and OSX this is one utility where it really pays to read the man page, and here are some other tips:

1. A capital 'L' will list all the current partitions, their start block, length, device and name.
This gives you all the info you need to manipulate the map and i generally do this first.

2. The first thing you see from the above is that there are a number of partitions used by apple for boot drivers etc - DO NOT MESS WITH THESE!
Therefore your first partition is not your first (its generally the 9th)

3. You can do all this as root or sudo on a running system, the map will not be written until the 'w' command and not active until you reboot.

As a general strategy, this is one reason for partitioning a new machine to have the OS on a separate partition, you can then backup files and rearrange the rest of your partitions without ever having to reinstall.

Good luck



[ Reply to This | # ]