Login (generic cert)
Logout
Guests 24
If you can walk and chew gum at the same time, you can run GNU/Linux
Blog Pushes

debian tutorials
debiantutorials.org is built on and runs on Debian.

 

Creative Commons License
Resize that large Windows Partition Print E-mail
Written by machiner   
Saturday, 23 April 2005 12:33
This tutorial will guide you through the process of resizing your large hard drive partition to make room to install another operating system (you're going with Debian GNU/Linux, right?) right alongside your original install of Windows. Many of you would like to do this but fear that you will have to lose all of your existing data. Not so. We will not be removing Windows. However, I am assuming that you have one hard drive with only one large partition. This will have to be further partitioned to accomplish this task.

There are a few different ways to accomplish the task of partitioning your drive, but I do it one way that has proven to be very reliable. You should be aware that as with all things "computer" there is the potential to loose data - even though I just said this process is reliable, I recommend you take the time to back up your data. Prudent folk employ backups. I'm assuming that your Windows is using the NTFS file system. De-frag your drive, twice, before you attempt this re-size operation.

We will be shutting down and rebooting the computer into a "live" linux disc specifically made as a rescue or utility disc. You'll have to go into your BIOS when you reboot and check to boot to CD-ROM in your boot device setting. The System Rescue Disc is a Linux (Gentoo) distribution specifically designed for maintaining and rescuing your data - should that need arise. You can also use this disc to "rescue" or otherwise maintain your Windows installation.

In order to boot to a disk you need to change your boot parameters in your BIOS. [ See Getting into BIOS ]

Please goto http://www.sysresccd.org and download the System Rescue Disk. You will need to burn this .ISO file to a CD in order to use it. It's a quick process unless you are on a dial-up account. If so, I apologize - this disc is better than 100MB so you might want to start the download when you have something else to do for a while.

Upon booting to the System Rescue Disk you will be presented with a prompt, please type the following at that prompt:

menu

Following this you will be presented with a small box with more options. Please arrow right, then down 3 and hit ENTER on System Rescue Disc. Next the OS will boot, just a shell, no fancy GUI.

Now we will begin the process of partitioning your hard drive. Hopefully for your peace of mind, and to laugh in the face of computer error and failure, you have backed up all the data that is important to you. I'll say it again, this process works and I have never lost data, however, prudent folk employ backups.

At the prompt type: run_qtparted

Choose your mouse, PS/2 just choose #3.

wait for it -- wait...

You are in qtparted. It's not too fancy, but then again it's just a utility. Click hda on the left-top of your screen - now look right...

In the right section of the window you have a graphical representation of your hard drive as well as a list of all your partitions beneath it. If you have only one partition, as this tutorial assumes, then you will only have one line.

Please right-click on the line of text that describes your partition. You will see a menu list (just like in Windows) appear with command options. Choose "re-size".

run_qtparted  

In qtparted you must now "commit" the task.

In the menu bar under the heading "Device" please choose "commit", tell it yes, and watch in technicolor-amazement as your hard drive is re-sized.

I don't know how many programs you have installed on your computer so I cannot begin to guess what size to recommend you shrink your partition to. A reasonable guess would be to shrink your Windows partition to 10GB. I am assuming that your kids do not have 13 games installed on the hard drive, if your box is multi user at all, and that you have the usual assortment or riffraff that the vendors like to add to their machines. Being the responsible and smart computer user that you are you have already decided how big your Windows partition needs to be. It's always better to err on the side of caution in these matters. Carpenters like to say, "measure twice, cut once."

When this quick process is complete, you will be left with plenty of room on your large hard drive to create more partitions in order to install Linux. Now, as with Windows, there are myriad methods and reasons to make any number of partitions. For example, when I ran Windows, I bought an extra hard drive to contain the Windows swap file. Windows runs better when it accesses swap from a partition other than C:\. Best if that is on another hard drive all together.

With Linux, and specifically how you will use Linux, you have too many partitioning schemes to consider. There are camps that partition their drives based on their backup strategies, which is important to consider. If you plan to serve up web sites or run a home LAN with 7 users - if you're into making movies...if you just wanna surf the web and make pretty cards for all of your relatives at their birthdays - you'll set up your partitions differently depending on how you use your computer. My guinea pig box is just a simple desktop that serves up web sites, so I partition it thus.

Whereas on some of my hard drives I have 7 or 8 partitions, on my guinea pig box I have 4 primary partitions on my master drive. This box is not dual-booting - it's strictly Linux. However, it used to be a dual-boot machine. In this tutorial we only make 3 more partitions reflecting the same 4 primary partitions. If you've got the RAM (1GB or better), you don't need swap thus you only need to make 2 partitions. Go ahead and make an extra one just to have 4 if you want...call it "refuse" and save all of your old Windows data to it.

Let's make some partitions. After you re-sized your Windows partition (you shrunk it) you will notice that now you have 2 entries for your hard drive. You will see that one of them says free space. Right click on that entry and choose "create from the menu".

In the resulting box you will choose how large and what type of file system to make the partition. This partition is for your / (root) Linux partition so let's make it 10GB (doubtful that you'll ever use it up). You can just manipulate the number that is already in the size box.

