Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've only a root file system of 100 GB on my Red Hat Linux PC.
Now I want it to break down into 2 or more file systems. Can it be done at run time, If yes then what are the steps for doing so.
Filesystem means a method for storing and organizing computer files and the data(windows using NTFS & FAT, Linux using ext2 & ext3) here you want to partation your disk. try with gparted it may be helpful http://gparted.sourceforge.net/
It depends on your Red Hat installation, if you chose to use LVM when you installed Red Hat, then you can reduce the size of the partition whilst it is running (although I would ensure I had a clean backup before making the attempt). You could then create a new partition on the free space.
This is possible because the disk is allocated to LVM and LVM is changing how it's utilising the disk.
I don't believe you should use Gparted or other methods of changing partition size (fdisk) if you are using LVM.
EDIT: Cannot reduce whilst running only increase
Last edited by Disillusionist; 04-17-2009 at 11:20 AM.
Disillusionist is right about LVM. However, to my knowledge, it doesn't apply to the “/” (aka. root) partition. Besides, although resizing partitions in a live system is possible, I don't know of a filesystem that allows resizing while mounted (hence the “/” restriction).
Always take 1+ backups before starting and try not to be using that fs.
Might not work on '/', you'd probably reboot & use 'linux rescue' mode from the install DVD; should be mounted under /mnt/sysimage
That is good news! How did you do that, and with what filesystem?
Yves.
You can increase the size of a logical volume whilst it is mounted, what you can't do is decrease the size whilst it is mounted
On RHEL (same for CentOS) go into system-config-lvm
Select the volume to be modified, and click Edit Properties.
Set the new size and click OK
If you are reducing the size, you will be told that the filesystem needs to be unmounted and asked if it's ok to unmount the filesystem and continue, if you are increasing it will just continue.
Just tested and increased size of / on the fly
You can even run df -k on the mount point and watch as the size is increased
Last edited by Disillusionist; 04-17-2009 at 11:23 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.