Differences between revisions 1 and 15 (spanning 14 versions)
Revision 1 as of 2008-12-21 21:49:04
Size: 7865
Editor: jdd
Comment:
Revision 15 as of 2009-08-11 12:29:11
Size: 14015
Editor: jdd
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This is a very preliminary HOWTO Template
Line 3: Line 2:
#pragma section-numbers off
#format html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Benefits of Logical Volume Management on a Small System</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="LVM HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="What is Logical Volume Management?"
HREF="c172.html"><LINK
REL="PREVIOUS"
TITLE="What is Logical Volume Management?"
HREF="c172.html"><LINK
REL="NEXT"
TITLE="Benefits of Logical Volume Management on a Large System"
HREF="x209.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>LVM HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="c172.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 2. What is Logical Volume Management?</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x209.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="benefitsoflvmsmall"
>2.2. Benefits of Logical Volume Management on a Small System</A
></H1
><P
>&#13; One of the difficult decisions facing a new user installing Linux
        for the first time is how to partition the disk drive. The need to
        estimate just how much space is likely to be needed for system
        files and user files makes the installation more complex than is
        necessary and some users simply opt to put all their data into one
        large partition in an attempt to avoid the issue.
      </P
><P
>&#13; Once the user has guessed how much space is needed for /home /usr /
        (or has let the installation program do it) then is quite common
        for one of these partitions to fill up even if there is plenty of
        disk space in one of the other partitions.
      </P
><P
>&#13; With logical volume management, the whole disk would be allocated
        to a single volume group and logical volumes created to hold the /
        /usr and /home file systems. If, for example the /home logical
        volume later filled up but there was still space available on /usr
        then it would be possible to shrink /usr by a few megabytes and
        reallocate that space to /home.
      </P
><P
>&#13; Another alternative would be to allocate minimal amounts of space
        for each logical volume and leave some of the disk unallocated.
        Then, when the partitions start to fill up, they can be expanded as
        necessary.
      </P
><P
>&#13; As an example:
        
        Joe buys a PC with an 8.4 Gigabyte disk on it and installs Linux
        using the following partitioning system:
        <PRE
CLASS="screen"
>&#13;/boot /dev/hda1 10 Megabytes
swap /dev/hda2 256 Megabytes
/ /dev/hda3 2 Gigabytes
/home /dev/hda4 6 Gigabytes
        </PRE
>
        This, he thinks, will maximize the amount of space available for all his MP3
        files.
      </P
><P
>&#13; Sometime later Joe decides that he want to install the latest
        office suite and desktop UI available but realizes that the root
        partition isn't large enough. But, having archived all his MP3s
        onto a new writable DVD drive there is plenty of space on /home.
      </P
><P
>&#13; His options are not good:
      </P
><P
></P
><OL
TYPE="1"
><LI
><P
>&#13; Reformat the disk, change the partitioning scheme and
            reinstall.
          </P
></LI
><LI
><P
>&#13; Buy a new disk and figure out some new partitioning scheme
            that will require the minimum of data movement.
          </P
></LI
><LI
><P
>&#13; Set up a symlink farm on / pointing to /home and install the new
            software on /home
          </P
></LI
></OL
><P
>&#13; With LVM this becomes much easier:
      </P
><P
>&#13; Jane buys a similar PC but uses LVM to divide up the disk in a similar
        manner:
      </P
><PRE
CLASS="screen"
>&#13;/boot /dev/hda1 10 Megabytes
swap /dev/vg00/swap 256 Megabytes
/ /dev/vg00/root 2 Gigabytes
/home /dev/vg00/home 6 Gigabytes
 Partition-Mass-Storage-Dummies-Linux-HOWTO
Line 173: Line 4:
         </PRE
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13; boot is not included on the LV because bootloaders don't
          understand LVM volumes yet. It's possible boot on LVM will
          work, but you run the risk of having an unbootable system.
        </P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>root on LV should be used by advanced users only</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13; root on LVM requires an initrd image that activates the root
          LV. If a kernel is upgraded without building the necessary
          initrd image, that kernel will be unbootable. Newer
          distributions support lvm in their mkinitrd scripts as well
          as their packaged initrd images, so this becomes less of an
          issue over time.
        </P
