Was expecting a little more help than this. Luckily I have previous experience so know that the Ubuntu forums are a gold mine of helpful advice. A newbie would of given up by now and installed Ubuntu....
The solutions to the original questions:
Hiding the partitionThe most obvious way to hide a partition would be to open gParted and set the "hidden" flag, but for some reason the check box wouldn't change when I tried it. Possibly because the format is ext4...I don't really know and didn't research it further. The next option is to use the File System Table file located at /etc/fstab. This file is a list of hard drive instructions that will be run at boot-up. It basically consists of a drive identification (Note that I use the UUID instead of /dev/sd* as it will not change), a mount point, the file format and some mounting instructions. After trying many settings (noauto, nouser, etc) without success, I accidentally tried to use a none existent mount point and found the drive was hidden from the O.S. but visible only to gParted. That was all I wanted to achieve so I ended up adding this line to my fstab file:
- Code: Select all
UUID=a99f1ce2-1c12-41fe-8f68-54cf59ad37be hidden ext4 ro,noauto 0 0
Note that the mount point "hidden" does not exist. I'm assuming this just causes a mount fail at boot-up which in turn causes the O.S. to ignore the partition. AFTER cloning the O.S. partition, the UUID is the same for both partitions...which will also cause a mount fail because that UUID will already be mounted as root. So after cloning, when both the O.S. and Backup partitions have the same UUID, you can remove or comment-out the above line. Whether or not causing a mount failure is the correct way to hide a partition or drive is debatable but it doesn't appear to have an ill-effects.
Formatting the driveAs it was a 1TB drive, I wanted to break it down into partitions. The basic partition types are Primary and Extended. An Extended partition must be split into Logical partitions before it can be used . You can only partition a drive into
4 Primary partitions but an Extended partition can be split into multiple Logical partitions. The strategy I chose was to split my drive as follows:
1. 50GB Primary partition for the O.S.
2. 4GB Primary partition for memory Swap
3. 10GB Primary to hold a clone of my "clean" O.S. partition
4..a) 867GB (all of the remaining space) as an Extended partition
....b) 867GB Logical partition for Storage/Data
Cloning the O.S.Having installed LMDE 201204, all my "usual" applications and set them all up to my preferences, it makes sense to clone the partition. This obviously makes future re-installation much faster as we don't need to go through the setup procedure again and also gives a good backup in case anything goes wrong. I've never cloned a drive or partition before, so played around with CloneZilla as it was recommended by many people. It looked over-complicated and asked lots of questions and wasn't able to copy my 5GB O.S. because the source partition was 50GB and the target was 10GB. I think there are some command line options to force it to do that, but I found it a little scary as I didn't want to lose my O.S. setup. You can also temporarily re-size the source drive but that required gParted...
As it happens, gParted also allows you to clone a drive or partition. It makes a lot of sense to use this tool as we already have it on our Live CDs/DVDs and most of use are familiar with using it. The procedure was very straight forward and I found it MUCH easier than using CloneZilla:
1. Boot up using your Linux Live CD/DVD and start gParted.
2. Re-size the source partition so it is the same size or smaller than the target partition using right-click -> Resize/Move. I made mine 10240MB (10GB).
3. Right-click on the source partition and select Copy.
4. Right-click on the target partition and select Paste.
5. Re-size the source partition back to its original size. (50GB in my case)
I've not used the backup image yet, but assume the procedure is a straight copy/paste, with no need to re-size because the target partition is larger than the source partition:
1. Boot up using your Linux Live CD/DVD and start gParted.
2. Right-click on the source partition and select Copy.
3. Right-click on the target partition and select Paste.