Fedora Linux Support Community & Resources Center
  #1  
Old 28th September 2017, 01:59 AM
goldov Offline
Registered User
 
Join Date: Jun 2015
Location: Russia
Posts: 24
windows_7firefox
removing both Fedora and Windows 7 from hard drive

Hi, at the moment i have a double boot Windows 7 and Fedora 26 via GRUB(2) menu. when i was in Windows 7 (diskmgt.msc in command line) i noticed that i have 100 Mb of EFI system virtual disk. also, when i was in BIOS in Startup->Boot order, i noticed that there is a virtual disk Fedora, that appeared after the installation of Fedora Linux.
i would like to delete both Fedora 26 and Windows 7 completely, and to make new reinstallation. my questions - 1) how i can delete both Fedora and Windows 7 ? 2) how i can delete EFI system disk that was installed during Fedora installation ? 3) how i can delete GRUB(2) (menu) ? 4) how i can delete Fedora virtual disk from BIOS menu (Boot order) ?
i tried to use Windows 7 installation disk, went to the repair mode and used the command line and issued the commands both "bootrec /fixmbr", and "bootrec /fixboot", but it did not help - GRUB menu, EFI virtual disk (that i can see in Windows disk management utility), and Fedora virtual disk (that i can see in BIOS) are remained. i would appreciate help in the Forum. Thanks.
Reply With Quote
  #2  
Old 28th September 2017, 01:35 PM
nsnbm's Avatar
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,586
linuxfedorafirefox
Re: removing both Fedora and Windows 7 from hard drive

There are lots of ways to clear the hard drive. One way is to boot up a live disk or a rescue disk and fill the hard drive with zeros:
For the mbr, something like:
Code:
dd if=/dev/zero of=/dev/sda bs=1 count=512
For the rest of the disk something like:
Code:
dd if=/dev/zero of=/dev/sda bs=1M
where sda is the first hard drive on your system.
Reply With Quote
  #3  
Old 28th September 2017, 01:50 PM
dswaner Offline
Registered User
 
Join Date: Nov 2008
Posts: 308
linuxfedorafirefox
Re: removing both Fedora and Windows 7 from hard drive

Or, you may want to use the installation media for whatever you are going to install to reformat and repartition the hard drive.

Additional comments:

I would be very cautious about removing or reformatting the EFI partition. Maybe it is OK, and I know there are utilities for creating an EFI partition.
But there is firmware to consider also, and if the wiping of the whole drive results in a "difference of opinion" between the firmware and the EFI
partition, you may end up with a "brick".

Last edited by dswaner; 28th September 2017 at 02:38 PM. Reason: Additional comments
Reply With Quote
  #4  
Old 28th September 2017, 02:59 PM
dswaner Offline
Registered User
 
Join Date: Nov 2008
Posts: 308
linuxfedorafirefox
Re: removing both Fedora and Windows 7 from hard drive

Do an Internet search on "brick firmware uefi".

Additional comments:

You can use the Fedora tool "efibootmgr" to remove Fedora from the efi boot list. From the efibootmgr man page:
Quote:
This application can create and destroy boot entries, change the boot order, change the next running boot option, and more.

Last edited by dswaner; 28th September 2017 at 03:32 PM. Reason: Additional comments
Reply With Quote
  #5  
Old 29th September 2017, 04:34 AM
nsnbm's Avatar
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,586
linuxfedorafirefox
Re: removing both Fedora and Windows 7 from hard drive

What I have found with installing on a clean hard drive is that I needed to use the function key indicated on the first screen from the "BIOS" which showed all the boot options. I've forgotten which function key it is on this computer, but it's clearly indicated on that first screen. With the installation media in place, a dvd in the dvd-drive in my case, after hitting that function key the boot options appear with one of them being for an EFI installation. When choosing that option, the installation proceeds to create an EFI installation. I use custom partitioning to partition the drive, create an EFI partition, and the rest follows cordially to install the distribution without problems.

As I understand it, the EFI partition in FAT format contains software in data which provides the instructions for the EFI firmware (which is located elsewhere) to use for booting.

Last edited by nsnbm; 29th September 2017 at 04:42 AM.
Reply With Quote
  #6  
Old 29th September 2017, 04:00 PM
donatom Offline
Registered User
 
Join Date: Jan 2013
Location: Ventura, CA
Posts: 129
linuxchrome
Re: removing both Fedora and Windows 7 from hard drive

Quote:
Originally Posted by dswaner
I would be very cautious about removing or reformatting the EFI partition . . .
I, too, would be very careful about getting rid of the EFI partition -- especially if it is on a laptop. As dswaner says, firmware support is crucial and on a laptop there is generally a lot more proprietary firmware. You should be able to remove the Fedora efi directory from inside of the the EFI partition with no problem, however.
Reply With Quote
Reply

Tags
drive , fedora , hard , removing , windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
External Hard Drive recognized with my PC w. FEDORA but not w. Windows bserra Hardware & Laptops 24 29th July 2013 02:43 PM
windows usb hard drive on f9 tootal2 Hardware & Laptops 4 8th October 2008 09:47 AM
Fedora 7 , how do u dual boot with windows (same hard drive) ? nikolaig Installation, Upgrades and Live Media 17 14th November 2007 01:42 AM
Sharing Hard Drive between Fedora 6 and Windows XP kotrt Hardware & Laptops 3 25th April 2007 05:35 AM
Need major help removing a secondary hard drive gobgook Using Fedora 36 17th October 2006 05:19 PM


Current GMT-time: 13:02 (Wednesday, 18-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat