LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 12-31-2020, 04:37 PM   #1
AnneF
Member
 
Registered: Oct 2020
Location: North Carolina Mountains
Distribution: Just making the switch to Linux
Posts: 78

Rep: Reputation: Disabled
Linux install apparently destroyed my Windows MBR or Boot partition (Win7 on a separate hard drive)


There are 3 hard drives, with Win7 Pro 64-bit on 500GB Disk0

(sda1) Fat32 labeled "Filesystem, EFI"
(sda2) labeled "MS reserved"...

(...are the only places I see where the Win7 boot information could be - I assume the FAT32 partition contains the Boot Info)

(C) (sda3) NTFS labeled "C-System"
(D) (sda4) NTFS Labeled "D-NTFS-Data"

----------------------------

I couldn't find out what I needed to know about Linux without actually installing it {on 500GB Disk1 sdb (ext4), partitioned as sdb1 (/boot) (sdb5 (/) FileSystemRoot, sdb6 (/Swap), sdb7 (/home). (Rufus).

However, the Ubuntu 20.04 Linux install apparently destroyed/overwrote my Windows MBR and/or Windows7 Boot Loader, so that now I cannot boot into Windows 7. I'm desperate because all my work software is on the window disk drive.

I have Acronis True Image files of Partition C (Win7 System), as well as backups of Partition D (my data) and I have tried to restore the C partition (including track 0) by booting from CD and restoring an image. This did not work, I suppose because the problem is not in Partition C, but in the two preceding (but hidden if I remember correctly) first two partitions. When I tried to boot from CD and "Repair" the Win7 install (I don't remember seeing anything that would allow me to "restore" the MBR or Boot Loader), that did not work either.

I tried to re-install Windows7, but apparently the CD I have won't do a clean install.
I do have an old Windows XP CD that IS an install CD - is the boot info the same in both Win7 & XP?

I read what's on the forum that pertained to this problem. Nice to know I'm not the only one this has happened to, but I didn't understand the suggestions well enough to implement them.

I had been concerned that Windows would not play nice with Linux - I had no idea that installing Linux would kill Windows like this.

Can any of you help me with steps 1,2,3 etc., in plain English, that I need to do to be able to boot into Windows again? I'm dead in the water and wouldn't be writing this if I couldn't get into Linux. However, I have work that I cannot do in Linux at this time, and also the Firefox that Linux installed is so old that profile-data- transfer doesn't even exist in it, plus after a few uses, Firefox lost formatting and often won't render pages correctly enough to use. I tried to find a Linux Firefox v80 that I could install to this distro, but found I have to "wait till Ubuntu updates it".

I'm just about ready to cry right now. I hope one of you brilliant help-givers can help me get back into Windows7. Thank you for being so generous with your time to provide this forum to help boneheads like me. --AnneF
.

Last edited by AnneF; 12-31-2020 at 06:32 PM. Reason: Added sentence. Spelling.
 
Old 12-31-2020, 04:54 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,344

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
generate a boot-info file and post so someone can give good advice.
https://help.ubuntu.com/community/Boot-Info
on a side note windows 7 isn't normally installed in efi mode but legacy/csm mode. If the ubuntu is installed in efi mode, the grub boot-loader won't be able to boot windows 7. If windows 7 is still intact you may be able to go into the bios boot menu, select the hard drive option, not sure what it will be called, it won't have efi in the name.

Last edited by colorpurple21859; 12-31-2020 at 05:03 PM.
 
Old 12-31-2020, 05:38 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I second all said above - even if the bit about EFI doesn't make any sense to you. We really that boot info data.

I might also add that you shouldn't attempt any more recoveries - especially do not use that XP disk. In all likelihood everything is ok, and you just need to get into the BIOS and select the correct entry to boot Win7.
 
Old 12-31-2020, 06:04 PM   #4
AnneF
Member
 
Registered: Oct 2020
Location: North Carolina Mountains
Distribution: Just making the switch to Linux
Posts: 78

Original Poster
Rep: Reputation: Disabled
Thank you. I didn't get as far as producing a report...

ubuntu@ubuntu:~$ sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
Simple tool to repair frequent boot problems.

Website: https://sourceforge.net/p/boot-repair/home
More info: https://launchpad.net/~yannubuntu/+a...tu/boot-repair
Press [ENTER] to continue or Ctrl-c to cancel adding it.
...................................................................> I PRESSED "ENTER" HERE
sudo apt-get install -y boot-Error: retrieving gpg key timed out.
iubuntu@ubuntu:~$ sudo apt-get install -y boot-info && boot-info
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package boot-info
ubuntu@ubuntu:~$

Looks like I need a pkg called "boot-info" that I don't have?
How would I get that? --AnneF
 
Old 12-31-2020, 06:08 PM   #5
AnneF
Member
 
Registered: Oct 2020
Location: North Carolina Mountains
Distribution: Just making the switch to Linux
Posts: 78

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
I second all said above - even if the bit about EFI doesn't make any sense to you. We really that boot info data.

I might also add that you shouldn't attempt any more recoveries - especially do not use that XP disk. In all likelihood everything is ok, and you just need to get into the BIOS and select the correct entry to boot Win7.

I did try to change the boot order with the windows HD first in line (I'm 99% sure I did that) with no boot at all resulting, just errors saying either nothing or that something wasn't found. I'll do that again and I'll post back only if it worked.


AnneF
 
Old 12-31-2020, 06:16 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,344

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
This is another way to produce the boot-info file https://sourceforge.net/projects/boot-repair-cd/files/
 
Old 12-31-2020, 06:23 PM   #7
AnneF
Member
 
Registered: Oct 2020
Location: North Carolina Mountains
Distribution: Just making the switch to Linux
Posts: 78

Original Poster
Rep: Reputation: Disabled
I was wrong. When I moved the Windows Disk to the top of the boot order list, it did try to boot windows, but didn't get far.
It was rough white on black, kind of like safe mode, with a progress bar that said, "Windows is loading files". Then it gave me a black screen and then apparently fell through the bios boot order to the Linux Disk and booted Linux.

Did I do something wrong while trying to get the boot-repair report? Or am I missing a file/pkg called "boot-info"?

AnneF

P.S. I have to logoff now, but I'll check back in the morning. Thank you so much for your assistance with this.

Last edited by AnneF; 12-31-2020 at 06:25 PM. Reason: add P.S.
 
Old 12-31-2020, 06:31 PM   #8
AnneF
Member
 
Registered: Oct 2020
Location: North Carolina Mountains
Distribution: Just making the switch to Linux
Posts: 78

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
This is another way to produce the boot-info file https://sourceforge.net/projects/boot-repair-cd/files/

Thanks. Do I have something in Ubuntu 20.04 that will burn the ISO to a CD? --Anne


BTW I'm running Win7 Pro 64-bit, if that makes any difference.

Last edited by AnneF; 12-31-2020 at 06:34 PM. Reason: Add Phrase
 
Old 12-31-2020, 06:33 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,344

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Open a terminal run these two commands,
Code:
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
Code:
sudo apt-get install -y boot-info && boot-info

Last edited by colorpurple21859; 12-31-2020 at 06:36 PM.
 
Old 12-31-2020, 06:46 PM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,344

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Quote:
Thanks. Do I have something in Ubuntu 20.04 that will burn the ISO to a CD? --Anne
right-click the iso should give an option to burn to cd.
The two commands in the previous post should allow you to install and run the boot-info script.

Quote:
BTW I'm running Win7 Pro 64-bit, if that makes any difference.
No,
It doesn't matter what version of windows 7 your using.
 
Old 01-01-2021, 02:08 PM   #11
AnneF
Member
 
Registered: Oct 2020
Location: North Carolina Mountains
Distribution: Just making the switch to Linux
Posts: 78

Original Poster
Rep: Reputation: Disabled
.
Hi y'all, I'm back, but still with no joy. Here's what I've done so far today...

I changed my BIOS boot sequence back to (1) USBstick, (2) CD/DVD, (3) sdb-Ubuntu, (4) sda C:Windows

I tried to burn the boot-repair-disk-64bit.ISO to DVD:
I put a new DVD into reader...
Right-clicked .ISO file & chose the wrong item ( (these are not exact quotes, just what I remember)
Right-clicked .ISO file again & chose to OPEN WITH OTHER APP, and then from the resulting window, chose "DISK IMAGE WRITER" (A window opened Titled: "RESTORE DISK IMAGE, showing <disk boot-repair-disk-64bit.ISO> as source and asked me for destination, however CD/DVD was greyed out and not selectable.)
I have tried this with the ISO both mounted and unmounted.

I couldn't find any choice that offered Create or Burn Disk Image.

I tried again with an empty USB-stick inserted, but USB wasn't offered as a destination at all.
(I know the USB-stick has a Linux-readable file system because Linux shows it with the proper name in the left panel and I've written to it from Linux before.)

I'm assuming the new CD/DVD has FAT32 file system (Ubuntu shows it in left panel as "blank" CD/DVD), but I don't know how to tell if this is true, or not.

================================================================================================

TERMINAL:

I pasted my first try of doing this in the 4th post box from the top. This is my second try. If I made a syntax error, I can't see it.

...............WITH THIS TRY, i HAD A BLANK CD/ROM IN THE READER AND AN EMPTY USB-STICK IN A SLOT
...............(LEFT FROM TRYING TO BURN THE ISO, ABOVE)

xxx@YODA:~$ sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
[sudo] password for xxx:
Simple tool to repair frequent boot problems.

Website: https://sourceforge.net/p/boot-repair/home
More info: https://launchpad.net/~yannubuntu/+a...tu/boot-repair
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Ign:1 cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal InRelease
Err:2 cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:5 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal InRelease [17.5 kB]
Get:6 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main i386 Packages [1,972 B]
Ign:7 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main amd64 Packages
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Ign:7 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main amd64 Packages
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Ign:7 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main amd64 Packages
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Ign:7 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main amd64 Packages
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Ign:7 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main amd64 Packages
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Err:7 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main amd64 Packages
Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable) Could not connect to ppa.launchpad.net:80 (91.189.95.85), connection timed out [IP: 91.189.95.85 80]
Err:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable) [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

................BEFORE I TRIED AGAIN, I REMOVED THE CD AND THE USB STICK:

xxx@YODA:~$ sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
Simple tool to repair frequent boot problems.

Website: https://sourceforge.net/p/boot-repair/home
More info: https://launchpad.net/~yannubuntu/+a...tu/boot-repair
Press [ENTER] to continue or Ctrl-c to cancel adding it.

........................HERE I PRESSED "ENTER"

Ign:1 cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal InRelease
Err:2 cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:5 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal InRelease [17.5 kB]
Get:6 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main i386 Packages [1,972 B]
Get:7 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main amd64 Packages [1,972 B]
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Ign:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Err:8 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal/main Translation-en
Cannot initiate the connection to ppa.launchpad.net:80 (2001:67c:1560:8008::19). - connect (101: Network is unreachable) Could not connect to ppa.launchpad.net:80 (91.189.95.85), connection timed out [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

...............EVEN THO THE FIRST SUDO LINE DIDN'T WORK, I RAN THE SECOND ANYWAY TO SEE RESULT

xxx@YODA:~$ sudo apt-get install -y boot-info && boot-info
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package boot-info
xxx@YODA:~$

.......... ideas?? ........... Thanks, Anne

Last edited by AnneF; 01-01-2021 at 03:17 PM. Reason: added information
 
Old 01-01-2021, 03:11 PM   #12
AnneF
Member
 
Registered: Oct 2020
Location: North Carolina Mountains
Distribution: Just making the switch to Linux
Posts: 78

Original Poster
Rep: Reputation: Disabled
.
Additional Info about CD/DVD:

Verbatim DataLifePlus DVD-R 4.7GB up to 16x

I can't see anything on the DVD writer except DVD+R DL and Multi-Recorder Re-Writable
I'm 99.9% sure I've used these DVDs before on this machine.
I have READ other DVDs on this machine in both Linux and Windows.
.
 
Old 01-01-2021, 03:38 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,344

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
what happens when you run
Code:
sudo apt update
 
Old 01-01-2021, 03:43 PM   #14
AnneF
Member
 
Registered: Oct 2020
Location: North Carolina Mountains
Distribution: Just making the switch to Linux
Posts: 78

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post

on a side note windows 7 isn't normally installed in efi mode but legacy/csm mode.
If the ubuntu is installed in efi mode, the grub boot-loader won't be able to boot windows 7.
If windows 7 is still intact you may be able to go into the bios boot menu, select the hard drive option, not sure what it will be called, it won't have efi in the name.
This Windows 7 OS is what was installed on this PC (Lenovo 64-bit) when I got it (off lease from a business) and I've not changed it. I've been using it like this for several years (in Windows).

I looked up UEFI and don't believe I have that - I have a legacy BIOS; it still looks the same as what I have had for 10 years or more. I also installed Ubuntu with legacy BIOS. I looked up UEFI before I installed it.

I'm confused as to why it looks like I have UEFI? Where do you see that?

Thanks, Anne
 
Old 01-01-2021, 04:04 PM   #15
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by AnneF View Post
Ign:1 cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal InRelease
Err:2 cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal Release
At a guess, it seems like your electronic marvel is searching the cdrom for the relevant info instead of a mirror.

Which would mean you have to edit your sources/mirror list file to place an '#' against the cdrom and remove the '#' from a mirror.

The file you need to edit is /etc/apt/sources.list which will contain a long list of mirrors/websites......... pick a mirror close to you.

Quote:
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
The machine is saying it is searching 'cdrom://Ubuntu20.04.1 LTS to do what you have told it to do.
Quote:
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Have you read the man page suggested above?

If you haven't type
Code:
man apt-secure
When you have read enough type q to exit.

Once you have selected your mirror you'll probably need to update your electronic marvel before trying to install anything.

By the way, it is nice to read a relative linux newbie has an external copy of their data safe and secure.

Last edited by quickbreakfast; 01-01-2021 at 04:05 PM. Reason: insert a missing word
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition/format advice: SSD + HDD, MBR/GPT mixture, win7 x64 dual-boot dad_ Linux - Hardware 6 01-17-2015 12:34 PM
UEIF Dual Boot Win7 & CentOS only boots Win7 wigglytoes Linux - General 3 12-30-2013 05:53 AM
Debian,Raid1, boot and totally destroyed hard drive replacement test Doctor_House Linux - Server 0 03-19-2013 03:44 AM
Dual-boot Linux Mint and XP destroyed XP MBR Shoebox49 General 13 05-11-2012 08:59 AM
Which program can boot a copy of the MBR (fake MBR) using mbr.bin Xeratul Linux - Software 6 12-03-2010 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration