From Windows-Wimp to Command-Line Warrior. Part 5: Making some disk space

25 August 2005

If you are installing on a spare computer that you don't need to keep Windows on then you can just install Gentoo over the top, destroying Windows in the process.

Otherwise you need to make some space for Gentoo to live alongside Windows. A small program called Grub will give you a menu when you boot to choose between them.

How much space? The more the better, 10-40Gb would be very comfortable. 1.5 Gb would be an absolute minimum, 500Mb or below is theoretically possible but requires a lot of messing about so is not recommended. There are three ways to go about it, in increasing orders of pain!

  1. Add a new hard-drive

If you have a desktop, a nice easy solution is to slap another hard-drive into the machine; you can pick one up for say £30 or less. Then one can be for Windows and one for Gentoo. It is unlikely that you can add another internal drive to a laptop.

  1. Re-using spare partitions

Sometimes a computer that comes with Windows will have the hard-drive split into more than one partition. If you look in 'My Computer' and find that you have, say, C and E (with D being the CD Drive), then you could use some of the space represented by E. I was faced with this situation recently while helping someone. This is my method a- make sure that you move everything from drive E to C so that E is empty. b- delete E using fdisk (or cfdisk). c- repartition the disk. This is the plan that I used (for an 80Gb Drive):

hda1 - 20Gb - NTFS - Windows XP (C:) hda2 - 20Gb - FAT32 (vfat) - Shared drive between Windows and GNU/Linux (E: in Windows and /home/user/shared in GNU/Linux) hda3 - 1 Gb - Swap - GNU/Linux Swap drive (hda4 - 0 - - Logical Extension Table) hda5 - 30Mb - ext2 - GNU/Linux Boot hda6 - 38Gb - ext3 - GNU/Linux Root

Update: Note that the shared space is not really required anymore as there are now drivers available that will let you read your Windows partition from Linux and your Linux partition from Windows.

  1. Repartitioning space

You may be faced with one hard-drive that is just one partition called C:. Your only option here may be to resize it. Before doing anything to your hard-drive back up all your personal data and make sure you have all your Windows and Office disks close to hand just in case since the Windows file- system NTFS is known to be a bit buggy and things could go wrong requiring Windows to repair itself using the disks.

Strangely, Windows XP comes with no disk resizing utility. There are however many ways to go about this, keep Googling and reading until you are comfortable.

Another option is to use the parted command-line utility on the Gentoo install CD.

On the Gentoo LiveCD there is a program called parted that will resize your NTFS partition for you. However, if you are completely new to Linux you might want to download and burn the gparted LiveCD, where you can resize your partitions graphically. This would be my recommendation but requires another blank CD

Another way is to download a shareware program called "partition magic" that can resize it for you, but I have never really tried it.

For FAT32 partitions, you can download a special boot floppy called FIPS that will do the job for you:

> The idea is to move all the data on the partition to the beginning, before changing the partition information, so that nothing will be lost. It is important that you do as little as possible between the data movement and repartitioning to minimize the chance of a file being written near the end of the partition as this will decrease the amount of space you can take from the partition.

The first thing needed is a copy of fips which is available in the tools/ directory on your nearest Debian mirror. Unzip the archive and copy the files RESTORRB.EXE, FIPS.EXE and ERRORS.TXT to a bootable floppy. A bootable floppy can be created using the command sys a: under DOS. fips comes with very good documentation which you may want to read. You will definitely need to read the documentation if you use a disk compression driver or a disk manager. Create the disk and read the documentation before you defragment the disk.

The next thing needed is to move all the data to the beginning of the partition. defrag, which comes standard with DOS 6.0 and later, can easily do the job. See the fips documentation for a list of other software that may do the trick. Note that if you have Windows 9x, you must run defrag from there, since DOS doesn't understand VFAT, which is used to support for long filenames, used in Windows 95 and higher.

After running the defragmenter (which can take a while on a large disk), reboot with the fips disk you created in the floppy drive. Simply type a:fips and follow the directions.

Note that there are many other other partition managers out there, in case fips doesn't do the trick for you. (Taken from 3.5. Pre-Partitioning for Multi-Boot Systems, Debian GNU/Linux Installation Guide, )

Sorting out Windows is by far the most complicated part of this series, if you can do this then nothing else here will be beyond you.

What do you have to say?

Show Editing Help

About

Hello, my name is Zeth, I'll be your host here.

