LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2004, 11:35 AM   #1
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Rep: Reputation: 30
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
 
Old 05-21-2004, 12:13 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Post what this says fdisk /dev/hda and then press p and then press q ,david
 
Old 05-21-2004, 12:59 PM   #3
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
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.
 
Old 05-21-2004, 03:24 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,934

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Its not a problem. The following will display the partition info and quit.
fdisk -l /dev/hda (thats a small L)
 
Old 05-22-2004, 04:14 AM   #5
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
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
 
Old 05-22-2004, 07:33 AM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
hda6 is history,it is no more,sorry
 
Old 05-22-2004, 08:25 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,934

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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
 
Old 05-22-2004, 09:21 AM   #8
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
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
 
Old 05-22-2004, 11:53 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,934

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
When you boot the 1st install CD a menu will be displayed. Type in the word rescue and press the enter key.
 
Old 05-22-2004, 03:47 PM   #10
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
Thanx
My Mandrake still doesn't works but i think i can fix that my self.
Hylke
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cfdisk hansi umayangan Red Hat 3 04-04-2005 02:49 AM
help with cfdisk comprookie2000 Linux - Newbie 1 02-19-2004 01:25 AM
regarding cfdisk rahul_jain_9684 Linux - Software 2 07-25-2003 06:15 AM
cfdisk a.lost.soul *BSD 1 01-16-2003 12:56 PM
I want my cfdisk WindozBytes Linux - General 2 11-12-2001 10:53 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration