LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-24-2003, 06:50 PM   #1
jrpretz
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Rep: Reputation: 0
problem resizing a partition...


Here's how I'm partitioned:
> fdisk -l
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1307 10498446 7 HPFS/NTFS
/dev/hda2 1308 4800 28057522+ 83 Linux
/dev/hda3 4801 4864 514080 82 Linux swap

I want to take my Linux partition and cut it up into two. I want to make a /home partition so that I can try out other distributions. That's not important. What is important is that I use fdisk and make my partitions look like this:

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1307 10498446 7 HPFS/NTFS
/dev/hda2 1308 4000 21631522+ 83 Linux
/dev/hda3 4801 4864 514080 82 Linux swap
/dev/hda4 4001 4800 6426000 83 Linux

I do this by deleting partition 2 and adding a new partition 2 and a new partition 4 and write the new table. When I reboot, all I get is
grub>

I tried the grub commands to reboot the system. It doesn't work. I pop in my knoppix cd and the /boot directory is still there on hda2 like it was before. I can mount hda2 and see all the stuff in it. If I use fdisk from knoppix to put everything back, then it boots fine.

What am I missing? Why can't grub find my boot stuff when I change the partition table? Is there any way to fix this?

John

P.S. (I know this whole project is kind of a bad idea, but I'm only using 7 of the 25 gigs in the linux partition, so I'm pretty confident that the last few gigs are free? Is there a way to be certain? )

Last edited by jrpretz; 07-24-2003 at 07:50 PM.
 
Old 07-25-2003, 05:28 AM   #2
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
if you changed your partition using fdisk, you will have lost the data on ther reinstall linux with your new partiton table and all should be ok
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount RAID on Knoppix/rescue Windows - help!! aepereira Linux - Newbie 9 05-23-2006 10:15 PM
Rescue a damaged partition Timer Linux - General 4 10-07-2005 03:54 PM
Partition problem with Qtparted in Knoppix variety & mp3 support problem in FC3 eypros Linux - Software 1 06-01-2005 07:12 PM
How do I rescue a non-booting partition? CodeCrush Linux - General 2 03-08-2004 08:10 AM
Knoppix as rescue cd problem yowi Debian 4 02-17-2004 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:25 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