On Wed, May 31, 2000 at 09:36:01AM -0400, [EMAIL PROTECTED] wrote:
-> On 30 May, Civileme wrote:
-> > 
-> > There is another problem associated with this....
-> > 
-> 
-> Hmmm... looks like it was never created...
-> 
-> > Where is your swap partition located physically on the disk?
-> > 
-> 
-> This is my partition table:
-> 
-> Disk /dev/hda: 240 heads, 63 sectors, 1299 cylinders Units = cylinders of
-> 15120 * 512 bytes
-> 
->    Device Boot    Start       End    Blocks   Id  System
-> /dev/hda1             1       277   2094088+   6  FAT16
-> /dev/hda2           278       556   2109240    5  Extended
-> /dev/hda3   *       557       563     52920   83  Linux
-> /dev/hda4           564      1268   5329800   83  Linux
-> /dev/hda5           278       556   2109208+   7  HPFS/NTFS
-> 
-> I'm not sure what the deal is with partition 5. When I try to change it to
-> type swap with diskdrake, I get an error sayin thast the partion table is
-> full. So how do I get around that? Looks like I have no swap. I'm thinking:
-> 
-> 1- there's a way to activate and make hda5 be a swap partition, which some
->    kind soul will tell me about.
-> 
-> 2- I can't do it like this and I have to repartition the disk. Ugh!
-> 
-> 3- I can't do it like this and I can merge hda5 back into hda4 and use a
->    swap file.
-> 
-> 4- other?


Other, your partition table is royally clobbered. 

hda1-4 should be either primary or extended partitions. Logical partitions
should be hda5 and up. Notice the cylinders of hda5: it occupies the same
space on the drive as hda2. You have a primary partition, hda1, and two
extended partitions that overlap, then two more primary partitions. One of
the extended partitions is not numbered correctly and should not even
exist.

You should immediately abandon and never use again whatever program you
used to partition this drive.

Here is what I have on a similar hard drive:

Disk /dev/hda: 64 heads, 63 sectors, 1022 cylinders
Units = cylinders of 4032 * 512 bytes

   Device Boot    Start      End   Blocks   Id  System
/dev/hda1   *         1        9    18112+  83  Linux native
/dev/hda2            10     1022  2042208    5  Extended
/dev/hda5            10      368   723712+  83  Linux native
/dev/hda6           369      727   723712+  83  Linux native
/dev/hda7           728      858   264064+  83  Linux native
/dev/hda8           859      989   264064+  83  Linux native
/dev/hda9           990     1022    66496+  82  Linux swap

Check the cylinders for the various partitions and you will see that the
logical partitions hda5-hda9 all fit within the extended partition hda2,
which is as it should be. I partitioned this drive manually with Linux'
fdisk, and it enforces the partition numbers for logical and extended and
primary partitions.

Here are the relevant portions of the matching /etc/fstab:

/dev/hda8               /                       ext2    defaults        1 1
/dev/hda1               /boot                   ext2    defaults        1 2
/dev/hda6               /home                   ext2    defaults        1 2
/dev/hda5               /usr                    ext2    defaults        1 2
/dev/hda7               /var                    ext2    defaults        1 2
/dev/hda9               swap                    swap    defaults        0 0


Given that, I would delete all your existing partitions except the DOS
one, and start over. Try something like:

   Device Boot    Start       End    Blocks    Id  System
/dev/hda1             1       277   2094088+    6  FAT16
/dev/hda2           278      1268   ???????     5  Extended
/dev/hda5   *       557       563     52920    82  Linux native
/dev/hda6           564       ??? size to suit 83  Linux swap
/dev/hda7           ???      1268    ??????    82  Linux native

You could probably make hda5 smaller; I usually use about 16 MB for my
/boot partitions.

Then you get to re-install Linux.

Ideally, do a total backup before you do this so you can restore
afterwards. Short of that, back up /home, /root and /etc, so you can
restore those when you are done, and have most of your setup.


-- 

                -- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley

Reply via email to