LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2005, 06:16 PM   #1
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Partitioning woes


I'm trying to convert an old compaq presario (pentium mmx 233, 48mb) in a dual boot box, but am running into serious partitioning problems. I resized the existing fat partition and thenm using fdisk (from the linux rescue cd 0.2.15) I made some partitions. When I went to check what I'd done there were spaces between the paritions so I tried again after first deleting all the partitions except the fat. Still no luck so I tried qtparted (knoppix). Don't ask me how, but to make a long story short I messed up to the point where windows fdisk no longer could read the disk. I finally managed to erase it (using partition magic) and create a new fat partition using windows fdisk, but it still only recognises half the disk (I hope the other half will be recognised by linux. In betwen linux fdisk also told me it couldn't read the disk.

Now for the real question (other than why something so relatively simple turned oput to be such a horrible botch job). Is there a way undo all this simply cleaning up all the mess I made on the disk. It appears that even cleaning a disk with fdsik (either linux or windows) still leaves some traces that make it impossible to read the disk properly. (I remember reading something about low level reformating...)
 
Old 09-23-2005, 10:04 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
The HD is 48 Megabytes? What are your partition schemes, 24 and 24? Just curious how you are running it, seems a bit tight to be dual booting...

Nonetheless, let's see what we can do.

I don't believe an 'undo' exists, but if there is no data necessary to recover, you can play. Using linux fdisk, delete all partitions (the 'd' key). Then create 1 partition encompassing the entire disk (n, p, 1, enter). Write this, (w) and then create a filesystem (we'll use ext2) mke2fs /dev/hda1 (assuming this is hda). Now, mount it:
mkdir /mnt/hda1
mount /dev/hda1 /mnt/hda1
And then use df to see if the entire disk is there (minus the 5% given to root, you can adjust that with the mke2fs command, read the man page if you are interested).

If it is, you can then go back and use fdisk to play around with sizes to get the desired partition sizes you are looking for.

Good Luck!

Cool
 
Old 09-24-2005, 03:29 AM   #3
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
thanks for the reply. My info was icomplate: the box has 48Mb ram and an 8G HDD.

I'll try making the filesystem though. Hadn't done that before.
 
  


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
Partitioning... Ophidian Slackware - Installation 2 09-04-2005 06:12 PM
partitioning woes coolblue Linux - Newbie 1 03-07-2005 10:35 AM
Partitioning regorbro Linux - General 5 12-05-2004 03:07 PM
Help with partitioning Jay Smith Linux - Software 8 09-09-2004 02:22 AM
Partitioning DeadPuddle Linux - General 13 04-23-2002 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration