commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This is a bit hacky, but if you're setting up a bunch of new LUNs, it can save a bunch of time. Also check out sfdisk. The fdisk will fail if, for example, a partition table already exists.
There are 2 alternatives - vote for the best!
Creates a single primary partition starting at sector 0 and extending to the end of the disk. Use with care.
this work even if a partition table exist
If you can do better, submit your command here.
You must be signed in to comment.