alt

Choose to make this a Primary partition and also choose to use the ext3 file system. You can call this whatever you want in the Label section, but I just call it what it is, "/".

Do the same thing for your next partition however you are going to use the bulk of your remaining free space for this one. This partition will be your /home partition, as such you need to make it large. In Linux you are not given the destructive free-reign that you are given in Windows. This is for a good reason and it is one of the many reasons why Linux is far more stable and secure than your Windows. You can't really muck your system up too badly as a regular user. This means that the only files that you are allowed privileges over are the ones in your own /home/user directory. This is a good thing.

If your drive is 60GB and you've already devoted 10GB each to Windows and /, then you will make your /home partition 39.5GB. This is assuming you have 256 to 512MB of RAM and we need a swap partition. Swap is at least double your physical RAM, so adjust all of these partition sizes accordingly. Go through the same procedure to create your /home partition; primary partition, file system, label, size, et al.

The remaining space will be devoted to the Linux-Swap partition. If you have a 60GB drive you have about 500MB left over so that's the size of SWAP. As I wrote earlier, if you have 1GB or better of RAM you don't need a SWAP file. Go ahead and create the swap partition now.

alt

For a 60GB drive with 4 primaries including the swap and 512 MB of RAM this is how I might set up the hard drive:

   Device    Boot      Partition Size	Partition	System
/dev/hda1     *           10GB		NTFS		Windows
/dev/hda2                 10GB		/     - ext3	Linux
/dev/hda3              	  19GB		/home - ext3	Linux
/dev/hda4                 1GB		Swap		Linux

OK - you've re-sized your partition, committed it, and now you've just made 3 more partitions. go ahead and "commit" this action. After you are finished you will see that the original rectangular representation of your hard drive now has 4 divisions of various sizes within it. Terrific - the house didn't explode, your car still works, life is sweet. Shake it off.

When you have finished the only thing left to do is to reboot to install Linux (Debian). It is OK, though, if you want to reboot to go back into Windows. After all you did save it and I can respect your reasons for maintaining Windows. Well, some of them anyway. The important thing is that you have performed an administrative task on your computer. Light 'em up if you've got 'em.

Next, I will write a tutorial showing you how to install the last Operating System you will ever use (on an x86 platform, anyway), Debian.

Related Links and Articles:
Install Debian GNU/Linux - Etch
Resizing An Existing Partition On A Single Hard Drive
Create Partitions

machiner 23 Apr 05  Discuss in Forum

Comments
Add New
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly:
:dry::lol::kiss::D:pinch::(:shock:
:X:side::):P:unsure::woohoo::huh:
:whistle:;):s:!::?::idea::arrow:
 
Guest   |203.197.74.xxx |2005-11-14 01:03:26
:zzz igh
Guest  - i got a problem   |71.126.59.xxx |2006-05-11 11:30:45
man i just installd debian sarge next to windows.
one day later i was on windows and i gave the system a
reboot,so i can go to debian.but it just
go's in to a shell and my root is gone and the shell start with
"can't access tty"
what happend
Guest  - how you should handle this   |71.126.59.xxx |2006-05-11 11:32:44
Hello,

I would be happy to help you but posting a comment like this won't help. Contact me through the
contact page with some details and we'll see what we can't get done.

--machiner
'Guest'  - i got problem, qrparted dont start   |202.186.7.xxx |2006-08-08 18:28:04
i want to resize fat32 on my laptop. after the menu choose your mouse appear, i opt for 1, usb mouse. then
nothing happend. i simply propted with the shell again..
what wrong?
'Guest'  - What do we use in 2007 ?   |71.162.76.xxx |2007-05-28 17:11:17
Is this info still vaild ? Is there something new ? Modern debain installers can do ersizing by installer GUI
i think.
Are they just using qtparted / gparted ?
How about NTFSresize ? And hwo about Vista ? Is there
something special ?

It would be ncie to have some update notes, this page is in the top 10 og google you
know


EDIT: Yes, the info is still valid. It will be for a few more years. You can certainly
use the installer to handle partitions, but old habits die hard. Did you say "vista"? Pffft. Oh, all
my pages are in top 10 at Google. A great deal come in at 1-3 as well.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Saturday, 21 February 2009 14:41