></TD
></TR
></TABLE
></DIV
><P
>&#13; When she hits a similar problem she can reduce the size of /home by
        a gigabyte and add that space to the root partition.
      </P
><P
>&#13; Suppose that Joe and Jane then manage to fill up the /home
        partition as well and decide to add a new 20 Gigabyte disk to their
        systems.
      </P
><P
>&#13; Joe formats the whole disk as one partition (/dev/hdb1) and moves
        his existing /home data onto it and uses the new disk as /home. But
        he has 6 gigabytes unused or has to use symlinks to make that disk
        appear as an extension of /home, say /home/joe/old-mp3s.
      </P
><P
>&#13; Jane simply adds the new disk to her existing volume group and
        extends her /home logical volume to include the new disk. Or, in
        fact, she could move the data from /home on the old disk to the new
        disk and then extend the existing root volume to cover all of the
        old disk.
      </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="c172.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x209.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>What is Logical Volume Management?</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c172.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Benefits of Logical Volume Management on a Large System</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
||6||2009-04-05 08:38:51||jdd||adding forgotten HOWTO header for wiki||
||5||2009-04-05 08:35:01||jdd||adding link to the Partitions-and-mass-storage-HOWTO||
||4||2009-03-30 18:34:19||jdd||remove headers to render to docbook||
||3||2009-03-30 18:07:40||jdd||
||2||2009-03-30 17:58:09||jdd||
||1||2009-03-30 17:54:21||jdd||title change from sub page to full page (done with copy/paste)||

