Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-11-2006, 11:22 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Resize Partition

I'm new to CentOS and used the defaults pretty much all the way. But now I'm needing a relatively small partition (1 gig or so) and I want to take it from my huge 16 gig / system. Here's my info:

ACTIVE '/dev/VolGroup00/LogVol00' [15.34 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [512.00 MB] inherit

lvm vgscan reveals that VolGroup00 is using metadata type lvm2.

fdisk -l shows the following:

Device B S END BLOCKS Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2088 16667437+ 8e Linux

Now I've already tried to use systemrescuecd but when I look at my large partition that I want to resize it doesn't recognize it as anything. Like it isn't even formatted.

Am I missing something here?
Old 02-11-2006, 09:03 PM   #2
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You are dealing with "partitions" and "logical volumes" here. Before recommending anything I want to make sure you know the difference. I can't tell for sure if you know this by your questions. No offense intended ... I just don't want to send you down the wrong path by making an assumption.


Your disk has two partitions, one that's 100Mb and one that's 16Gb. The larger one is an LVM physical volume, type 8e. The smaller one is Linux native (ext2, ext3, reiser, etc.), type 83.

That 16Gb partition is divided up into two logical volumes, one that's 512Mb and on that's 15.34Gb.

Just judging by sizes, my guess is that hda1 is mounted as /boot, LogVol01 is mounted as /swap, and LogVol00 is mounted as /

If all the above is not 100% understandable, it would be best to tell us exactly what you plan to use that 1Gb new space for, and also provide the output from the following commands:
# fdisk -l
# mount
# df
# pvdisplay
# vgdisplay
# lvdisplay

If the above is all obvious to you and you already understand LVM, then the answer to your original question on how to make a new 1Gb partition would be: (1) reduce the filesystem on the larger LV, then (2) reduce your larger LV, then (3) reduce your VG, then (4) reduce the partition containing the VG, then (5) create your new partition.

It's considerably simpler if you only want a new 1Gb logical volume. Steps (1) and (2) as above, then (3) create a new LV.
Old 02-11-2006, 09:20 PM   #3
LQ Newbie
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
I cheated. It was so early in the build I rebuilt it. It turned out to be faster than a reply. Thank you however for all of your information!


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
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 05:15 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 09:56 AM
Resize Partition RySk8er30 Linux - General 11 02-11-2005 04:51 PM
Partition Out Of Space? How to resize from another partition? colelinux Linux - Newbie 6 03-16-2004 09:48 AM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 06:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration