I am going to install Ubuntu on a brand new PC, which comes with some OEM installation of Windows 7. I know that Ubuntu can resize an existing Windows NTFS partition, so that it has free space to install. However, I am not sure how safe it is, and I'd like opinions, and tips'n'tricks on what I can do to avoid problems. The PC does not contain any data and I will have the recovery disk.
Merci!
If there's data you can't stand to lose (ie that couldn't be recovered by just reinstalling) it doesn't matter if you're repartitioning or not, back it all up to an external drive.
Resizing NTFS is a pretty tried and tested technology (it has been one of the main install vectors for people trying Linux in the past, and probably still is) so you should be fairly confident you won't rinse your drive when you do it. It's had a lot of attention and there are a lot of tools out there to simplify the process.
That said, none of them come with any warranty to work or against data loss. But, as I say, you can minimise any loss by just taking a backup.
You can use something like CloneZilla to make the initial backup to an external drive. I think it also supports network locations too so you have options available if you can't clone to an external USB disk.
For some reason, I don't trust linux tools dealing with NTFS because of a lot of bad experiences. Windows comes with a good disk management tool for FAT/NTFS, and I'd say that's your best bet. I've done this for a lot of people I've initiated into Ubuntu, and it's never failed.
compmgmt.msc
You should now has as much free space as you asked for; do what you want with it =)
Before starting repartitioning, I recommend to create a disk image from the whole disk. You can use Clonezilla for this. Simply burn the ISO to a CD, have an external HDD available.
When running Clonezilla, choose device-image; local_dev; savedisk and continue. (screenshots)
I've resized a few computers with Win7 on it, and only in one case Win7 refused to start up, displaying an error message. Using the recovery mode of Win7 to run Startup repair fixed this.
If it were me I would resize the partition and create a new one from within windows7 I'm fairly sure that should anything go wrong you would still be "Under Warranty" as you are using the software that came with the PC. If you use Ubuntu and something goes wrong (not that it would) it could possibly break the warranty.
Whatever you do (i.e. from Ubuntu or from Windows), make sure not to delete your recovery partition that most likely came with your machine.
Ubuntu 9.04 totally destroyed my Win7 install (even the MBR was unreadable afterwards) once, but it was because my PC had a very weird configuration (it had a mixed PATA/SATA configuration, with apparently the boostrapper for Win7 and Win7 itself being on different drives). Apart from this one case, I installed Ubuntu (up to version 10.10) several times on different computers (desktop, notebook) hosting Win7, without a problem. The tool for resizing partitions included with Ubuntu seems rock solid to me. A Windows tool like PartitionMagic, on the other hand, failed me several times on very simple tasks, so even when I don't need to install anything, for any partition-related task I'd rather rely on a good ol' linux tool like gparted.
Conclusion: you will be fine, but save your data first (general IT motto). And your new PC came with legal Win7 key you can use with any Win7 image, in case you wonder. Just make sure you have that key and even an install failure will not cost your more than the time to reinstall.
it is pretty safe to install Ubuntu next to Win7, I have done so a couple of times without hassle. Just a couple of pointers that will probably make me win the Capt. Obvious award:
Enjoy!