Ubuntu :: Resizing Partitions With GParted And What Will Happen With Grub
May 7, 2010
I want to resize and eventually remove some partitions on my drive but I need to know how this will affect grub and what to do if I need to fix it.I currently have 3 standard partitions and 1 extended partition on a 160Gb drive.
1st Partition -Windows XP about 60Gb with about 35Gb used. NTFS
2nd Partition -Ubuntu Lucid 10.04 amd64 about 40Gb, 22Gb used ext4
3rd Partition -Linux swap about 2.5Gb
Extented Partition -Ubuntu 9.10 about 49Gb with 23Gb used ext4
I'd like to shrink the Extended partition down and add the space to the 2nd partion where Lucid is. Eventually, I'll want to delete the whole extended partition and add all the space to the Lucid partition.
After using GParted to resize these partitions, what will happen when I boot? Will I need to tell grub where the swap and 9.10 are? I am not changing the start of the first two partitions so I would assume there will not be any problem with them (I'm not sure how moving the start of the swap might affect the Lucid installation though).
I resized all of my partitions using GParted, I got Windows 7 and Vista to boot up again ok but I can't get F11 to boot. I am not using GRUB nor do I want to, I tried using the install disks and doing a repair and "chroot"-ed my filesystem and everything is still there, there is just something small missing that I am not remembering to do. I have the NST files on my Windows drives and it tries to boot but F11 complains that there is no boot disk. I'll try to boot once again and write down the exact error message.
I have 3 Ubuntu installations & a PCLINUXOS, plus Windows XP installed on one hard disk. I still can boot to each one of them and can mount each one using Ubuntu.
The problem "may" have occurred when I reduced the size of some linux partitions using gparted. I still have plenty of space in each of those partitions.
When I started gparted all of the HD was unallocated. I did that from each ubuntu installation and the PCLINUX installation, plus LIVECDs. All indicated the space was unallocated.
When I did an fdisk -l from a Puppy Linux LiveCD I got a normal start and ends of each partition.
When I tried it from Ubuntu installation or live cd, I received the following types of responses:
Code: ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda5
Disk /dev/sda5: 28.5 GB, 28566397440 bytes 255 heads, 63 sectors/track, 3473 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System ubuntu@ubuntu:~$ sudo fdisk -u /dev/sda5
The number of cylinders for this disk is set to 3473.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Plus the Windows partition seems to go over its limits.
Since all of my OS installations are still working, I don't know how critical this is. From reading another post, I understand this might be able to be fixed by making some changes in fstab.
First of all, the boot device is an 16GB SD card. I install Citrix XenServer on it but I make the partition too small (XenServer makes a lot of logs file). I resize the partition but now it give "Illegal OpCode" and red screen everytime it boot.I already create the image of the whole SD card using dd and already try these process three times = restore the image, test that it can boot properly, then resize the partition using gparted, then it can't boot.
I already post this question in XenServer forum (with screenshot) but nobody answer there.The hardware itself is HP Proliant ML350 G6 with internal SD slot.
I was trying to resize a NTFS partition using GParted and trying to enlarge it using some unallocated space (about 400 or 500 MB unallocated space) but something went wrong and now I am unable to access the NTFS partition. The unallocated space is still there.The error details are reported at the bottom of this mail, plus the content of fstab and mtab.Do you have any idea on what caused the error and how to recover the partition?
I removed an ntfs partition I had in my HD and then resized my home partition with gparted to occupy all the available space. The resulting partition is supposed to be 129GB, and gparted/partition magic see that size. But the system does not, and all tools report the old partition size and the same free space I had before resizing.
is this possible ? I have 3 partitions 2 different Linuxes on of which Ubuntu and one MS Windows. One of the partitions has come too small. Can I resize all in safe way when plenty of empty space on one partition ?
I've been running lucid lynx on my inspiron 6000 for a couple of months now, and have become very comfortable with it. I would really like to eliminate xp, but I own a zune, and cannot do anything with it in linux. So xp must stay .
Anyway, my hdd is a paltry 60GB, and when I first set it up I gave xp 40GB, 513MB to swap, and the remainder was given to linux. Now I would like to expand the linux partition and shrink the xp partition, and am looking for the safest way to do it without reinstalling either os.
ps. xp is ready to go (defraged and all that), and I have some partitioning software in xp, but don't think its a good idea to resize linux's partition in winblows.
What I want to do is enlarge both my root partition by about 10 GB and also enlarge my Home partition by about 45 GB. I realize there is enough space in the root partition for expansion (see screen shot) but I want to be certain (some of the last updates have been over 100 MB). I have a dual boot 10.10 64 bit system with XP . There are two drives ; a 1 TB drive with Windows, Ubuntu and a NTFS data partition and a 2 TB drive for media which won't be touched by this operation. I have taken about 58 GB from my Windows partition and this now sits unallocated and ready to be used to expand the Ubuntu partitions. expanding these partitions (root and home) would be appreciated. I read bodhi.zazen' excellent tutorial on partitioning [URL] but I still am unsure how to go about this. I have a live Meerkat CD.
I am currently using Ubuntu 10.10 on my laptop. I saw Fedora had the new Gnome3, so I decided I might like to try that, My hard drive is about 230GB. Ubuntu currently has all of it, and I would like to make a small partition for Fedora. I know that during the Fedora install you can resize the current Ubuntu partition manually, very simple, gives you the size in MB, and you just shrink it, and Fedora takes up the remaining amount of space.
My actual question here, is how would I, if I should like Fedora 15 more than I thought I would, proceed to shrink the Ubuntu partition more, and increase the one for Fedora?
Ubuntu would have 200GB. Fedora would have 30GB. How do I go from this point, to having Ubuntu use 180GB, and Fedora having 60GB?
I realize there are lots and lots of guides already on the Ubuntu website for help with partitioning etc, but they all seem to be about first time install, or for doing so with windows. All I would like to do is use something like gparted to resize the Ubuntu partitions and expand the Fedora one.
I have this rather old Compaq Presario 2184 (Celeron processor), with a completely busted optical drive - which means I cant boot from Live CD, and it doesn't boot from USB, either... which means I cant use a live memory stick, either. It's currently running Xubuntu 9.04.
I'm seriously running short of space on my root partition - can't upgrade to 9.10...
I had a Windoze partiion that I decided to remove, using Gparted. Identified the NTFS partition, right click, delete. After that, I couldn't do anything else... I then found this page, that told me that I cant resize all partitions while booting from hard drive, and that I needed a Live CD. For the reasons mentioned above, that's just not possible...
Are there any alternatives that the good folks here can suggest? For example, can I create a new partition, and move my entire /usr there? It would solve the space problem, but I'm not confident of doing it without screwing up something... could someone kindly guide me through the process?
I made quite a bit of partitions of different Linux distributions in an attempt to compile a massive program. (To those who do a bit of weather research, I'm trying to compile both WRF and WPS on 64 bit Linux.) I finally compiled the program on 64 bit Fedora 14, and now I'm running out of space on this partition. Is there a way to increase the size of a partition without uninstalling the current OS? I don't mind what happens to the other partitions, but I put quite a bit of effort in this current one. Also, the program demands that all of the data be contained in the same home directory, so I can't keep files in other partitions.
I have a dual boot system 9.10 and XP. The hard drive is 234. For some reason during the install I only allocated 128 to windows and 16 to ubuntu. Or at least, gparted tells me I have 127.99 NTFS and 104 unallocated (=231G ??).
System monitor tells me I have the following: /dev/loop0 is ext4 = 16 G total /dec/sda1 is host = 128 G total this is 134G total
From windows, the partitioner tells me the same. I have 104 of unallocated disk space and 128 of NTFS. I assume the 16G allocated to ubuntu is inside the 128G?. How do I get that additional 104 into ubuntu without screwing up the MFT of windows. Or can I? Is it as simple as telling gparted to format the space? or will that mess windows up?
I have 1 HD with the following OSes, each on his own partition:
p1 WinXP p2 Win7 p3 Ubuntu p4 Ubuntu Studio p5 Unallocated (not actually a partition)
I intended to create a 5th partition, formatted as NTFS, for data. That's when I found out that Windows only supports 4 partitions per disk (yeah, I know, should've looked it up first). On Win7 Disk Management applet, they're all listed as "Primary Partition".
I've come up with a few possible solutions: s1. Move partitions p3 & p4 down towards the end of the HD, and add half of the available space to partition p2 (Win7) and the other half to partition p4 (Ubuntu Studio).
s2. Move partitions p3 & p4 to the end of the HD, and add all available space to partition p2 (Win7).
s3. Increase partition p4 (Ubuntu Studio) to take up all the available space.
q1. Win7 Disk Management applet gives me no option to move or resize (other than shrink) the partitions. Does this mean I'll have to use another partition manager (e.g., gparted)?
q2. If I move the partitions p3 & p4 (both Ubuntu), will there be any impact on grub?
q3. Is there any way to turn partition p4 to extended instead of primary? If so, what are the consequences?
I have software RAID 1 on two physical discs. There are now 4 md -partitions (md0 ... md3), which are used in such as / and /home among others. Now current size of /home (md3) is starting to be full, and since / (md1) has more than plenty of free space I decided to fix the situation by shrinking / (md1) partition to free 40 Gigs of space and then growing /home (md3) partition for that 40 Gigs.
I already checked for some info using mdadm and got the following:
Now I would need some support on HOW exactly should I do this resizing since it is on RAID partitions.
Would it be good to use resize2fs to modify the filesystem sizes and mdadm to configure the partition sizes. Or could I perhaps get over this even easier by using GPartED (in case it supports my RAID)? Has anyone here done similar resizing on software RAID1 partitions?
I had installed CentOs 5.3 on a Virtual Box machine (v. 3.0.10) and then I needed more free space to upgrade to CentOS 5.4 on partition /. I wanted to substract some space from /home partition in order to add some more free space to /. Thus I used a gparted live cd (v. 0.4.8-1) that it is a debian live cd. I resized the partition as I wished and every operations went successfully, but when I tried to reboot the only message that I see its 'GRUB' and nothing else happen. If I start again with the gparted live cd, everything seens to be fine as the partitions are there but I can't boot the system.
Is there a way where I can take like 50GB from my home folder (I have 375 avail., but using only 22GB) and put it to the root partition? Twice now my system has almost ran out of space on root, so luckly I was able to clear out old stuff so I don't have login issues after finding the hardway the first round lol. I just want to make sure I can login with out being forced back out because root don't have space to let me login.
I have a Huawei IDEOS S7 android tablet running 2.1.My USB port has died, so I need to delete a partition I put on the internal memory area, then resize the remaining partition back to the full amount. It looks like I should be able to use terminal emulator to do that, but I don't know any of the commands.
I have what is a weird problem, at least I think it is. I deleted some files and now my partitions do not show up in Gparted. Instead, the entire disk shows up as unallocated space. I am still able to run every partition, one of which is ubuntu and another which is Windows without any other apparent problems. here is my fdisk -l:
I was moving and resizing my Ubuntu partition and for some reason my hard drive stopped reading and royally screwed my partitions up.I know there is a command line tool in linux where you can view what partitions could be there and choose to ressurect them etc. but i cant remember what its called
I just wiped my HDD and installed Windows XP (35gb Partition) and then Ubuntu 10.10 (75gb Partition ext4) and I want to know if it's possible to make my XP partition a bit smaller, like 20-25 gb, and then add what I take off to the ubuntu partition,because I won't be using xp that much, only for things that I know work on windows only.
My harddisk had one extended partition, sda2, split into several logical partitions: da6,sda5,sda7,sda8,sda9 in this order. sda6,sda8,sda9 were [the only] PVs in one [and only] volume group.
I tried to delete sda7 and to resize sda5 (both unrelated to the LVM setup) to take the freed space. I entered both changes in GParted and clicked 'apply'. It gave some error, but had apparently deleted sda7, without resizing sda5. I tried to resize sda5 again, it again gave an error again, but sda5 was resized. I did not save any logs from GParted. Then I saw that the partition names had changed to sda8,sda5,sda6,sda7, in this order.
Now when I run 'vgdisplay', I get the error "Couldn't find device with uuid ....". Running 'blkid' gives the uuids of sda5,sda7,sda9. According to GParted and fdisk, sda9 does not exist. Also, according to blkid, the uuid of sda7 is what used to be the uuid of sda8. I am very confused. As you could expect, I don't have backups, so... (I am now creating a copy of the whole disk, in case things go even more wrong)
I have a little problem. As soon as I boot my computer, Grub gives me an error 17. It happened after I tried to resize my Windows partition with a program. I have a dual boot between Windows 7 and Ubuntu 9.04.I've tried everything I could find on this forum and on the rest of the internet, but nothing was working. Most of them require a Windows CD (god knows where it is) or reinstalling grub and all that stuff, but it's all not working.I'm currently on a Ubuntu Live CD. Gparted doesn't detect any of my partitions, but just says 232 GB unallocated space. Palimpsest Disk Utility and the Explorer see all my partitions though EXCEPT my Windows 7 partition I tried to resize.
I currently have Xubuntu and Mac OS X on my PowerBook G4, however, I recently got a netbook and use Ubuntu via USB on it and now would prefer to have only OS X on my powerbook. I would like to use Gparted to restore/fix my partitions and don't exactly know what I need/don't need and also how to resize my os x HSF+ partition back to full size? An image below shows my current setup (kinda messed up I think.) What steps should I take in Gparted to delete the unnecessary partitions and give OS X it's full size?
I decided a few days ago it was time to reinstall ubuntu since Lucid looked fun and interesting. Everything went really well (my table functions even worked with no configuration!) until I decided I wanted to resize my linux partition so I could install a win 7 virtual machine. I had some issues getting gparted to let me expand my partitions into free space, so I started diking around with various settings commands and I managed to screw up my partition table badly enough that I needed to boot with the live cd. After a few hours in panicked trouble shooting mode, I finally got grub reinstalled and managed to boot things regularly. But now Gparted is completely nonfunctional; it shows the entire HD as unallocated and says "can't have partition outside of disk". Apparently one of my partitions is oversized.
Here's my output of fdisk -lu and sfdisk -d: sudo fdisk -lu Code: Disk /dev/sda: 250.1 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5c5ef856 .....
Gparted does not recognize my intel ICH7 fake raid 0 partitions rendering it useless. Am I missing a package that will add this? I know the live disk can do this. Is it something to do with dmraid? using 10.04 64 bit ubuntu
i installed win7 ultimate on a 2TB HD and was hoping to dual-boot it with meerkat, i did a standard install and shrunk the partition using win7 disk management to leave 500GB for ubuntu.problem is ubuntu can't detect the existing win7 install, when selecting advanced setup it just shows one big unallocated partition.
i went back into win7 and extended the partition again, then booted into ubuntu live cd to see if maybe gparted would do the trick. gparted also cannot detect the existing win7 install and just displays unallocated 1.82TB.in terminal if i do 'sudo parted /dev/sda print' i get this message:
Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table.However, it does not have a valid fake msdos partition table, as it should.Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table? Yes/No? ^C
I have installed ubuntu many times before and never encountered this problem. The installer shows partition sizes which do not match my current sizes at all. This occurs during LiveCD too, I have taken a screenshot of the problem. GParted seems to be showing incorrect partitions while the one the right is correct.
I will be installing Ubuntu Server 10.04 LTS. The partitioning install section is text based and IMO a bit cryptic. I was wondering: Can I first set up my partitions with Gparted live disk and then pop-in the server install disk and install using the partition structure I made with GParted?