I have a 500GB HD, partitioned into a few gigantic Windows NTFS partitions. The partitions are loaded with files, but I still have enough space and I want to install and try out linux.
Is there a way to 'slice a piece' off one of the partitions without formatting it?
thanks, Yuval =8-)
Ubuntu supports resizing an existing Windows partition during installation, that's probably going to be your best bet. Just defrag first so that all the data gets moved to the beginning of the disk and you'll be OK :)
If you're willing to shell out a few bucks, then Partition Magic will give you more flexibility in resizing partitions (including auto-defrag, well at least last time I used it)
Also of note if you're just wanting to "try it out", Ubuntu offers a Live CD that you can boot off directly. You can also install to a USB device if you're looking for a temporary/test solution.
Partition management software such as Partition Magic will allow you to do this. However, make sure you have a full backup of everything important before you do this, it usually works fine, but when your altering disk partition data it pays to be careful.
I suggest using Wubi which allows you to install Ubuntu to NTFS without having to make a new partition.
I would recommend Partition Magic however as previously stated ensure you back-up your files. I would also recommend running a defrag program to tidy up the data pieces on HD. This will make the 'slicing' procedure less prone to failure and loss of data.
As another users has already pointed out ideally i would tidy up the hard drive partitions before this. I just tend to have 2 partitions for windows: C: Drive for windows & programs D: Drive for personal data.
I have seen some people create seperate partitions for page files and programs but this always seemed excessive to me.
Finally, why create a partition at all? Why not install VMWare for free and run it as a virtual machine?
If you can empty one of the partitions, you can delete it (My Computer => Manage => Disk Management) and then you can Linux-format it.
Yes, this is possible. The fundamental algorithm for reducing a partition is that first you move the file system content towards the beginning of the partition (not necessarily the same as defragmenting, but very similar (and it could be identical)) so that the file system towards the end of the partition is unused. After that you reduce the size of the file system to somewhere between the original size and the accumulated file sizes.
Then as a final step you change the partition entry to match the reduced file system size. The extremely vital point in this operation is that the new partition entry that replaces the old one must start at the exact same location. If this goes wrong recovering is not trivial and possibly not possible at all.
For increasing a partition things are done in the opposite order, first the partition is changed to a larger size and then the file system is changed to match the new size.
Many tools provide all this as a single operation and then do all the necessary steps under the hood. But they will all follow the above procedure (and will include their own code for doing the file system operation).
GNU parted supports resizing in one operation like that although not for all files systems, and NTFS is one of them. There exists a tool ntfsresize that does support the file system resizing and then you must use a partition tool like parted or fdisk to do the final partition change like described above (make sure to use “sector” unit so that you are 100% sure that the changed partition entry starts at the very same place).
Gparted is a graphical frontend for parted that also includes support for ntfsresize and will thus support resizing NTFS partitions in one operation.
Tips:
As always when doing this kind of partition operation, backup is a good idea. Backup is always a good idea in any case, but especially here since destroying the partition table is a fast way to lose all your data.
Stop! - Before I Answer Your Question
Please give serious consideration to installing virtualization software. Microsoft's Virtual PC and Sun's VirtualBox offer free virtualization solutions which provide quick and safe ways to "install and try out" systems/installations without hacking up your system into little pieces.
But to answer your question:
You should take a look at EASEUS (http://www.partition-tool.com/).
It allows you to resize partitions without reformatting. The home edition is freeware and it often compared to Partition Magic as a free alternative.
Enjoy,
Robert C. Cartaino
I have to mention that windows 7 supports shrinking volumes on fly.
Most live linux CDs have a "Partition Manager" or gparted that can do this for you. Just boot from the CD, and look for it in the menu. It's easy, and it's free.
As mentioned in other posts - you should defrag your windows partition from within windows before doing this.
You should also make sure you have a valid backup first. Although this tool seems to go overboard in being "safe", if you were to lose power or something in the middle of a critical step, you could lose access to everything.
Use SysrescCD which comes with gparted and huge amount of other hd utils. You also can install Gentoo linux using it (you can install gentoo using almost any live cd with 2.6 kernel).
SysrescCD also includes:
Also you can buy Acronis Disk Director Suite and repartition your harddrive using it (it's also great tool but it's not free).