LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-24-2005, 07:33 AM   #1
DJCF
LQ Newbie
 
Registered: Jan 2005
Posts: 12

Rep: Reputation: 0
doing away with XP - need to resize main linux partition, but how?


Hi, All!
I'm having a small problem installing MythTV - I'm out of diskspace. I do in fact have a RAID-1 configuration for two 250GB HDDs, but the main linux partition is running off an old 8 gig drive, 4 gigs of which are in use by XP. (Yes, I know, stupid of me.) Give that I've used the XP install exactly once, whereas the Fedora Core 3 installation is running 24/7 as a router, I'd really like to do away with the XP partition and use the entire 8 gigabytes for Linux.

The Partiton Table looks like this: (coppied manually from "Hardware Browser":
Device Start End Size Type
/dev/hda
hda1 1 463 3632 Fat32 /// that's the XP partition i want to get rid of
hda2 464 475 94 ext3
hda3 476 540 510 linux swap
hda4 541 973 3397 extended
hda5 541 973 3397 ext3

The fstab file looks like this:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-hda3 swap swap defaults 0 0

So, how would I go about resizing my linux partition? Guides I've seen on the Net either instruct me how to reformat the XP drive for ext3, which is good but not what I want to do, or assume you are resizing a data partition - not the main partition your system is running on!

How, then, would I do what I am trying to do?

Daniel
 
Old 02-24-2005, 12:20 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
i would use fdisk to delete the XP partition, then use a tool like partition magic to resize the linux partition.
 
Old 02-24-2005, 12:46 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
If you have a copy of knoppix or similar lying around, boot to that and use qtparted to resize your disks. Using a live CD means you don't need to mount your partitions which is best when you're resizing them.

I've had a lot of sucess with qtparted
 
Old 02-24-2005, 01:20 PM   #4
DJCF
LQ Newbie
 
Registered: Jan 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
i would use fdisk to delete the XP partition, then use a tool like partition magic to resize the linux partition.
Unfortunately, I tried this. The version of PM I have does not support the resizing of ext3.

Quote:
Originally posted by Komakino
If you have a copy of knoppix or similar lying around, boot to that and use qtparted to resize your disks. Using a live CD means you don't need to mount your partitions which is best when you're resizing them.

I've had a lot of sucess with qtparted
Thanks, I'll probably try this. However, wouldnt this mean my mount points would change, as hda2 becomes hda1, hda3 becomes hda2, etc.? And, furthur, wouldn't this prevent FC3 from booting? Lastly, I use grub, what should I tell it to do, and when should I tell it to do this? (Before I delete the XP partition, or after?)

Daniel
 
  


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
how to resize linux partition gry-HuhuY5 Linux - General 6 08-13-2005 07:07 PM
Resize the linux partition guideweb Linux - Software 5 08-07-2005 09:22 PM
Resize Linux partition perigee Linux - General 3 11-28-2004 05:48 AM
Want to resize main and swap partitions Shay SUSE / openSUSE 1 11-19-2004 11:31 AM
Something about linux main and swap partition julian_s Linux - Newbie 2 01-18-2004 11:30 PM


All times are GMT -5. The time now is 02:53 PM.

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