LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cfdisk (https://www.linuxquestions.org/questions/linux-newbie-8/cfdisk-184135/)

hylke 05-21-2004 10:35 AM

cfdisk
 
Hello
I deleted a swap partition(hda5)(on my mandrake),and then it called hda6 hda5.
So know I can't use my mandrake anymore(because it needs the swap partition), and slackware(because that whas hda6).
So how can i set hda5 back to hda6 using cfdisk?
Thanx Hylke

comprookie2000 05-21-2004 11:13 AM

Post what this says fdisk /dev/hda and then press p and then press q ,david

hylke 05-21-2004 11:59 AM

When i type: fdisk /dev/hda it says something like:
The number of cylinders is bigger then 1024 bla bla, can cause some problems bla bla.

michaelk 05-21-2004 02:24 PM

Its not a problem. The following will display the partition info and quit.
fdisk -l /dev/hda (thats a small L)

hylke 05-22-2004 03:14 AM

Disk /dev/hda: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2595 20844306 83 Linux
/dev/hda2 5230 6503 10233405 5 Extended
/dev/hda3 2697 2797 811282+ 82 Linux swap
/dev/hda4 2798 5229 19535040 83 Linux
/dev/hda5 5230 6503 10233373+ 83 Linux

Partition table entries are not in disk order

comprookie2000 05-22-2004 06:33 AM

hda6 is history,it is no more,sorry

michaelk 05-22-2004 07:25 AM

Boot using a install CD to rescue mode. Mount the Mandrake / partition and modify its fstab file to change the swap partition from hda5 to hda3.

Then mount the slackware / partition which is now hda5 and change its fstab file from hda6 to hda5. Make sure the swap location is also hda3

hylke 05-22-2004 08:21 AM

Quote:

Originally posted by comprookie2000
hda6 is history,it is no more,sorry
I already knew that before LOL :-D

Quote:

Boot using a install CD to rescue mode
How can i boot to rescue mode?

Thanx Hylke

michaelk 05-22-2004 10:53 AM

When you boot the 1st install CD a menu will be displayed. Type in the word rescue and press the enter key.

hylke 05-22-2004 02:47 PM

Thanx
My Mandrake still doesn't works but i think i can fix that my self.
Hylke


All times are GMT -5. The time now is 12:11 AM.