Ubuntu :: Cannot Boot Into Win7 After Resizing Partition
Mar 11, 2010
Today I was messing around with my partitions, and I decided to shrink my main partition that had Windows on it, so that I would could have one big storage partition and then a Windows 7 one and a Ubuntu one. Well, it didn't really work so I decided just to wait for Lucid to come out and start with a fresh install. So I went into EASEUS Partition Manager and resized my main Windows 7 partition back to its normal size. It had to reboot and did its stuff, and then when I restarted my computer, grub was showing the grub rescue> thing. So I went into the Windows 7 recovery disk, and tried all the BootRec.exe options. None of those worked. So I decided to go to the extreme and just delete Ubuntu completely.
I deleted the entire partition with GParted and then resized the main partition all the way. Then I booted into a Ubuntu live usb and re-installed Ubuntu. I thought it would just reinstall Grub and I would be able to get to both Ubuntu and Windows 7. It did install Grub, but now I can only boot into Ubuntu. It's really weird, because I can boot into windows, it just says starting windows and does the loading thing. And then EASEUS Partition Manager comes and says that all resize operations were complete successfully(because I hadn't booted into windows since I resized stuff with it) and then the screen just stays black for a long time. I don't know what to do. If I wait long enough, my computer just reboots...
Some months ago I decided to give a chance to this 'Linux thing'. However, being uncertain of the usefulness and friendliness of it all, I decided to keep my Windows 7 partition untouched and just make a 30 Gb partition to "try out" Linux. As it turns out, it's been some 2 months since I last booted Windows and was now wondering if there's a way to "steal" some space from that W7 partition and add it to my Ubuntu one without messing up files. Some kind of major defragmentation, leaving an empty part of the disk which I could "attach" to my Ubuntu partition. I am using Ubuntu 10.04 LTS version.
i have ubuntu 10 and win 7 dual booting on one hdd, all of a sudden grub says error no such partition when i select windows at the boot menu. and i cant get to the win7 partition from ubuntu (to play music and stuff, this used to work, places, mount filesystem, 250 gigs whatever). i've tried the stuff in these links and nothing has worked so farpartition info
sudo fdisk -l /dev/sda Device Boot Start End Blocks Id System /dev/sda1 1 29094 233697523+ 7 HPFS/NTFS /dev/sda2 * 29095 30401 10498477+ 83 Linux
After running Lucid since it's release I decided to wipe out my Karmic partition yesterday in order to utilize that space better elsewhere. So I booted up with the Karmic LiveCD, using the option just to check out Ubuntu. Then I opened up Gparted, unswapped (unmounted) the swap partition, made sure nothing else was mounted, and proceeded to delete my Karmic partition which then provided me with about 40 GB of unused space.
Since I wanted to re-assign 10 of those GB to my primary Ubuntu software partition where I keep all of my personal data, I went ahead and resized that one to make it 10 GB larger. First I had to move the empty space over which took several hours, but that wasn't a problem. Resizing the partition wasn't a problem either. Then I wanted to re-assign the remaining 30 GB to my Ubuntu boot partition which contains strictly my Ubuntu system ... and that's where the problem is.
The remaining unused space on the hard disk is located directly next to my Ubuntu boot partition. No matter what I do while using Gparted via the LiveCD, it doesn't seem to be possible for me to enlarge that boot partition. Does anyone know how I can do this either via Gparted, the Disk Utility from Lucid, or even via the terminal?
Ubuntu 10 is great. Love it. Am still running with dual boot as am a bit of a games addict. However want to give Ubuntu more room as will be my work area. Can I make the Linux partition bigger with the disk utility that comes with Ubuntu 10.10?Played around with Linux in the early '90's.Sure has changed.Easy installation, device recognition better than Win 7 and great working environment.
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.
When I installed Ubuntu I set it up to dual-boot with windows and didnt put much thought into the partition sizes, and now I want to make the ubuntu partition bigger. I shrunk the windows partition from gparted fine and then booted up off my ubuntu 10.04 disk to make the ubuntu partition bigger, but it won't let me do so from gparted. Attached is a picture of how my hard drive's currently set up.
A while back I ran into the situation of running out of space on /boot. When I last installed Suse I just went with the recommended LVM layout, which proposes a very small /boot partition. When you run out of space you are now faced with resizing the LVM, which Gparted unfortunately does not support.In Googling around I did not find a concise guide, so I collected the information I needed and and then wrote a guide on the steps I used to resolve this issue and it is available at Resizing Default LVM Partitions and Moving /boot - Mine the Harvest
I found using EVMS from a live CD to be quite simple and was able to create a new /boot partition and reconfigure grub to use it in very short order. I was quite impressed with how easy to use EVMS was and the options it provides. (I think that the default LVM layout the Suse installer proposes is overly conservative on the size of the /boot partition. Why not allocate a few hundred megs, especially considering the size of drives today? Perhaps Suse will soon move to using grub2 and eliminating /boot altogether, but for now the very small allocation of space can be a bit of a pitfall for users -- especially when they are not familiar with resizing LVMs and reconfiguring grub. Of course moving to grub2 also introduces its own complexities too.)
I used gparted in PartedMagic to resize my /home partition from 360GB to 160GB, and create a new FAT32 partition out of the remaining 200GB.My /home directory only had about 9GB worth of files in it and as far as I can tell there was no reason for any of them to be anywhere near the portion which was deleted. So the resizing and creating the new partition seemed to go fine. Then I rebooted and it got stuck while booting into Debian.
I tried checking my BIOS for an IOMMU option but there doesn't seem to be one at all. I also only have 4GB of RAM so I don't know why it thinks I have 4.75GB.
I recently used a GParted CD to resize my partition with Vista installed on it in order to make room for another partition in which I installed Linux onto. I, unfortunately, did not back up my data. My Vista partition now does not show up in Grub and when I set it to just boot to the Vista install it will never boot and is stuck in a loop.
I tried using this guide to try to get it back. My problem comes about halfway through this guide when I go to repair my Vista installation nothing shows up under installations. I would really like to get my data from the Vista partition. I guess if I'm SOL then at least I'll remember to backup my data next time..
When I run out of space on my Ubuntu partition, which will probably happen with me being the untidy person I am, is there a way to resize the partition in Windows or Ubuntu that will allow the other to boot? As I've heard stories of using Gparted to resize a Windows partition doesn't allow Windows Vista to boot up as it removes a crucial part of the operating system? I have adequate space to give to Ubuntu on my NTFS partition. May I also add that to install Ubuntu I had to use the partitioner that came with the installer, because the Windows Disk Manager wouldn't let me partition the NTFS drive, because it Denied my Access.
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 just installed windows 7 and ubuntu stopped booting even though it was still there, so I thought I would just change the partition flag to boot. I found out later that I had to create a new mbr but after I changed the boot flag, windows 7 stopped booting and I tried changing it back, but it didnt work. So I was wondering if i didn't use the correct flags or is there another way to get windows 7 to boot again? I was using GParted to change the partition flags and that i am using windows 7 ultimate 64bit
I would like to dual boot Ubuntu and Windows 7. I have Ubuntu 9.10 Live CD and Windows 7 Pro Live CD. Ubuntu is installed but Windows 7 isn`t. I have gparted installed. I found the following directions within Ubuntu documentation.
Master Boot Record backup and re-replacement Back-up the existing MBR, install Windows, replace your backup overwriting the Windows boot code: Create an NTFS partition for windows (using fdisk, GPartEd or whatever tool you are familiar with) Backup the MBR e.g. dd if=/dev/sda of=/mbr.bin bs=446 count=1 Install windows Boot into a LiveCD Mount your root partition in the LiveCD Restore the MBR e.g. dd if=/media/sda/mbr.bin of=/dev/sda bs=446 count=1 Restart and Ubuntu will boot Setup grub to boot windows
I don't want to backup the MBR and restore as listed. I would rather use the Ubuntu Live CD to reinstall the GRUB. How do I overwrite the MBR? Do I use gparted and change the partition? Do I create an NTFS partition as listed above? Or what do I need to otherwise do to boot the Windows 7 Live CD so that it will install?
Regarding the installation of ubuntu 10.0.4 on my HP pavilion DV5000 laptop.
I previously installed windows 7 in my laptop and i would like to have ubuntu and windows 7 in dual boot. in order to do that i need to free up some space to be able to install to create partitions for ubuntu and the swap even if I have 30GB of unused space.
When i launch the live cD and i reach the step 4 ubuntu is actually recognising three operating systems installed:
- windows 7 (loader) under dev/sda1 (92,86GB) NTFS - windows NT/2000/XP (which is corresponding to my "HP recovery" partition) under dev/sda2 en FAT32 (6,2GB) - windows XP embedded (I don't unerstand what it is) under dev/sda3 NTFS (1,1GB)
when I go to the step 6 to modify the size of sda1 to free up some space, i don't have the possibility to change it, i can read "unknown" under the used space collumn.
I also tried to resize this partition using gparted but unfortunately i had the same problem, when i select it all the options to modify it are greyed out and i can notice a key near the hard drive logo (is it locked ?).
I have a laptop that came with Windows Vista (64-bit) installed. I created a new partition and installed XP (also 64-bit) alongside it.Last night I shrunk my XP partition and created another new partition and installed Linux (CentOS 64-bit) on it. I made an error in judgment and didn't allocate enough space, so I need about 10 more gigs for the Linux partition. It boots up and runs, but I need about 10 more gigs of storage for the files I want to keep on the partition (and yes, they have to be on the partition, I definitely need to know how to do this, not a workaround)I went into Vista and shrunk the XP partition by 10 gigs, so now I have 10 gigs of free, non-partitioned space.
As it stands, when I start up the computer I get the GRUB boot loader. I can boot my Linux install or choose "Other" and be taken to the Vista boot loader. From there I can choose XP or Vista to boot.So, my question is... what is the best way to append the 10 gigs of free space to the Linux partition? Is this something I should do inside of Linux? I have the option to do it in Vista, but the partition shows up as "healthy" but without a file system type.I just don't want to screw up the boot loader, partitions or anything else.This isn't my area of expertise, so if anyone could give me a good suggestion or solid answer
I have Windows 7 on my laptop and am attempting to install Ubuntu 11.04 from CD.I boot from the disk drive, follow the prompts and eventually get to the screen where I can set how much space I want to give to the Ubuntu partition vs the Windows partition. My hard disk is 250GB, so I reduce the Windows one to 100GB (currently has 80GB of files on it) and set the Ubuntu one to 130GB (the other 20GB is split between the two hidden Windows 7 partitions).
I then click to continue and the progress bar for the install starts up but doesn't move, it just sits at 0%. I realised that the dialogue box underneath the progress bar can still be expanded and asks me to test using -n and -s, but when I type either of these into the box and hit return, nothing happens. I have checked my download of the .iso I used using WinMD5Sum and the hash matches up. I have already tried installing from USB but this threw an error, hence using CD. My laptop is a Dell Inspiron 1546 running Win 7 Home Premium 64 bit Processor: AMD Turion X2 Dual-Core Mobile RM-75 2.20GHz
i installed ubuntu after windows 7 but now i cant boot windows 7 i tried the start up repair and I've read through some questions answered on here and int figure out the problem i don't want to uninstall ubuntu unless it's my only option
Now however its not letting me resize the Windows partition, mounted or unmounted. It currently occupies the whole disk. I would rather not reinstall the whole thing over again, but I will if I have to. Isnt there an easy way to shrink a Windows partition? I swear Ive done this before and it wasnt this hard. Could it be a problem with the Mint installer that now asks me if I want to unmount my disks before it goes into install mode? On this PC I would like to have
Windows XP Mint Ubuntu-Studio Edubuntu One of the E17 OSs Puppy Linux (to create a remix)
I am probably going to put most of the linux partitions on the second laptop drive but I want to install files on a non WIndows NTFS partition.
I want to give Mandriva 2010 a shot, and I want to resize my 500gb /home partition (logical) to make some room. It's an ext4 partition. Do you reckon I'll be safe resizing it from the Mandriva installer? or should I use an Ubuntu LiveCD first?
I didn't like the fact that Ubuntu allocated like 5gigs of swap with its automatic partitioning / install. So I decided to shrink it with gparted now it doesn't show up when I boot I have to select swap on in gparted to use it.
I have a LVM logical volume, that contains a LUKS encrypted volume, on which is an ext4 filesystem. I shrank the partition to the minimum size. Next step is to luksClose the device, and then to resize the LVM logical volume. I suspect that LUKS has overhead. So if the ext4 filesystem was resized from, say 1TB to 500G, I have the idea that resizing the LVM LV to 500G does not take LUKS overhead into account and this might corrupt data on the end of the FS. So, what's the smart move to take? How do I calculate the safe minimum LV size? Or should I just give the 500G disk a few gigabytes extra to be sure?
I know there are probably alot of threads about lvm however they aren't addressing my problem. I want to extend the PEs available in a VG. This VG already has LVs and those are active and mounted. From what I read from the manpages of pvresize this should be perfectly possible. Code: pvresize resizes PhysicalVolume which may already be in a volume group and have active logical volumes allocated on it.
I did the following steps and wonder if anyone has the same issue. THe machine where I am talking about is an ESX VM. 1. Resized the vmdk in ESX (+1G) 2. Let the kernel reread the device geometry: echo 1 > /sys/block/sdc/device/rescan 3. fdisk shows me the new size... so far so good 4. I resize the partition using fdisk (remove, recreate) and gave it the 8e type (lvm) 5. wrote config to disk 6. executed partprobe 7. pvresize /dev/sdc
Here it goes wrong! Pvresize says in the verbose output it sees the same size however at the end it says the pv has been resized. I have seen when I put volumes "offline" using vgchange -a n vg on a test machine, and then try pvresize it seems to work ok. This is against what is in the manual as it says pvresize should work on online mounted volumes.
I made a new partition on my hard drive, and installed Windows XP on it. However, because of space shortage on the disc (didn't bring my external HDD's with me) I could not "afford" to make the partition bigger than about 7GB. Turns out that's not quite enough. So I thought I'd try to resize the partition. Booted from my Ubuntu LiveCD and entered the partition manager. I'm able to tell the program that I want to resize the Linux-partition (so it sets the now freed space as "unused", but when I chose to "resize/move" on the XP-partition I do not have any free space. Does this mean that I have to resize the Linux-partition (until now I didn't actually resize it, only set the job as "pending" hoping that I could select both to shrink the Linux-partition and extend the XP-partition in one session), or do I have to format the XP-partition and make a new one (larger this time), then reinstall XP?
I'm trying to install Ubuntu on my Mini 700 EL and when I start it doesn't give me the option to install it alongside Windows. Wubi does not give me the option to install onto the system, only to reboot and install it completely. When I try to install from booting from the USB key, I decide to edit partitions manually and I don't get the option of resizing the Windows partition, I can only delete it.
I'm installing 11.04 on a friend's laptop. I'm fairly familiar with Ubuntu, and I'm sure when I've install it previously it didn't take this long to resize the partition. It's been going for around 15 minutes. The loading cursor is still spinning, and the HDD activity light is on almost solidly, but it's been a long time with no updates. The log says only "ubuntu ntfsresize: Please make a test run using both the -n and -s options before real resizing!". Nothing appears to be happening. Is this normal? Never mind, it failed.
I have a small disk and I want to resize to 2 gb the swap partition, how I can do?
[root@server12 ~]# lvdisplay --- Logical volume --- LV Name /dev/vg_fedora11/lv_root VG Name vg_fedora11 LV UUID Zwl9te-GQ1j-5Py3-Jiz0-JFAY-sy7n-iaV2TP LV Write Access read/write LV Status available # open 1 LV Size 52.32 GB Current LE 13393 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0
--- Logical volume --- LV Name /dev/vg_fedora11/lv_swap VG Name vg_fedora11 LV UUID k61vCI-YAdI-XgNX-xRaG-B7jY-CTMQ-LKOjwk LV Write Access read/write LV Status available # open 1 LV Size 3.92 GB Current LE 1004 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1
I have slackware 13.1 installed on my desktop and I have all my hard drive dedicated to it. But now Im thinking about resizing my hard drive so that I can install windows so my brother can play games on it ( probly giving 50 Gigs to windows )I heard that parted ( located on slackware cd 1 ) is what I should use. So I was wondering if I need to backup any important files before doing the resizing? I would also appreciate it if someone could link an good tutorial for doing partition resizing .