Once you have identified the Windows partition that you want to resize, you can use the parted command's resize command to resize the partition. The resize command takes three arguments:
♦ The minor number of the partition that you want to resize
♦ The starting position of the filesystem in megabytes
♦ The end of the resized filesystem in megabytes
The end of the resized filesystem must be some number greater than the amount of used space in your Windows partition that you wrote down earlier in this section. This guarantees that the resized filesystem is large enough to hold all of the files that are currently used by Windows in the original partition. Remember to make this number slightly larger than the amount of used space in your Windows partition so that you will be able to create new files under Windows.
For example, to resize the partition shown in the previous example to 3GB, you would enter a command such as the following:
(parted) 1 0.031 3000
When this command completes, use the print command to verify that your partition has been correctly resized, and then use the exit command to leave the parted program. You should then reboot your system into Windows, and make sure that Windows still boots correctly. If this is the case, you can then shut down your Windows system, boot from the SUSE install CD or DVD, and proceed with installing SUSE Linux into the space that you freed up on your disk.
Was this article helpful?