Help... I done messed it up! Dual boot win7 and linux mint 19.3

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
joesgarage
Level 1
Level 1
Posts: 8
Joined: Thu Feb 20, 2020 3:50 pm

Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by joesgarage »

I have yet to find my notes... I messed this up over a year ago and it's been sitting ever since.
All was fine. I was playing around with a number of things... from virtual machines to bootable usb drives.
I decided to try to create a bootable usb windowsXP drive. All went well, and I did everything correctly, as far as not confusing drives.
But in the process, I neglected to unplug the harddrive containing the dual boot windows 7 / linux 19.3
How many times prior did I unplug it, and thought it was unplugged only to discover my mistake when I went to plug it back in.
Sure enough, it wouldn't boot. I did do the standard boot rescue/repair... gotta find my notes for that!... Linux boots fine now, but windows 7 still fails and is looking to boot windowsXP. I can look at all my files and all of windows 7 is still there. I didn't format or write to the wrong drive, but it apparently still affected the boot part because it was plugged in?? When I tried to fix it, it tried to fix windowxp boot, not windows 7.

Thought I'd get this posted in hopes someone's been there/done that LOL.
I can't believe I neglected to unplug the HD. I keep this one windows7 machine going for the proprietary software on it that won't load onto newer systems. Mainly because it involves a floppy key diskette. No wireless network and I never plug in cat5 unless this HD is disconnected. But I left it connected at the worse possible time I guess.

Thanks for any input. Hopefully I'll find my notes.
It's a Pavilion tower p6277c-b
8gb ram
Intel core 2 quad cpu Q 8300 @ 2.5Ghz x4
350 4 speed 4 barrel... oh wait, that's not right... :D
deepakdeshp
Level 20
Level 20
Posts: 11338
Joined: Sun Aug 09, 2015 10:00 am

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by deepakdeshp »

Please post output of command

Code: Select all

 inxi -Fxxxrz
in code tags.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 20.3 Cinnamon 64 bit with AMD A6 / 8GB
Mint 20.3 Cinnamon AMD Ryzen3500U/8gb
joesgarage
Level 1
Level 1
Posts: 8
Joined: Thu Feb 20, 2020 3:50 pm

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by joesgarage »

Code: Select all

joe@joe-NY597AA-ABA-p6277c:~$  inxi -Fxxxrz
System:
  Host: joe-NY597AA-ABA-p6277c Kernel: 5.4.0-126-generic x86_64 bits: 64 
  compiler: gcc v: 7.5.0 Desktop: Cinnamon 4.4.8 wm: muffin 4.4.4 
  dm: LightDM 1.26.0 Distro: Linux Mint 19.3 Tricia 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop System: HP-Pavilion product: NY597AA-ABA p6277c v: N/A 
  serial: <filter> Chassis: Hewlett-Packard type: 3 serial: <filter> 
  Mobo: PEGATRON model: Eureka3 v: 1.02 serial: <filter> 
  BIOS: American Megatrends v: 5.10 date: 09/07/2009 
CPU:
  Topology: Quad Core model: Intel Core2 Quad Q8300 bits: 64 type: MCP 
  arch: Penryn rev: A L2 cache: 2048 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 19949 
  Speed: 1995 MHz min/max: 2003/2499 MHz Core speeds (MHz): 1: 1995 2: 1995 
  3: 1995 4: 1995 
Graphics:
  Device-1: Intel 4 Series Integrated Graphics vendor: Hewlett-Packard 
  driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:2e22 
  Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1680x1050~60Hz 
  OpenGL: renderer: Mesa DRI Intel G45/G43 (ELK) v: 2.1 Mesa 20.0.8 
  direct render: Yes 
Audio:
  Device-1: Intel 82801JI HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:3a3e 
  Sound Server: ALSA v: k5.4.0-126-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: e800 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-2: Qualcomm Atheros AR928X Wireless Network Adapter driver: ath9k 
  v: kernel port: e800 bus ID: 03:00.0 chip ID: 168c:002a 
  IF: wlp3s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 698.64 GiB used: 86.54 GiB (12.4%) 
  ID-1: /dev/sda vendor: Seagate model: ST3750528AS size: 698.64 GiB 
  speed: 3.0 Gb/s rotation: 7200 rpm serial: <filter> rev: HP34 scheme: MBR 
Partition:
  ID-1: / size: 169.71 GiB used: 86.54 GiB (51.0%) fs: ext4 dev: /dev/sda6 
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com tricia main upstream import backport
  2: deb http://mirror.cogentco.com/pub/linux/ubuntu bionic main restricted universe multiverse
  3: deb http://mirror.cogentco.com/pub/linux/ubuntu bionic-updates main restricted universe multiverse
  4: deb http://mirror.cogentco.com/pub/linux/ubuntu bionic-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ bionic partner
Info:
  Processes: 203 Uptime: 11m Memory: 7.74 GiB used: 1.01 GiB (13.1%) 
  Init: systemd v: 237 runlevel: 5 Compilers: gcc: 7.5.0 alt: 7 Shell: bash 
  v: 4.4.20 running in: gnome-terminal inxi: 3.0.32 
joe@joe-NY597AA-ABA-p6277c:~$ 
I hope I've done this right!
I'll admit to spending way too long figuring out what/how regarding "in code tags." LOL
Now I get it.
Thanks so much for replying to my post!
deepakdeshp
Level 20
Level 20
Posts: 11338
Joined: Sun Aug 09, 2015 10:00 am

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by deepakdeshp »

Please post output of

Code: Select all

 sudo parted -l;sudo update-grub
.Copy paste the commands.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 20.3 Cinnamon 64 bit with AMD A6 / 8GB
Mint 20.3 Cinnamon AMD Ryzen3500U/8gb
joesgarage
Level 1
Level 1
Posts: 8
Joined: Thu Feb 20, 2020 3:50 pm

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by joesgarage »

Code: Select all

joe@joe-NY597AA-ABA-p6277c:~$  sudo parted -l;sudo update-grub
[sudo] password for joe:         
Model: ATA ST3750528AS (scsi)
Disk /dev/sda: 750GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size    Type      File system  Flags
 1      1049kB  106MB  105MB   primary   ntfs         boot
 2      106MB   358GB  358GB   primary   ntfs
 3      358GB   737GB  379GB   extended               lba
 5      358GB   551GB  193GB   logical   ntfs
 6      551GB   737GB  186GB   logical   ext4
 4      737GB   750GB  12.7GB  primary   ntfs


Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint/theme.txt
Found linux image: /boot/vmlinuz-5.4.0-126-generic
Found initrd image: /boot/initrd.img-5.4.0-126-generic
Found linux image: /boot/vmlinuz-5.4.0-97-generic
Found initrd image: /boot/initrd.img-5.4.0-97-generic
Found linux image: /boot/vmlinuz-5.4.0-96-generic
Found initrd image: /boot/initrd.img-5.4.0-96-generic
Found linux image: /boot/vmlinuz-5.4.0-72-generic
Found initrd image: /boot/initrd.img-5.4.0-72-generic
Found linux image: /boot/vmlinuz-5.4.0-70-generic
Found initrd image: /boot/initrd.img-5.4.0-70-generic
Found linux image: /boot/vmlinuz-5.4.0-66-generic
Found initrd image: /boot/initrd.img-5.4.0-66-generic
Found linux image: /boot/vmlinuz-5.4.0-65-generic
Found initrd image: /boot/initrd.img-5.4.0-65-generic
Found linux image: /boot/vmlinuz-5.0.0-32-generic
Found initrd image: /boot/initrd.img-5.0.0-32-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 on /dev/sda1
Found Windows Recovery Environment on /dev/sda4
done
joe@joe-NY597AA-ABA-p6277c:~$ 
joesgarage
Level 1
Level 1
Posts: 8
Joined: Thu Feb 20, 2020 3:50 pm

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by joesgarage »

Attempting to boot Window 7 yields:
"Windows could not start because of a computer disk hardware configuration problem.
Could not read from the selected boot disk. Check boot path and disk hardware.
Please check the Windows Documentation about hardware disk configuration and your hardware reference manuals for additional information."

I AM able to boot "Windows Recovery Environment (on /dev/sda4)"
And as i recall, it kept trying to fix XP boot? I cannot find my notes... grrrrr...

Linux boots fine. Which I will not need on this machine in the end.

Thanks again!
deepakdeshp
Level 20
Level 20
Posts: 11338
Joined: Sun Aug 09, 2015 10:00 am

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by deepakdeshp »

update-grub only indicates windows 7 and Mint. No XP. Since Mint isn't needed format sda6 after data backup to NTFS partition type. Ext4 partition type can't be accessed from Windows .You have tried boot repair to no joy.
Backup your data to external drive and format the drive and make a fresh install of Windows 7 and XP. Both are out of support since a long time and don't receive any updates,It will be a grave risk exposing these to internet.
Alternatively Try repair of Windows 7 for which I am not aware. Good luck.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 20.3 Cinnamon 64 bit with AMD A6 / 8GB
Mint 20.3 Cinnamon AMD Ryzen3500U/8gb
joesgarage
Level 1
Level 1
Posts: 8
Joined: Thu Feb 20, 2020 3:50 pm

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by joesgarage »

If I can only find my notes...
But as I recall, trying to do boot repair... maybe looking at resulting bootlog files... is where it seems to go wrong and references window xp instead of 7.
All data... like documents, pics,... were all coping long ago...
I'm assuming "backup" doesn't mean saving the software that was running on this OS.
That's why I'm still looking to fix the boot problem.
I definitely don't need XP. It was just something I was dabbling with... making a bootable xp stick... that caused the problem.
So that leaves me the repair of windows 7. I guess that belongs in a windows forum. But did I mention I hate windows? LOL. I've since steered away from the whole dual boot thing. But it was useful back when I had only this one computer and wanted to try Linux... best thing I ever did for sure!
If I can find my notes, or make any progress in the grub/boot area, I will come back with an update.
Again, thanks very much for your help!
deepakdeshp
Level 20
Level 20
Posts: 11338
Joined: Sun Aug 09, 2015 10:00 am

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by deepakdeshp »

You are welcome.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 20.3 Cinnamon 64 bit with AMD A6 / 8GB
Mint 20.3 Cinnamon AMD Ryzen3500U/8gb
mikeflan
Level 12
Level 12
Posts: 4266
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Help... I done messed it up! Dual boot win7 and linux mint 19.3

Post by mikeflan »

Boot repairs probably aren't very hard, but I don't know how to do them. So they are hard for me.

Sounds like you don't have a big problem here. You don't care about XP, so blow it away, give the space to Linux - Problem solved.
I'm assuming "backup" doesn't mean saving the software that was running on this OS.
If you have a drive you really care about, take a whole disk image of it. The only down side is the time (3 hours for me) and the room to save it (roughly 60 - 100GB for me). I do this every 3-4 months. Most are created and never used, but they still serve their function. They are there if needed.
Post Reply

Return to “Installation & Boot”