Fedora Linux Support Community & Resources Center
  #1  
Old 27th February 2008, 01:59 AM
Emphyrio Offline
Registered User
 
Join Date: Jun 2005
Posts: 57
Question new help resizing partitions

I copied my music collection off my external hard drive to my main box. This apparently fille d up my hard drive. I found this hard to believe, so after investigation I find I am missing about 100 gb of space.

Running F8, default installation options. I have two sata drives, a 130GB drive (sata 0) for Windows and a 120GB drive (sata 1) for Linux/F8.

What I want to do is make this missing space available to my home directory. I assume I use GParted to do this. Trouble is, I am totally unfamiliar naming conventions etc. at his point I am not even sure I have F8 installed on the correct physical drive.

First, what tool do I use to get the information I need to resize things?

Second, are there any good (and simple) tutorials/info sheets on the way these things are organized?

**EDIT more info**

Code:
This is reported from GParted:
Partition      Filesystem     Mountpoint     Label      Size          Used      Unused     Flags
/dev/sda1      ntfs                          WINDOWS    127.99GiB     100.27GiB  100.27GiB
/dev/sda2      ext3           /boot          /boot      196.11MiB     25.57MiB   170.54MiB   boot
/dev/sda3      unknown                                  20.87GiB       ---             ---     lvm
/dev/sdb1      unknown                                 114.49GiB     ---             ---      boot,lvm


Finally, I do have all my data backed up.....so even if I screw things up and have to re-install it will only be a minor inconvienience.
__________________
Dan

*****
I only sorta, kinda, know what I'm doing. :rolleyes:
*****

Last edited by Emphyrio; 27th February 2008 at 02:18 AM.
Reply With Quote
  #2  
Old 27th February 2008, 06:55 AM
GrapeShot Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 252
Emphyrio,

Can you post the output of:
Code:
fdisk -l
mount
vgscan
lgscan
This will help determine what each drive in your system is doing and then I can give you instructions on how to extend the size of your Logical Volume.

Basically, the steps are (and associated commands):
1. Create a physical partition (fdisk)
2. Create the physical volume (pvcreate)
3. Add the physical volume to a volume group (vgextend)
4. Extend the Logical Voume (lvextend)
5. Resize the files system (resize2fs)

There is a good amount of information on LVM here.

Last edited by GrapeShot; 27th February 2008 at 07:01 AM.
Reply With Quote
  #3  
Old 28th February 2008, 01:55 AM
Emphyrio Offline
Registered User
 
Join Date: Jun 2005
Posts: 57
Here is the info.

Code:
[root@localhost /]# /sbin/fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1eee1eed

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       16708   134206978+   7  HPFS/NTFS
/dev/sda2   *       16709       16733      200812+  83  Linux
/dev/sda3           16734       19457    21880530   8e  Linux LVM

Disk /dev/sdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00033d48

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       14946   120053713+  8e  Linux LVM

Disk /dev/dm-0: 20.2 GB, 20266876928 bytes
255 heads, 63 sectors/track, 2463 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table


[root@localhost /]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda2 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

[root@localhost /]# /sbin/vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "VolGroup00" using metadata type lvm2

[root@localhost /]# lgscan
bash: lgscan: command not found
Now it appears to to me that Linux/F8 was installed on a small partition on my Windows drive with only the /boot partition on the correct physical drive.

So, my first question is: Should I even bother trying to change things, or just go ahead and reinstall?
__________________
Dan

*****
I only sorta, kinda, know what I'm doing. :rolleyes:
*****
Reply With Quote
  #4  
Old 28th February 2008, 02:21 AM
GrapeShot Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 252
You are correct. Linux installed on the small partition left on your Windows drive. /dev/sdb has a bootable partition on it too, but does not seem to be mounted anywhere. If you add /dev/sdb to the LVM that seems to have you linux installed on it, you would have a total of 140GB of space for linux instead of the 120GB that you have on /dev/sdb. That increase space is the only advantage though

If it were me, I would go ahead and re-install. Then I have the 20GB left on /dev/sda for some other purpose that might come up in the future.

If you decide not to reinstall, let me know and I will step you through the process of adding the drive to the LVM.
Reply With Quote
  #5  
Old 28th February 2008, 02:31 AM
Emphyrio Offline
Registered User
 
Join Date: Jun 2005
Posts: 57
Thanks! I appreciate the help. They need to fix the installer so it reads my mind rather than the random typing I do.
__________________
Dan

*****
I only sorta, kinda, know what I'm doing. :rolleyes:
*****
Reply With Quote
Reply

Tags
partitions, resizing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resizing partitions plutonium239 Using Fedora 5 20th December 2005 03:58 PM
Resizing Partitions underpope Using Fedora 1 29th May 2005 02:31 PM


Current GMT-time: 06:50 (Wednesday, 20-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat