Red HatThis forum is for the discussion of Red Hat Linux.
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 need to increase one partition size and decrease another one, on a server with RH AS 2.1.
This server has two disks(c0d0 and c0d1), and involve partitions are in teh same disk (c0d1). I have seen that I have to do this using "parted" (in single mode user).
I have executed print command, and partitions looks like:
The partiton that I have to increase is Minor=2 (I would like to increase it 4 GB), and Partition that I would like to decrease is Minor=7 (I have to decrease it 2 GB).
But I have some doubts abouts steps to execute:
1. Delete partitons from 3 to 9, using:
rm <minor_index>
2. Increase partition 2, with:
resize 2 6143.906 ????
How can I get this ???? value (because they are blocks).
3. Make again rest of partitons:
- Minor=3 -> mkpartfs primary ext3 ????+1 żżżżż
How can I get this żżżż value
- Minor=4 -> How can I make this extended partition?
- Rest:
mkpartfs logical ext3 <start_block> <stop_block>
4. Quit from parted.
5. Reboot the server.
Are that steps right?,
Can anybody tell me how can I calculate <stop_block> value?.
After I restart the server, all file systems are mounted?, or I have to mount them.
If you delete and recreate partitions, you *WILL* lose data. Your proposal would destroy all partitions from 3 up, and the filesystems on them. Read the limitations on parted's file system resizing capabilities here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.