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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
(sda5 had a 93.4GB partition but I used Gparted to resize it to 63.4GB)
I have 30GB unallocated. What I am trying to accomplish is use the 30GB unallocated to resize sda8 from 29.2GB to 59.2GB but I tried using gparted, qparted and Partition Magic and they only let me resize sda1, sda5 and sda6 I can not resize sda7 or sda8.
If you tried to do this on a live system, then you wouldn't be able to move the swap partition until after running "swapoff". You could run "swapoff" to turn of the swap device and then delete it. Recreate it in it's new location. Moving the root partiton down wouldn't be possible on a live system. If you were running gparted off a live distro, you may be able to move the root partition /dev/sda7 down to it's new location. If not, see if you can create a copy of the partition there. If you can create a copy, then after the copy is created, delete your old root partition. Now the 30GB hole is before the /home partition. If gparted or YaST2's disk partition doesn't move the beginning of the /home partition, there is still room to create a copy of it in the hole and then afterwords delete the original /home partition. Use the copy in its place. The 30GB hole is now after the new /home partition and there will be no problem resizing it.
You may need to perform cloning operations on there own, to completion before going to the next step.
If you have an external drive, consider using it as a backup device for the files in the root and /home partitions. Then delete the swap, root and /home partitions and repartition the hard drive. Copy the files back from the backups you created. Be sure to use the -a (archive) option for cp to preserve the timestamps, ownership, links, and to copy recursively (-a is the same as -dpR).
Yet Another Way:
You might even consider using dd to create exact images of each of your partitions /dev/sda7 and /dev/sda8. Then you will be able to delete the swap, sda7 & sda8 partitions and recreate them in there new locations. For /dev/sda7, you could copy it's bit image replacing your new /dev/sda7. You would need to make the new root partition (sda7) the exact same size as it was before. Next partition and format your new /dev/sda8 (/home) partition. Mount the image file of sda8 (using the loop option) and copy the files from inside your image file backup onto the new and enlarged home directory.
Since you are not changing the number or order of the partitions, you will not need to make corrections to /boot/grub/menu.lst or /etc/fstab. If you were running Lilo, you would need to rerun liloconf to save the new start and end locations of the kernel.
Post the output of 'fdisk -l' so we can see your actual partition structure. What is your extended partition? sda2? You only list one primary and four logical so...? I would assume the extended is sda2? Also, you don't indicate where on the drive the unallocated space is, between partitions? end of drive? Makes a big difference.
You have partitions between the unallocated space and the partition you want to resize. You need to move them as well.
In gparted, right click on /dev/sda6 and select "resize/move". Drag it to the left. If gparted lets you move it, great. If not, it's just a swap partition. Delete it and create a new on just after /dev/sda5. Next right click on /dev/sda6 and select "resize/move". Drag it to the left as well. Then do the same with /dev/sda7. Lastly right click on /dev/sda8 and select "resize/move". Drag it to the left and increase the size to include the unallocated space. Click on "Apply all options".
ok jschiwal, I was able to resize my partition!!! however now my Grub doesn't work! It was kinda late last night to try to repair the Grub I would give it a shot tonight. First issue is fixed! now I have a bigger partition!
Thanks for your help!