Command Line Warriors is about taking control of your own technology, it looks at our experiences of computing; especially using GNU/Linux, the Python programming language, the command-line and issues such as techno-ethics, best practices and whatever is cool now. If you take control of your technology then you are a Warrior too!

This site is your site too which means that you can contribute and get involved. You can leave comments using the facility provided. For me, the comments and discussions are by far the best part of the site. So please do have your say!

Latest Discussions

Essex Web Design

September 3, 2010
A lot of contract providers give you free internet usage now, but if you have Pay As You Go, then you are going to be paying heavy prices.
Calling time on mobile internet nonsense?

Krasochka

September 2, 2010
Hack again?!
Adding more terminals to your function keys

GenryFlorist

September 2, 2010
<b>Cheap flowers delivery around the world!</b> Celebrate summer with our gorgeous flowers. They?re the perfect gift for any summer occasion. From birthdays to anniversaries, we offer beautiful flowers, lush plants, ...
Burning an iso to CD on Windows

auto-financing.co.cc

September 2, 2010
auto-financing
ReStructuredText tables and doctests

rubaxa

September 1, 2010
FTP = NOT RANDOM software Dominated hands postflop suckout often on all-ins. EX. AK vs. A9 or KQ vs. K6. Both players hit top pair. Bad player goes all in ...
Burning an iso to CD on Windows

empodayaddelm

September 1, 2010
Sorry admin - my post is test
This Week: Heroes and Monsters

increase synthroid dosage

September 1, 2010
Latest world news: 1 <a target="_blank" class="ext" href=http://www.maktabti.org/profiles/blogs/viagra-cialis-buy-no>buy cheap cialis generic levitra viagra</a> Viagra 2 <a target="_blank" class="ext" href=http://www.maktabti.org/profiles/blogs/buy-viagra-online-at-lowest>rainbowpush discussion board buy viagra</a> Viagra 3 <a target="_blank" class="ext" href=http://www.maktabti.org/profiles/blogs/how-to-get-generic-brand>search viagra ...
SFTP in Python: Paramiko

Lacilslaw

September 1, 2010
HYUN JAIMIE enniless and homele JAMILA
This Week: Heroes and Monsters

domaserisk

August 31, 2010
who was shaking his head back and forth knowingly Grissom shifted his eyes over at Brass,
How I Removed Windows from my Laptop

get ready loan

August 30, 2010
Though, by the you kill the legitimate PC user from visiting the site. Also, think about the dynamic IP's issue.
Only the penitent man will pass - on captchas and cotton wool

Packers and movers in pune

August 30, 2010
The topic you disscussed here is very amazing, informative and useful in future...
On Comment Spam

serhanters1

August 30, 2010
?? ???????? ??... ??????...... ??. ????????? ??? ??? ???????D ???????? ??. ????? ????? ???? ??? ???=) ?? ?????- http://letitbit.net/download/8746.894a84bc20f38f1661895aeee0/stereokartinki.html ???http://f-zona.ru ? ? ?? ????????????
Burning an iso to CD on Windows

strona startowa

August 29, 2010
Thanks For This Post, was added to my bookmarks.
Python CGI contact forms

lerexottori

August 29, 2010
?????????????? ??????????
Adding more terminals to your function keys

KelpAugmeme

August 29, 2010
aofaapsymp, http://forums.quark.com/members/jennaq.aspx online stock trading broker, rdgofzary
PuTTY Series: Adding PuTTY to your system path

Cheeday

August 28, 2010
What flowers do you like?
This Week: Heroes and Monsters

magfcvb

August 28, 2010
??????? ?????????????? ?????? - ????? ?????? ?????????????? ??????, ?????????????? ?????? ???????, ?????????????? ?????? crosman, ???? ??????????????? ??????, ?????????????? ?????? ?????? ????????. ???? magazin-oruzhie.ru
Include ODF support in the Linux Standard Base?

noni

August 28, 2010
I find myself coming to your blog more and more often to the point where my visits are almost daily now!
On Comment Spam

Latenadsfes

August 28, 2010
http://mynewblog.for-breastcancer.com/ http://mynewblog.photoblogcentral.com/ http://ilovezebras.thechicks.org/ http://mynewblog.cyberbardsymposium.com/ http://wewphost.com/ilovezebras/
Burning an iso to CD on Windows

LeupoldEst

August 28, 2010
pretty cool stuff here thank you!!!!!!!
OOXML Vote Coverage