= Partition-Mass-Storage-Dummies-Linux-HOWTO =
copyright (c) 2009 Jean-Daniel Dodin
This HOWTO is about partitionning usual mass storage that can be magnetic rotating hard drives or Solid State Drives (SSD - including flash cards or USB keys).
Writing the Partition HOWTO, I noticed that, as of year 2009, at least, partitionning is very complicated. However, most partitionning tasks can be done very easily with the appropriate tools, so this HOWTO for any people that want to understand the partitionning without going too deeply inside.
A more complete partition use description can be found on the Partitions-and-mass-storage-HOWTO,[[http://wiki.tldp.org/Partitions-and-mass-storage-HOWTO#|available for example here]]

= Licence =
{{{ Permission is granted to copy, distribute and/or modify this
      document under the terms of the GNU Free Documentation License,
      Version 1.2 or any later version published by the Free Software
      Foundation; with no Invariant Sections, no Front-Cover Texts and
      no Back-Cover Texts. A copy of the license is included in the
      section entitled "GNU Free Documentation License". }}}
[[http://wiki.tldp.org/LdpWikiDefaultLicence#GNUFreeDocumentationLicense|GNU Free Documentation License]]

= Definitions =

== Disks ==
Disks are usually made of rotating plates, read by magnetic heads. Tracks are circular parts of the plates. As we may have several plates, a stack of plate is seen as a cylinder. All the heads are moved at the same time, reading each it's track. All the tracks read at the same time are a cylinder as well.
Each track is divided as sectors that can be 512 or 4k bytes long.
So Mass Storage disks are nearly always described as "CHS", that is Cylinders number, Heads number, Sectors by track number, and the product of all these numbers gives the visible disk size.
However, this have no meaning for SSD and even with true rotating hard drive, the CHS have absolutely no more any meaning! It keeps using only by inertia... so don't worry too much about these numbers, and if possible ignore them.

== Partitions ==
Partition is from "part". A partition is a part of a drive with some special attributes.
Computers makers seems pretty dumb when seeing how they keep underestimating the possible next disk size, so each year they have to issue a new standard. Disks firmware are buggy, so the software tools have to fix them - and do quite well the job.
That is to say that understanding fully why the Partitionning tool choose to create the partitions the way they do is very complex. It's explained fully (or mostly) on the Partitions-and-mass-storage-HOWTO, you probably won't read and don't have to now.
Windows makes little use of partitions. One can install as many Windows version he wants on the same partition (and often do). It may even proove difficult to install Windows on just an other drive on the same computer.
Nor Unix nor Linux have any such problem. Just on the contrary, Linux '''love''' to use at least three partitions. This mean you can have as many Linux on your drive as you want, each on it's special part(ition) of the drive, erase the partition without losing your data (backup first is still better) for example. The two main Linux partitions are used for the system ("/" or "root") and the users data ("home"). The third ("swap") is used to add some more memory and is written directly sector by sector by the system. You usually don't even see it.

= Making Room for Linux =

== Using Windows ==
Most of the time, your computer come with a paid Windows. If you are not an experienced Linux User, it's probably better to keep this Windows, just for safety in case you have to show your computer to the vendor tech (If your vendor is Linux fiendly you are lucky!). So you have to make room for your prefered Linux.
If You have Windows XP, little luck. Most XP computers come with only one partition on the disk and XP don't know how to make it smaller (If you have two, see the next paragraph). What you have to do is to "defragment" the drive (look in disk properties, you will probably have to "verify" the drive first) - if the computer is brand new and never used, this is not necessary. The "defragmentation" makes the work easier for the Linux partitionner.
If you have Windows Vista, go to Control center, Administration tools, Disk tools to see the actual disk partitionning. If you have luck, may be there is yet a "data" partition. If so, you have just to look where is this partition located and what it's size is. It will be used for Linux.
If not, clic right on the system disk partition rectangle, you will see a resize option. Use it. Keep some room for Vista (50Gb, for example) and OK, you have now several partitions on your drive.
If you see in this screen a small partition (usually around 9Gb), be specially cautious. This is the "system restore partition" that holds the Windows Vista (or XP) original system. Your computer manual should explain how to copy this to two DVD's. Do this before any use of your computer. Make notice of the size and place of this partition (it can be at the very beginning of the drive or at the very end), try to not erase it right now. Don't erase it during the computer insurance time.

== Using Linux ==
You, as a dummy Linux user, have better use a very well known Linux Distribution. There are more than a hundred Linux distributions and I don't have used all of them, of course, so I can't be sure some of them couldn't erase your drive if ever you don't understand a question.
However I'm rather sure Ubuntu, openSUSE, Mandiva, Red Hat Fedora, new Debian can be reasonably safe for a beginner.
So launch the Linux install. Probably you will have to insert a Cd or DVD and run. May be you will install immediately or launch a live system (Linux working from memory, not from drive), then install froms there.
Anyway, you will have to answer some basic questions and at a moment you will be asked if you want to keep windows or erase it. Beleive me, keep it for now, it will be easy to remove later.
At this moment you will be presented a screen with a graphic of the proposed disk partitions. Scan it to verify the Windows partition is not touched - not formatted. It is probably labelled "NTFS" or "Windows". Verify also that the Windows system backup partition is not touched. It may not have any identified label. In some partitionner, the partition table may be called '''Disklabel''' .
You may have to give Linux the name or position of the Vista partition created on the previous step. If your Windows is XP, you will be proposed to shrink the Windows Partition '''this is good''' .
Then accept the partitionning sheme your distribution proposes. '''Do not try to be an expert''' . At install time, no good Linux Partition tool should erase a Windows system partition. If it does, write me, I will include a notice here.
Modern Linux distributions are perfectly able to resize a Windows partition to make room to Linux. Let some room to Windows, though, if you plan to use it.
So, in summary, '''trust your Linux install''' . Most install problems are user's problem, not Linux Distribution problems!!
Do '''not''' try "LVM" or "RAID" for your first install. To use these things, read the hole Partitions-and-mass-storage-HOWTO.

= Images of the partitionning tools =

== Windows XP ==
Here you can see the XP tool for partitionning (french version). The partition is the dashed c: rectangle. You can see the contextual menu (right clic) with no resizing - the resizing option can be seen only in the Vista similar menu.

||{{images/capture7.jpg}}||
||XP partitionning||

If the computer used Windows for a while, you will have to '''verify''' and '''defragment''' the disk. This is found in the disk context menu, tab "tools". Defragmenting is re-organising the files in the disk. On the picture below, you see a badly fragmented disk. Vertical lines are files. To be able to shrink the partition with the Linux tools, you must have a large blank on the right of the rectangle on the defrag window. Even only one file on the right prevents resizing.
If you can't resize, you can only backup all your data, make the partitionning (with Parted magic, for example), deleting all the disk, reinstall XP then install Linux. Given you will probably have to reinstall Windows from time to time, you can use this moment to make room for Linux.

||{{images/capture11.jpg}}||
||Defragmenting||


== Parted Magic ==
Parted Magic is a CD or USB key utility extremely usefull if you have to deal with partitions (find it with web search Probably[[http://partedmagic.com/|]] ). It allows repartitonning, resizing of partitions (if possible), and even search for lost partitions if you happen to have trashed your partition table (experts only). Do not confuse Parted Magic (free and open source) with the proprietary program Partition Magic (expensive).
This tool is by far the more friendly. If you read this HOWTO you are probably not as Dummy as you may think, at least you are curious. So you may have benefits to use Parted magic at least to make one free partition the Linux installer will easily find and use (and certainly repartition again, that's normal).
Here is the booting screen, you should be able to boot any computer with this CD.

||{{images/capture14.jpg}}||
||Parted Magic||

You start a graphical screen, as usual. You have icons at the bottom of the screen, clic to use. The partitionning tool is gparted, a very friendly tool. Notice gparted gives you immediately the free space in the Windows partition (the images here is that of a very small disk - only 8Gb).

||{{images/capture15.jpg}}||
||Parted Magic||

Right clic on the desired partition gives you the needed options.

||{{images/capture16.jpg}}||
||Parted Magic||

In the resizing window, you can resize with the mouse (moving the partition limit with the mouse), or give a numerical value.

||{{images/capture17.jpg}}||
||Parted Magic||

Here is a view of a much bigger disk.

||{{images/capture19.jpg}}||
||Parted Magic||

On the same Parted Magic CD, you have also other tools, like "Testdisk". This one is much less friendly, but also very powerfull (and being so allow easily to destroy your disk). You will be able to use it sometime in the future, not now.

||{{images/capture18.jpg}}||
||Parted Magic||


== openSUSE ==
openSUSE is a friendly Linux Distribution, trying to reduce as much as possible the risk of removing accidentally files on the disk while installing.
If you insert the openSUSE DVD in your drive when Windows is running, the DVD starts and propose to install Linux. It creates a special Windows starting menu and reboot to the install without any work to do for the user.
On this first image, openSUSE warns that it's not possible to resize the XP disk, you have to remove it entirely if you want to install Linux.

||{{images/capture8.jpg}}||
||openSUSE||

After I did quite a long cleaning work (including removing of unusefull files) on the XP disk, from inside XP, the diagnostic is better:

||{{images/capture12.jpg}}||
||openSUSE||


== Mandriva ==
Mandriva is even simpler, the options are to remove Windows or to use part of the drive.

||{{images/capture20.jpg}}||
||Mandriva||

If you choose this solution, you have a windows to select what part of the disk is for XP, what part for Linux, as usual.

||{{images/capture21.jpg}}||
||Mandriva||


== Fedora ==
Red Hat was the first really handy Linux Distribution, but for many years now, it's no more aimed to John Doe but to professionals (with the associated support and price). It's average user conterpart is Fedoraproject.
Fedora can be dowloaded as a live CD, you start it (no boot options) and then clic on an icon to begin the installation.
On the partitionning screen, Fedora give a drop down list of the choices possible, one is resizing (here the french screen)

||{{images/capture24.jpg}}||
||Fedora||

The following screen is for the size, as usual.

||{{images/capture25.jpg}}||
||Fedora||


== Ubuntu Desktop ==
Ubuntu also have a friendly screen to resize partitions, but one have to go to "manual" to find it, what can be a little scary.

||{{images/capture26.jpg}}||
||Ubuntu||

It's the "edit" button that allows resizing. Do '''not''' format the XP main partition! This would erase all the content.

||{{images/capture27.jpg}}||
||Ubuntu||


== Debian ==
Debian is now as pretty as most distributions. The boot menu (first CD) gives more options than many - this is not a live CD.

||{{images/capture28.jpg}}||
||Debian||

The partitionner. Choices are the same as Ubuntu does (Ubuntu is built upon Debian).

||{{images/capture29.jpg}}||
||Debian||

"Manual" have the resize option.

||{{images/capture30.jpg}}||
||Debian||

You have to give a number - no slide, no view of the free space.

||{{images/capture31.jpg}}||
||Debian||


== Others ==
Many Linux distributions are availalble, for example from[[http://distro.ibiblio.org/pub/linux/distributions/|ibiblio]] . If any of these distributions uses gparted, it's possible very easily to partition a drive with them, as we could see with Parted magic. Here the example of '''Puppy''' Linux.

||{{images/capture32.jpg}}||
||Puppy||

This distributions may be a bit more difficult to understand, but it installs is extremely low end hardware (256Mb ram for live cd, 2GB Hard drive).
  • Partition-Mass-Storage-Dummies-Linux-HOWTO

6

2009-04-05 08:38:51

jdd

adding forgotten HOWTO header for wiki

5

2009-04-05 08:35:01

jdd

adding link to the Partitions-and-mass-storage-HOWTO

4

2009-03-30 18:34:19

jdd

remove headers to render to docbook

3

2009-03-30 18:07:40

jdd

2

2009-03-30 17:58:09

jdd

1

2009-03-30 17:54:21

jdd

title change from sub page to full page (done with copy/paste)

Partition-Mass-Storage-Dummies-Linux-HOWTO

copyright (c) 2009 Jean-Daniel Dodin This HOWTO is about partitionning usual mass storage that can be magnetic rotating hard drives or Solid State Drives (SSD - including flash cards or USB keys). Writing the Partition HOWTO, I noticed that, as of year 2009, at least, partitionning is very complicated. However, most partitionning tasks can be done very easily with the appropriate tools, so this HOWTO for any people that want to understand the partitionning without going too deeply inside. A more complete partition use description can be found on the Partitions-and-mass-storage-HOWTO,available for example here

Licence

{{{ Permission is granted to copy, distribute and/or modify this

  • document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". }}}

GNU Free Documentation License

Definitions

Disks

Disks are usually made of rotating plates, read by magnetic heads. Tracks are circular parts of the plates. As we may have several plates, a stack of plate is seen as a cylinder. All the heads are moved at the same time, reading each it's track. All the tracks read at the same time are a cylinder as well. Each track is divided as sectors that can be 512 or 4k bytes long. So Mass Storage disks are nearly always described as "CHS", that is Cylinders number, Heads number, Sectors by track number, and the product of all these numbers gives the visible disk size. However, this have no meaning for SSD and even with true rotating hard drive, the CHS have absolutely no more any meaning! It keeps using only by inertia... so don't worry too much about these numbers, and if possible ignore them.

Partitions

Partition is from "part". A partition is a part of a drive with some special attributes. Computers makers seems pretty dumb when seeing how they keep underestimating the possible next disk size, so each year they have to issue a new standard. Disks firmware are buggy, so the software tools have to fix them - and do quite well the job. That is to say that understanding fully why the Partitionning tool choose to create the partitions the way they do is very complex. It's explained fully (or mostly) on the Partitions-and-mass-storage-HOWTO, you probably won't read and don't have to now. Windows makes little use of partitions. One can install as many Windows version he wants on the same partition (and often do). It may even proove difficult to install Windows on just an other drive on the same computer. Nor Unix nor Linux have any such problem. Just on the contrary, Linux love to use at least three partitions. This mean you can have as many Linux on your drive as you want, each on it's special part(ition) of the drive, erase the partition without losing your data (backup first is still better) for example. The two main Linux partitions are used for the system ("/" or "root") and the users data ("home"). The third ("swap") is used to add some more memory and is written directly sector by sector by the system. You usually don't even see it.

Making Room for Linux

Using Windows

Most of the time, your computer come with a paid Windows. If you are not an experienced Linux User, it's probably better to keep this Windows, just for safety in case you have to show your computer to the vendor tech (If your vendor is Linux fiendly you are lucky!). So you have to make room for your prefered Linux. If You have Windows XP, little luck. Most XP computers come with only one partition on the disk and XP don't know how to make it smaller (If you have two, see the next paragraph). What you have to do is to "defragment" the drive (look in disk properties, you will probably have to "verify" the drive first) - if the computer is brand new and never used, this is not necessary. The "defragmentation" makes the work easier for the Linux partitionner. If you have Windows Vista, go to Control center, Administration tools, Disk tools to see the actual disk partitionning. If you have luck, may be there is yet a "data" partition. If so, you have just to look where is this partition located and what it's size is. It will be used for Linux. If not, clic right on the system disk partition rectangle, you will see a resize option. Use it. Keep some room for Vista (50Gb, for example) and OK, you have now several partitions on your drive. If you see in this screen a small partition (usually around 9Gb), be specially cautious. This is the "system restore partition" that holds the Windows Vista (or XP) original system. Your computer manual should explain how to copy this to two DVD's. Do this before any use of your computer. Make notice of the size and place of this partition (it can be at the very beginning of the drive or at the very end), try to not erase it right now. Don't erase it during the computer insurance time.

Using Linux

You, as a dummy Linux user, have better use a very well known Linux Distribution. There are more than a hundred Linux distributions and I don't have used all of them, of course, so I can't be sure some of them couldn't erase your drive if ever you don't understand a question. However I'm rather sure Ubuntu, openSUSE, Mandiva, Red Hat Fedora, new Debian can be reasonably safe for a beginner. So launch the Linux install. Probably you will have to insert a Cd or DVD and run. May be you will install immediately or launch a live system (Linux working from memory, not from drive), then install froms there. Anyway, you will have to answer some basic questions and at a moment you will be asked if you want to keep windows or erase it. Beleive me, keep it for now, it will be easy to remove later. At this moment you will be presented a screen with a graphic of the proposed disk partitions. Scan it to verify the Windows partition is not touched - not formatted. It is probably labelled "NTFS" or "Windows". Verify also that the Windows system backup partition is not touched. It may not have any identified label. In some partitionner, the partition table may be called Disklabel . You may have to give Linux the name or position of the Vista partition created on the previous step. If your Windows is XP, you will be proposed to shrink the Windows Partition this is good . Then accept the partitionning sheme your distribution proposes. Do not try to be an expert . At install time, no good Linux Partition tool should erase a Windows system partition. If it does, write me, I will include a notice here. Modern Linux distributions are perfectly able to resize a Windows partition to make room to Linux. Let some room to Windows, though, if you plan to use it. So, in summary, trust your Linux install . Most install problems are user's problem, not Linux Distribution problems!! Do not try "LVM" or "RAID" for your first install. To use these things, read the hole Partitions-and-mass-storage-HOWTO.

Images of the partitionning tools

Windows XP

Here you can see the XP tool for partitionning (french version). The partition is the dashed c: rectangle. You can see the contextual menu (right clic) with no resizing - the resizing option can be seen only in the Vista similar menu.

images/capture7.jpg

XP partitionning

If the computer used Windows for a while, you will have to verify and defragment the disk. This is found in the disk context menu, tab "tools". Defragmenting is re-organising the files in the disk. On the picture below, you see a badly fragmented disk. Vertical lines are files. To be able to shrink the partition with the Linux tools, you must have a large blank on the right of the rectangle on the defrag window. Even only one file on the right prevents resizing. If you can't resize, you can only backup all your data, make the partitionning (with Parted magic, for example), deleting all the disk, reinstall XP then install Linux. Given you will probably have to reinstall Windows from time to time, you can use this moment to make room for Linux.

images/capture11.jpg

Defragmenting

Parted Magic

Parted Magic is a CD or USB key utility extremely usefull if you have to deal with partitions (find it with web search Probablyhttp://partedmagic.com/ ). It allows repartitonning, resizing of partitions (if possible), and even search for lost partitions if you happen to have trashed your partition table (experts only). Do not confuse Parted Magic (free and open source) with the proprietary program Partition Magic (expensive). This tool is by far the more friendly. If you read this HOWTO you are probably not as Dummy as you may think, at least you are curious. So you may have benefits to use Parted magic at least to make one free partition the Linux installer will easily find and use (and certainly repartition again, that's normal). Here is the booting screen, you should be able to boot any computer with this CD.

images/capture14.jpg

Parted Magic

You start a graphical screen, as usual. You have icons at the bottom of the screen, clic to use. The partitionning tool is gparted, a very friendly tool. Notice gparted gives you immediately the free space in the Windows partition (the images here is that of a very small disk - only 8Gb).

images/capture15.jpg

Parted Magic

Right clic on the desired partition gives you the needed options.

images/capture16.jpg

Parted Magic

In the resizing window, you can resize with the mouse (moving the partition limit with the mouse), or give a numerical value.

images/capture17.jpg

Parted Magic

Here is a view of a much bigger disk.

images/capture19.jpg

Parted Magic

On the same Parted Magic CD, you have also other tools, like "Testdisk". This one is much less friendly, but also very powerfull (and being so allow easily to destroy your disk). You will be able to use it sometime in the future, not now.

images/capture18.jpg

Parted Magic

openSUSE

openSUSE is a friendly Linux Distribution, trying to reduce as much as possible the risk of removing accidentally files on the disk while installing. If you insert the openSUSE DVD in your drive when Windows is running, the DVD starts and propose to install Linux. It creates a special Windows starting menu and reboot to the install without any work to do for the user. On this first image, openSUSE warns that it's not possible to resize the XP disk, you have to remove it entirely if you want to install Linux.

images/capture8.jpg

openSUSE

After I did quite a long cleaning work (including removing of unusefull files) on the XP disk, from inside XP, the diagnostic is better:

images/capture12.jpg

openSUSE

Mandriva

Mandriva is even simpler, the options are to remove Windows or to use part of the drive.

images/capture20.jpg

Mandriva

If you choose this solution, you have a windows to select what part of the disk is for XP, what part for Linux, as usual.

images/capture21.jpg

Mandriva

Fedora

Red Hat was the first really handy Linux Distribution, but for many years now, it's no more aimed to John Doe but to professionals (with the associated support and price). It's average user conterpart is Fedoraproject. Fedora can be dowloaded as a live CD, you start it (no boot options) and then clic on an icon to begin the installation. On the partitionning screen, Fedora give a drop down list of the choices possible, one is resizing (here the french screen)

images/capture24.jpg

Fedora

The following screen is for the size, as usual.

images/capture25.jpg

Fedora

Ubuntu Desktop

Ubuntu also have a friendly screen to resize partitions, but one have to go to "manual" to find it, what can be a little scary.

images/capture26.jpg

Ubuntu

It's the "edit" button that allows resizing. Do not format the XP main partition! This would erase all the content.

images/capture27.jpg

Ubuntu

Debian

Debian is now as pretty as most distributions. The boot menu (first CD) gives more options than many - this is not a live CD.

images/capture28.jpg

Debian

The partitionner. Choices are the same as Ubuntu does (Ubuntu is built upon Debian).

images/capture29.jpg

Debian

"Manual" have the resize option.

images/capture30.jpg

Debian

You have to give a number - no slide, no view of the free space.

images/capture31.jpg

Debian

Others

Many Linux distributions are availalble, for example fromibiblio . If any of these distributions uses gparted, it's possible very easily to partition a drive with them, as we could see with Parted magic. Here the example of Puppy Linux.

images/capture32.jpg

Puppy

This distributions may be a bit more difficult to understand, but it installs is extremely low end hardware (256Mb ram for live cd, 2GB Hard drive).

jdd/test (last edited 2009-08-11 12:29:11 by jdd)