francis:OK!

What's the worst that can happen? Repartition and try something else. It's all a learning experience. I'll run the process on this computer, and relay the commands back to you. I can do this because everything happens in memory right up to the point of writing to disk, which you will do, and I won't. (don't want to mess up my own layout)
Some of my
readouts will be far
different from yours, as my hard drive is
1 TB, but the
process itself will be
correct. Each command will be followed by the
Enter key being pressed so I won't show that except when pressed to
accept the
default value.
We start by opening a
root terminal. If you are logged in as
root, any terminal will be a root terminal. If logged in as the
normal user open a
terminal then use
su - <Enter> then the
root password <Enter> to get a
full root terminal. The prompt will be;
[root@localhost ~]#To start the
fdisk application, and the readout;
[root@fatman ~]# fdisk /dev/sdaCommand (m for help): <-- This is the fdisk prompt. I will show the commands in blue.Command (m for help): mCommand action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help):Note that all the commands are just
single letters. Very simple to use.
Command (m for help): oBuilding a new DOS disklabel with disk identifier 0xef6a1d45.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): nCommand action
e extended
p primary partition (1-4)
pPartition number (1-4, default 1): <Enter>
<-- To accept the defaultUsing default value 1
First sector (2048-1953525167, default 2048): <Enter>
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-1953525167, default 1953525167):
+1536MCommand (m for help): pDisk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xef6a1d45
Device Boot Start End Blocks Id System
/dev/sda1 2048 3147775 1572864 83 Linux
Command (m for help):If you look at the menu you will see what each command so far used means. We first used the
o command to
create a new empty DOS partition table. Then the
n command to
add a new partition. This will be the swap partition and the size was given as
+1536 M because you
can't use
1.5G, it
doesn't take anything but
whole numbers. Finally we used the
p command to
print the partition table as it is at this stage.
Note the
Id shows as
83 Linux. The next commands will change that to
82 Linux swap / Solaris.
Command (m for help): tSelected partition 1
Hex code (type L to list codes):
82Changed system type of partition 1 to 82 (Linux swap / Solaris)
Command (m for help): pDisk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xef6a1d45
Device Boot Start End Blocks Id System
/dev/sda1 2048 3147775 1572864 82 Linux swap / Solaris
Command (m for help):Next we create the
20 GB partition to be used as the
/ partition, followed by the last partition, to be used as
/home, in which we accept both the start default and end default. The sector size for mine will be
huge because of the drive size. Yours will be more
reasonable.

Because we will be using only
three partitions on the whole drive, we will make both as
primary partitions, just as we did for the swap partition.
Command (m for help): nCommand action
e extended
p primary partition (1-4)
pPartition number (1-4, default 2): <Enter>
Using default value 2
First sector (3147776-1953525167, default 3147776): <Enter>
Using default value 3147776
Last sector, +sectors or +size{K,M,G} (3147776-1953525167, default 1953525167):
+20GCommand (m for help): nCommand action
e extended
p primary partition (1-4)
pPartition number (1-4, default 3): <Enter>
Using default value 3
First sector (45090816-1953525167, default 45090816): <Enter>
Using default value 45090816
Last sector, +sectors or +size{K,M,G} (45090816-1953525167, default 1953525167): <Enter>
Using default value 1953525167
Command (m for help): pDisk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xef6a1d45
Device Boot Start End Blocks Id System
/dev/sda1 2048 3147775 1572864 82 Linux swap / Solaris
/dev/sda2 3147776 45090815 20971520 83 Linux
/dev/sda3 45090816 1953525167 954217176 83 Linux
Command (m for help):That should represent the partition table we want. All that is left is to give the
w command to
write table to disk and exit. I can't show you the readout for that, because I will be using the
q command to
quit without saving changesCommand (m for help): wYou should be returned to your normal
root prompt at this point. To check the
written partition table use the
fdisk -l command.
When you finish this part,
post your results, then we can
format and
label each partition.