From Windows to a Debian GNU/Linux desktop, sans the geekness
The Original - since June 2006 - Run Debian GNU/Linux and be Happy.
Sometimes your system time will go screwy. Fix it right up with the following command:

# dpkg-reconfigure tzdata

 

this site  web    
The Goods
Home Page
Forum
debiantutorials.org Licensing
Website Disclaimer
Site Map
Links
w32codecs
How to really switch Mom to Linux
Documentation
Release Notes
Developers Reference
Debian Survival Guide
Debian Books
Manuals
Debian Security
Linux Dictionary
Leaving Windows
Resize Windows Partition for Dual-Booting
Back up your Partitions, Imaging
Still Suffering Windows
Keep your Money, your Sanity and your Self-Respect
Installing Debian Etch
Debian GNU/Linux (Etch) Installation Tutorial
My Etch Desktop in 150 words or Less
Upgrade Sarge to Etch
Configure Debian Etch
Multimedia on Debian Etch
Install nVIDIA 3d driver on Debian Etch
Wireless on Debian Etch: Broadcom - bcm43xx
Klikit, Klikit good
Handy Little Things
Package Management
Peripherals & Debian Etch
Set up your web cam on Debian Etch
Printing in Debian (Browsers, too)
Your ipod on Debian Etch
Atheros Wireless
Broadcom Wireless
Etch on the Desktop
Visitors apache log reader
Andrea del Sarto
(Poetry snippet for your Ignorant Ass)
Beagle on Debian Etch
Convert Digital Camera .mov Files
Some Debian Etch System Files
My Debian Desktop
Using wget
Copying or Ripping DVD's in Linux (Debian)
Reset root password
So, you want to run Linux
Convert mov files
Securing Debian
Password Protect Grub Boot Loader
Debian Etch as Server
Debian Linux file and print server: NFS, CUPS, LPR
Stream your music with gnump3d
Simple local web server on Etch
Web Server on Debian Etch
Miscellaneous Linux
Linux Conventions
Can People read my Documents?
Install Software on your Linux System (Debian)
Partition your Hard Drive
History of debiantutorials.org
A School Without Windows (PDF)
How to talk to Tech Support
Linux Demystified
Off Topic
A DRM Dissertation
An Artist's take on Downloading Music
An Insane and Damaging lack of Understanding
On Children and Drugs
On Visitor Q
Intellectualism for the Masses
debiantutorials.org stats
Smart Crows
How old are We?
Why we run Debian
How not to ask an egomaniac like myself for an article
Sarge Specific Tutorials
Installing Debian Sarge, net install, no DHCP
Easy Graphical Sarge Installation Tutorial
Rebuilding my Debian Sarge Machine
Multimedia for Sarge
w32codecs
nVIDIA on Sarge
Trouble Burning discs: cdrecord
Athcool on Debian Sarge
Where are my Newly Installed Apps?
Easy LAMP on Debian Sarge
Archive
Sites Worth a Look
Debian Mailing List
spidercider
Linux Comparison at PolishLinux.org
Thin Clients
Common Commands
Common iptables Filtering
iwouldntsteal.net
Big-Ass iptables info Page
iptables Port Reference
README: Firewall
General Security Tips
Newbie Security
Kickass RFC's
Data Breaches
Hemp Seed Oil
linux-hardcore.com
Search for a local Computer Tech
Evelyn's Linux Cheat Sheet
Lotsa (687) Linux Commands

Favorite Utilities

Super Grub Disc
System Rescue Disc
News Feeds
visitors run
operating system
Linux
Windows
Mac
Unknown
BSD
54.8 %
39.8 %
3.40 %
1.50 %
0.10 %

web browser
Firefox
Mozilla
IE
Opera
Epiphany
41.4 %
25.1 %
15.8 %
8.40 %
3.50 %
updated 17apr08
What's Root?
Root is the super-ultra-mega. All system commands on a Linux box need to be done as root. This means installing software and changing files not in your /home directory, etc. In your terminal, if you're logged in already become root by typing su at your $ prompt, then the root password. Log in the system directly as root from a terminal, but not the graphical login. # shows root.
dediantutorials.org is ad-free
debiantutorials.org has always been and will always remain ad-free I make no unrealistic demands that you "owe me for my time and bandwidth" in order to use my site. I detest all those scumbags out there that think that they are owed something for putting a web site up. I do debiantutorials.org because I love it. You owe me nothing.
If you can walk and chew gum at the same time, you can run Linux

    Thursday, May 15, 2008      Contact  Etch Info  what's new in Etch  Linux Demystified  Our Forum
