Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Unable to delete old partition

24 Jun 2009   #1
Broken32

Windows 7 RC x64 EN
 
 
Unable to delete old partition

Hi,
To install windows 7 I used unallocated space at the beginning of my hard disk (it was previously used for an installation of Ubuntu Linux which i stopped using). Now I wish to delete the old Vista partition. The delete volume... option in Disk Management was grayed out so I trued using DiskPart. Here is the commands I used.

=====#=====

C:\Users\Jake>diskpart

Microsoft DiskPart version 6.1.7100
Copyright <C> 1999-2008 Microsoft Corporation
On computer: ######

DISKPART> select disk 0

Disk 0 is now the selected disk.

DISKPART> select partition 2

Partition 2 is now the selected partition.

DISKPART> delete partition override

Virtual Disk Service error:
Delete is not allowed on the current boot, system, pagefile,
crashdump or hibernation volume.

=====#=====

What did I do wrong? That partition is not in the MBR (I have checked using bcdedit and the GUI under setup and recovery options. The pagefile is on C: (The Vista volume was labeled as D and then I unmounted it). Crashdump is %SystemRoot%\MEMORY.DMP. Not sure what the hibernation volume is but...

Is using GParted Live safe (I know that you generally can't modify NTFS without getting a stop error for the NTFS.sys file). But can you simply DELETE one without the .sys becoming corrupt?

Any input would be great.
Thanks
Jake


My System SpecsSystem Spec
.
24 Jun 2009   #2
sup3rsprt

XP, Seven, 2008R2
 
 

Solve it by making the Windows partition "active" and make sure the boot manager, pagefile, hibernation file, etc. resides on that same partition. Then you can format the old partition all you want.

It's handy to have some extra tools in your arsenal. I often use something like Acronis Disk Director (on a bootable thumb drive) and VistaBootPro. Keep in mind that the Windows 7 DVD itself also has some startup (boot manager) repair tools.
My System SpecsSystem Spec
24 Jun 2009   #3
Broken32

Windows 7 RC x64 EN
 
 

OK It's marked as Active but the Old partition still has the "System" Flag. How do I change this?

Thanks
My System SpecsSystem Spec
.

24 Jun 2009   #4
sup3rsprt

XP, Seven, 2008R2
 
 

by moving or installing the boot manager to the Windows 7 partition.

btw if you don't want to use something like EasyBCD or VistaBootPro, apparently you can do it by command line. See Moving Boot manager to Different Drive
My System SpecsSystem Spec
24 Jun 2009   #5
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Hi Broken 32,

Just to expand on sup3rsprt post.

It is not to do with the MBR.

The problem is that the Vista partition is the "System " partition - it contains files needed to boot into 7.

If you want to delete the Vista partition , you can Make the 7 partition the system one like this:

1. Go to folder options and make sure hidden files and Protected operating sytem files are showing.

2. Copy and paste bootmgr and the pale yellow Boot folder from Vista partition to 7 partition. ( You will get a message bcd is in use and can't be copied - skip it and copy the rest)

-bootmgr2009-05-11_182540.jpg
3. Open an elevated command prompt ( type cmd in start search - when it pops up, rt click and run as admin. )

At the prompt >, type:

bcdedit /export C:\Boot\bcd

It will look like this:

Microsoft Windows [Version 6.1.7100]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\System32>bcdedit /export C:\Boot\bcd

press enter , close cmd prompt.

4. Go to Disk Management and rt click 7 partition - select Mark as Active.

5. Restart.

7 is now the "System" partition - don't worry about the auxiliary o/s files - they were created on restart.

Hope it helps.


My System SpecsSystem Spec
24 Jun 2009   #6
Broken32

Windows 7 RC x64 EN
 
 

Hi,

Thanks both for the help

All that was needed was to change the "Active" flag over to the Win7 Part. Then I ran a recovery, which resulted back in a dual boot, then deleted the Vista partition. Now it works.
My System SpecsSystem Spec
24 Jun 2009   #7
sup3rsprt

XP, Seven, 2008R2
 
 

Nice job. Glad to help
My System SpecsSystem Spec
24 Jun 2009   #8
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Interesting, I am going to try that.

I will delete bootmgr and Boot folder from 7 partition and see if startup repair can replace them.
My System SpecsSystem Spec
24 Jun 2009   #9
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Hi Broken,

Thank you for reminding me to try that.

I had looked in the .wim for the 7 WINRE and found it contains bootsect.exe.

This is significant because it is not on the Vista recovery disc - tho. it is on the Vista dvd and bootsect commands can be performed from that in Winre.

I had meant to try the recovery options to see if they would be automated in 7 Winre - but had not got round to it.

I just tried it and indeed they are.

It took two runs - it seems the first creates the Boot folder on the Active partition, and the second creates bootmgr.

It also works on Vista.
My System SpecsSystem Spec
30 Dec 2010   #10
jigadyjenx

Windows 7 Ultimate x64
 
 

I am pretty much in the same boat, but did some dumb things before reading this post. Here is a conversation I had with my tech friend.

i'm getting punished right now, you ever have a dual boot and once your new o/s was good to go you then wanted to get rid (format) of the old os but couldn't. I imagine if both weren't on the same disk i wouldn't be having this problem. found a pretty good page on the subject though
Lude says
ya not sure how that works
Jigady Jenx says
its devasting
pretty sure i just frakked his comp to, i just restarted it and it won't come back online
Lude says
whos
Jigady Jenx says
grandfather's
Jigady Jenx says
8 minutes down
hes gonna be soo pissed lol
Lude says
u have both on logmein?
Jigady Jenx says
yah but that vista is in no shape to actually boot up again
i did a retard move while i was there and just tried to delete everything off it to see if whatever was stopping disk management from formating it would disappear
after i deleted all i could it didn't help but it would still reset fine
apparently dual boot the 2nd o/s uses shiz off the first one to boot, which makes no sense to me.
so when i set vista to unactive that probably stopped it both from booting
Lude says
prolly
Jigady Jenx says
lol
Lude says
dual boot is gz
Jigady Jenx says
its kind of like a car and starter, active booting or w/e is the starter once the car/comp is running you can remove the starter/boot and it will still run, but one you turn engine/comp off it won't start up again
kinda neat

Lude says
ur a big neat guyyyyyyyyyy
Jigady Jenx says
Yah I'm assuming next step will be to pop in win7 disk boot off it and repair 7 which will then add the boot stuff needed and i will be able to format the vista partition. I'm sure it won't go that way.

Whats my next move?
My System SpecsSystem Spec
Reply

 Unable to delete old partition




Thread Tools




Similar help and support threads
Thread Forum
Unable to delete a file
After advice have carried out full clean install of W7 64 bit Profiles left in default location on C:\ The old profile was on E:\ I am unable to delete that folder .... went through it a subfolder at a time deleted all except one tmp file This is blocking me from deleting the folder...
Installation & Setup
Unable to delete a file,can't delete it can't shred it,
I looked at my firewall events earlier and i saw a file had been trying to connect to the internet but had been blocked by my firewall. Whenever i install a program i am unsure of i block the exe file from connecting to the internet until i'm happy its a safe program. The file is...
General Discussion
Unable to delete directory.
I'm hoping somebody can help me here, I recently moved my Dropbox directory and bungled a few things. At the moment everything seems functional except that I cannot delete one of the folders left from before the move. The folder is 0 Bytes. It is Read-Only and I am unable to change that. Under...
Performance & Maintenance
Unable to delete folder
Hey guys. I had installed windows 8 RP on a separate partition. I wanted yo get rid of it so I removed its entry from boot menu but now I am unable to delete the folders left after it such as windows, windows.old and programfiles. The error is that you need permission from trusted installer to...
Installation & Setup
Setup unable to create a new partition or locate an existing partition
I bought a fairly new eMachines E528-2325 from a friend. before buying he decided to use DBAN 2.2.6 to wipe Windows 7 and install Ubuntu 11.04, after buying i requested him to reinstall Windows 7 using usb, so he again used DBAN to wipe the computer. Upon trying to install windows he got the error...
Installation & Setup
Unable to delete
Hi , i have been trying to rearrange the music files on my computer and have deleted all the folders in My Music. When i go to delete the songs in WMP12 i cant and get a message 'Windows Media Player encountered a problem trying to play this file". Luckily i didnt have much music on my computer....
Music, Pictures & Video


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App