LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-28-2007, 02:35 PM   #1
magnEsium
LQ Newbie
 
Registered: Jun 2005
Posts: 26

Rep: Reputation: 15
GParted


Hello, I need help with GParted

I need to resize my fedora core 6 thats already on my HD

I need to make room to install Windows

Thanks in advance!
 
Old 01-28-2007, 02:41 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Need to know filesystem setup to see if gparted can do it. parted is limited to certain filesystems and what can and can't be done.

Post output of ' /sbin/fdisk -l '. Must run as root.

Brian
 
Old 01-28-2007, 02:43 PM   #3
magnEsium
LQ Newbie
 
Registered: Jun 2005
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Brian1
Need to know filesystem setup to see if gparted can do it. parted is limited to certain filesystems and what can and can't be done.

Post output of ' /sbin/fdisk -l '. Must run as root.

Brian

Disk /dev/sda: 160.0 GB, 160041885696 bytes
18 heads, 36 sectors/track, 482379 cylinders
Units = cylinders of 648 * 512 = 331776 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 316 102366 83 Linux
/dev/sda2 317 482379 156188412 8e Linux LVM




Thanks.
 
Old 01-28-2007, 06:22 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Afraid it was LVM. Well gparted is not going to do it. There is a command called pvresize. I do not know how to use it but there are manpages on it as well as docs on the internet. You can use the pvscan to see what you have to start with. Now the thing is you have to have the LVM unmounted and since the root is a laogical partitiion within the logical volume you are going to need to boot up from the install cd in rescue mode ' linux rescue '. Do not let it mount the current install. Now thing is I do not know if the commands are on the first cd. Only thing to do is try. If it is notpresent then get knoppix live cd iso and burn the image to cd and bootup from that and do not mount the partitions again and use the commands. Agian not sure if they exist on that. Check on the knoppix docs for installed files on the Live cd. Last idea is the http://freshmeat.net/projects/systemrescuecd/ . It has a tool called EVMS. Download the ISO image and burn the image to CD.

Now once you have the LVM shrunken down then you can add partitions to the end of the drive. More than likely you you will not be able to move the LVM to the end of the drive since most filesystem do not like moving the first block of the partition.

Last but not least I am not sure Windows will like any other partition space other than /dev/sda1 according to your drive. I could be wrong and will allow you to install to /dev/sda3.

One last thing is when you install Windows it will rewrite the master boot record which means you will lose your boot manager. It is an easy fix using the install cd and letting it mount the partition using chroot. Then use the command /sbin/grub-install to return the grub bootloader to the master boot record. Once you get Fedora back up you will then need to edit /boot/grub/grub.conf file and add an option for your windows like this.
Code:
title Winblows XP Amatuer
	rootnoverify (hd0,2)
	chainloader +1
This is based on using the first drive partition, thrid partition if this is where windows gets installed. /dev/sda3 same as (hd0,2)

Brian
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
GParted just hangs - and I don't know why BigVig Debian 5 04-23-2007 07:35 PM
gParted Help carlosinfl Linux - Software 6 09-26-2006 08:41 PM
After using Gparted tombiz Ubuntu 5 07-13-2006 04:38 PM
gParted tutorial Infernolinux Linux - Software 0 12-08-2005 11:04 PM
GParted mtecknology Linux - Software 1 07-25-2005 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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