Partition your hard drive PDF Print E-mail
Managing those partitions
Written by machiner   
Sunday, 08 May 2005
There may come a time when you want to modify your hard drive(s). You might want to nuke them all, low-level-format (or not), and start again with fresh partitions, or - you're completely sick of Windows and you want to install Linux. Now you're talking.

If you want to try Linux on your computer you have a few choices.

  • try out of of those terrific Live CD Distributions. Run Linux from your CD-ROM making no changes to your computer.
  • Re-size your large windows partition to make room for more enabling you to install Linux and "dual-boot"; pick your OS at boot time.
  • Nuke Windows completely and your partition. Make some new ones.

WARNING:

This page is a bit askew in Opera.

Creating partitions on your hard drive is almost trivially easy - but don't feel bad or stupid if you mess up. Choosing the "correct" partition sizes today may be motivated by an all together different set of requirements than tomorrow.

Besides, you're the prudent type. You already saved all of the data from your Windows install that you want to keep. It's on a disc right now - so you may feel free to play around.

For those of you friendly with your keyboard, and who isn't, right? - you can check this section from a brilliantly put together how-to that I completely ripped off of this page, but they write that it's cool, thanks you guys.

This tutorial that you're reading utilizes a terrific Utility disc, it's the System Rescue Disc many have heard me tout in the past. I cannot live without this marvelous tool and we'll be using it. Go ahead and download the disc and burn it. We'll boot to it soon.

------------------Let's do this thing------------------------

[ See Getting into BIOS ]

Boot to the System Rescue Disc you just made. You will see the following prompt:

First boot prompt - system rescue disc type: menu, then enter.

Next up you'll see another prompt, arrow right, then down 3 to chose the System Rescue option:

Following, the disc will boot. In a moment you will be at the following prompt:

type: # run_qtparted, hit enter

You'll need to choose your mouse type next. For a ps/2 simply type 3, then enter. In another moment the program QTParted will be open and we can now create some partitions.

A partition already highlighted. We're nuking these.

You simply click on the left side's listing of hda to make the partitions on that hard drive appear on the right side, as in the image.

Right clicking on any listed partition will allow you to select delete from the menu you'll get. If you have a hard drive with only one partition created and available (unused) space, you can simply click on the partition listed as FREE, and right click to choose "create". We're doing that next anyway.

After you have deleted all of your existing partitions you must "commit" the deed. In the Menu bar you now choose to do so. It's under the Devices tab. Choose "commit", then choose yes at the warning.

Commit the deed

Now, let's make some partitions, shall we? For simplicity and all that, and because we're not Guru's yet, let's make 3 PRIMARY partitions. We'll make a "/" partition for your system files, a "/home" partition where the user's will store their stuff, and a small swap partition.

There are about a zillion configurations. You could make LOGICAL partitions for any and all of the system directories that your Linux system will use. For example, some folks like to have their "/usr" directory on its own partition. Terrific, more power to you. Today, we're making 3 and keeping it simple.

* Create the Partitions

On the listed FREE partition that is now clearly visible to you on the right side window of QTParted, right-click and choose "create". You'll get a dialog box. See the following thumbnails (click 'em) for a quick graphical run through of creating your different partitions:

   

Following the creation, go back to the Devices file menu and choose to "commit" again. Click OK past the warning and your partitions are created and formatted with their file systems. See, it's all very easy. Of course some things can go wrong. As I was completing this task to get some screen captures, my /home partition couldn't be formatted "ext3" for some reason. I got some error. So, I simply chose the Reiser file system to get through the process. That's why in the finished screen capture coming up you will see that the partition has a blue border in the graphical display.

I never got such an error when doing this for real. Right now I am doing this through an emulator. Emulators kick-ass.

After you have created your partitions you must make the first one (hda1) "active" or start-able. Simply click on the partition, and from the menu choose "Make Active", then commit the task. After that process complete you are finished:

All set.

Exit the program. You may now choose to "reboot" at the command prompt you return to and pop in your Debian GNU/Linux installation disc. You're well on your way now....See Linux Tutorial: Graphical Debian Installation Guide

machiner 8 may 05


 

Check out this brilliant fdisk tutorial section that I ripped off: ( top of page )

5.1. fdisk usage

fdisk is started by typing (as root) fdisk device at the command prompt. device might be something like /dev/hda or /dev/sda (see Section 2.1.1). The basic fdisk commands you need are:

p print the partition table

n create a new partition

d delete a partition

q quit without saving changes

w write the new partition table and exit

Changes you make to the partition table do not take effect until you issue the write (w) command. Here is a sample partition table:

Disk /dev/hdb: 64 heads, 63 sectors, 621 cylinders
Units = cylinders of 4032 * 512 bytes
 
   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1       184    370912+  83  Linux
/dev/hdb2           185       368    370944   83  Linux
/dev/hdb3           369       552    370944   83  Linux
/dev/hdb4           553       621    139104   82  Linux swap
The first line shows the geometry of your hard drive. It may not be physically accurate, but you can accept it as though it were. The hard drive in this example is made of 32 double-sided platters with one head on each side (probably not true). Each platter has 621 concentric tracks. A 3-dimensional track (the same track on all disks) is called a cylinder. Each track is divided into 63 sectors. Each sector contains 512 bytes of data. Therefore the block size in the partition table is 64 heads * 63 sectors * 512 bytes er...divided by 1024. (See 4 for discussion on problems with this calculation.) The start and end values are cylinders.

5.2. Four primary partitions

The overview:

Decide on the size of your swap space (see Section 4.4) and where it ought to go (see Section 4.4.3). Divide up the remaining space for the three other partitions.

Example:

I start fdisk from the shell prompt:

# fdisk /dev/hdb 
which indicates that I am using the second drive on my IDE controller. (See Section 2.1.) When I print the (empty) partition table, I just get configuration information.
Command (m for help): p

Disk /dev/hdb: 64 heads, 63 sectors, 621 cylinders
Units = cylinders of 4032 * 512 bytes
I knew that I had a 1.2Gb drive, but now I really know: 64 * 63 * 512 * 621 = 1281982464 bytes. I decide to reserve 128Mb of that space for swap, leaving 1153982464. If I use one of my primary partitions for swap, that means I have three left for ext2 partitions. Divided equally, that makes for 384Mb per partition. Now I get to work.
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)

p
Partition number (1-4): 1
First cylinder (1-621, default 1):<RETURN>
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-621, default 621): +384M
Next, I set up the partition I want to use for swap:
Command (m for help): n

Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (197-621, default 197):<RETURN>
Using default value 197
Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +128M
Now the partition table looks like this:
   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1             1       196    395104   83  Linux
/dev/hdb2           197       262    133056   83  Linux
I set up the remaining two partitions the same way I did the first. Finally, I make the first partition boot-able:
Command (m for help): a
Partition number (1-4): 1
And I make the second partition of type swap:
Command (m for help): t
Partition number (1-4): 2

Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap)      
Command (m for help): p
The end result:
Disk /dev/hdb: 64 heads, 63 sectors, 621 cylinders
Units = cylinders of 4032 * 512 bytes
 
   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1       196    395104+  83  Linux
/dev/hdb2           197       262    133056   82  Linux swap
/dev/hdb3           263       458    395136   83  Linux
/dev/hdb4           459       621    328608   83  Linux          
Finally, I issue the write command (w) to write the table on the disk.





Reddit!Del.icio.us!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!
Trackback(0)
Comments (4)Add Comment
commit button
written by Guest, June 30, 2006
I followed your instructions and encountered the same problem after pushing the commit button:

The \'/home\' partion gave an mkfs.ext3 failure.

I created it again, right-clicked it, chose \'Format\' and all went wel. javascript:ac_smilie(\':)\')
What about a second drive
written by 'Guest', July 28, 2006
i followed the instructions above for partitioning a second drive. everything looked ok. when i rebooted into the OS, i expected to seel a drive or folder with the volume name when i browse the file system. no luck. where is it? what should i bee looking for? what might i have done wrong?
/etc/fstab, and stuff
written by 'Guest', July 30, 2006
You\'ll have to mount the partition. As well, should you like the partition to appear for you when you boot your computer you\'ll need to ad an entry to your /etc/fstab file.

Are you running windows? If so -- you cannot see the partition, it doesn\'t read Linux file systems...without help.

If you need specific help it\'s probably better to email me or ask some questions on your favorite Debian forum. I\'ll help all that I can but comments aren\'t the best place for conversation. Use my contact page for better results.

--machiner
Partitions
written by 'Guest', April 29, 2007
My 12GB laptop still has 4GB tied up in Win2000 which I have \"saved\" every which way I can think of (partimage, dd etc.), but ntfsclone throws an error so I didn\'t get it to work.

\'couldn\'t figure out how to get rid of the ntfs partition even if I wanted to until I found this article which motivates me to try this approach.

Write comment

security code
Write the displayed characters


busy
 
Creative Commons License © debiantutorials.org Thanks for dropping by. I hope you have found this site to be helpful.   Search for a local Computer Tech  debiantutorials.org