Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Installing/Restoring Grub2 issues


  • Please log in to reply
48 replies to this topic

#1 mralias518

mralias518

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:54 PM

Posted 23 March 2015 - 09:27 AM

Well, I'm at my wits end with this project, however I will post this in the hopes someone has a solution to this problem other than re-install Linux Mint.

 

1. If this post belongs somewhere else please feel free to move it

2, I will post beow a gparted image of my drive/partitions.

3. The drive is a clone of another drive which now has the same issues

4. When I boot the system, grub comes up but does not see the sda5 (linux Mint partition). I know this by typing ls at grub failure and I only see (hd0) (hd0, msdos1) and the cd drive.

5, I did live boot into linux cd and followed the instrucitons for chroot install as all others would not work. Here is the results of that install

 

 

mint@mint ~ $ sudo apt-get install mdadm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Recommended packages:
  default-mta mail-transport-agent
The following NEW packages will be installed:
  mdadm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 361 kB of archives.
After this operation, 1,191 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main mdadm amd64 3.2.5-5ubuntu4 [361 kB]
Fetched 361 kB in 1s (356 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mdadm.
(Reading database ... 157682 files and directories currently installed.)
Preparing to unpack .../mdadm_3.2.5-5ubuntu4_amd64.deb ...
Unpacking mdadm (3.2.5-5ubuntu4) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 33 changed doc-base files, 6 added doc-base files...
Registering documents with scrollkeeper...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mdadm (3.2.5-5ubuntu4) ...
Generating mdadm.conf... done.
 Removing any system startup links for /etc/init.d/mdadm-raid ...
update-initramfs is disabled since running on read-only media
update-grub is /usr/sbin/update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.
 * Starting MD monitoring service mdadm --monitor                        [ OK ]
Processing triggers for ureadahead (0.100.0-16) ...
mint@mint ~ $ sudo mdadm --assemble --scan
mdadm: No arrays found in config file or automatically
mint@mint ~ $ sudo fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xd027b1e9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   977913855   488955904    7  HPFS/NTFS/exFAT
/dev/sda2       977915902  1953523711   487803905    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5       977915904  1731573759   376828928   83  Linux
/dev/sda6      1936769024  1953523711     8377344   82  Linux swap / Solaris
/dev/sda7      1731575808  1936766975   102595584   83  Linux

Partition table entries are not in disk order
mint@mint ~ $ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="201C7CF21C7CC3F6" TYPE="ntfs"
/dev/sda5: UUID="af18f345-cafc-41e0-abe2-6c62cc8102f6" TYPE="ext4"
/dev/sda6: UUID="fbef28c9-630d-4ad5-84af-7146b44ead6a" TYPE="swap"
/dev/sda7: LABEL="time shift" UUID="5f808d1a-04e3-46a1-81a7-3aec0d7e8463" TYPE="ext4"
/dev/sr0: LABEL="Linux Mint 17.1 Cinnamon 64-bit" TYPE="iso9660"
mint@mint ~ $ df -Th
Filesystem     Type       Size  Used Avail Use% Mounted on
/cow           overlayfs  3.9G  150M  3.7G   4% /
udev           devtmpfs   3.9G  8.0K  3.9G   1% /dev
tmpfs          tmpfs      785M  1.5M  784M   1% /run
/dev/sr0       iso9660    1.5G  1.5G     0 100% /cdrom
/dev/loop0     squashfs   1.5G  1.5G     0 100% /rofs
none           tmpfs      4.0K     0  4.0K   0% /sys/fs/cgroup
tmpfs          tmpfs      3.9G  8.0K  3.9G   1% /tmp
none           tmpfs      5.0M     0  5.0M   0% /run/lock
none           tmpfs      3.9G  856K  3.9G   1% /run/shm
none           tmpfs      100M   16K  100M   1% /run/user
mint@mint ~ $ sudo mount /dev/sda5 /mnt
mint@mint ~ $ sudo mount /dev/sda1 /mnt
Windows is hibernated, refused to mount.
Failed to mount '/dev/sda1': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.
mint@mint ~ $ sudo mount /dev/sda1 /mnt/boot
Windows is hibernated, refused to mount.
Failed to mount '/dev/sda1': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.
mint@mint ~ $ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
mint@mint ~ $ sudo chroot /mnt
mint / # grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
mint / # update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
using custom appearance settings
Found linux image: /boot/vmlinuz-3.13.0-37-generic
Found initrd image: /boot/initrd.img-3.13.0-37-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
  No volume groups found
Found Windows 8 (loader) on /dev/sda1
done
mint / #
 

 

6. when I reboot I get the grub error partiton not found and ls displays what is posted above.

 

7. Here is gparted image of the drive

 

c5VKo8M.png

 

8. Any help would be greatly appreciated. Thanks in advance.


Linux Mint 17.1 Rebecca & Windows 8.1 Dual Boot.

Dell E6410 i5 7.60518 Gib of ram

 


BC AdBot (Login to Remove)

 


#2 myrti

myrti

    Sillyberry


  • Malware Study Hall Admin
  • 33,772 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:At home
  • Local time:01:54 AM

Posted 23 March 2015 - 09:31 AM

Hi,

this is the right area to post this.

What is sda2 and can you delete it without loosing the three partitions that are inside of it?

regards
myrti

is that a bird?  a plane? nooo it's the flying blueberry!

If I have been helping you and haven't replied in 2 days, feel free to shoot me a PM! Please don't send help request via PM, unless I am already helping you. Use the forums!

 

Follow BleepingComputer on: Facebook | Twitter | Google+


#3 mralias518

mralias518
  • Topic Starter

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:54 PM

Posted 23 March 2015 - 09:48 AM

Hi myrti,

 

The sda2 is the extended partition which holds all the linux related partitions. My understanding is that the max primary partitions on any one hard drive  is 4. You can have as many partition as you want under an extended partition. When installs were done of the OS's it was not my intent to make an extended partition but I must have fat figured something in gparted and this is what I was stuck with. The original of the system did work but has since run into the same grub boot issues. I suspect I am stuck with it unless someone knows how to remove it and keep all the other partitions. The good news is I have three 1 TB hard drives with the same install as above so I can experiment and if something goes wrong I can always clone another one using Clonezilla. The down side is it takes about 3 hours to do that as it does a block by block copy.

 

I can also boot with windows cd and repair the mbr and boot to windows but that does not do me any good for the LM which is just the way I like it.  


Linux Mint 17.1 Rebecca & Windows 8.1 Dual Boot.

Dell E6410 i5 7.60518 Gib of ram

 


#4 myrti

myrti

    Sillyberry


  • Malware Study Hall Admin
  • 33,772 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:At home
  • Local time:01:54 AM

Posted 23 March 2015 - 09:52 AM

I wonder if this is part of your problem:

Partition 2 does not start on physical sector boundary.


Did the install work previously? What happened to make it stop working?

What kind of Windows are you dualbooting with? If it's Win8 you should have UEFI which allows for as many primary partitions as your heart desires (or almost)

regards
myrti

is that a bird?  a plane? nooo it's the flying blueberry!

If I have been helping you and haven't replied in 2 days, feel free to shoot me a PM! Please don't send help request via PM, unless I am already helping you. Use the forums!

 

Follow BleepingComputer on: Facebook | Twitter | Google+


#5 mralias518

mralias518
  • Topic Starter

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:54 PM

Posted 23 March 2015 - 10:03 AM

1. Yes it was working before. However with cloning the original a few times something went wrong (not sure how) and now all of these drives do the same thing.

 

2. The dual boot is Windows 8.1 and LM 17.1

 

3. I know now that I should have used just primary partitions but as you most likely know I can not delete the extended without deleting all the linux partitions. The sda7 partition is timeshift backup storage of linux.   


Linux Mint 17.1 Rebecca & Windows 8.1 Dual Boot.

Dell E6410 i5 7.60518 Gib of ram

 


#6 myrti

myrti

    Sillyberry


  • Malware Study Hall Admin
  • 33,772 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:At home
  • Local time:01:54 AM

Posted 23 March 2015 - 03:06 PM

Hi,

 

is any of these drives still the original or are they all clones of an original copy that no longer exists.

 

Do you have secureboot enabled? Is it possible that that is causing a problem/

 

regards

myrti


is that a bird?  a plane? nooo it's the flying blueberry!

If I have been helping you and haven't replied in 2 days, feel free to shoot me a PM! Please don't send help request via PM, unless I am already helping you. Use the forums!

 

Follow BleepingComputer on: Facebook | Twitter | Google+


#7 mralias518

mralias518
  • Topic Starter

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:54 PM

Posted 23 March 2015 - 04:12 PM

I do have the original which is not working either. I had to fix Mbr to get into Windows 8.1 but the other partitions are still there. As far as secureboot goes, according to system info secureboot is unsupported and bios is set to legacy. 


Linux Mint 17.1 Rebecca & Windows 8.1 Dual Boot.

Dell E6410 i5 7.60518 Gib of ram

 


#8 myrti

myrti

    Sillyberry


  • Malware Study Hall Admin
  • 33,772 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:At home
  • Local time:01:54 AM

Posted 23 March 2015 - 04:19 PM

Hi,

 

As far as I know Win8 does not boot if secureboot is disabled. Where do you see that secureboot is unsupported? Do you know where grub is installed?

 

regards

myrti


is that a bird?  a plane? nooo it's the flying blueberry!

If I have been helping you and haven't replied in 2 days, feel free to shoot me a PM! Please don't send help request via PM, unless I am already helping you. Use the forums!

 

Follow BleepingComputer on: Facebook | Twitter | Google+


#9 mralias518

mralias518
  • Topic Starter

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:54 PM

Posted 23 March 2015 - 04:29 PM

Here is one of the checks I used:

 

Windows PowerShell
Copyright © 2014 Microsoft Corporation. All rights reserved.
 
PS C:\Windows\system32> cd..
PS C:\Windows> cd system32
PS C:\Windows\system32> confirm-SecureBootUEFI
confirm-SecureBootUEFI : Cmdlet not supported on this platform: 0xC0000002
At line:1 char:1
+ confirm-SecureBootUEFI
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotImplemented: (Microsoft.Secur...BootUefiCommand:ConfirmSecureBootUefiCommand) [Confir
   m-SecureBootUEFI], PlatformNotSupportedException
    + FullyQualifiedErrorId : GetFWVarFailed,Microsoft.SecureBoot.Commands.ConfirmSecureBootUefiCommand
 
PS C:\Windows\system32>
 
Here is the other:
 
4Yzpgbm.jpg

Linux Mint 17.1 Rebecca & Windows 8.1 Dual Boot.

Dell E6410 i5 7.60518 Gib of ram

 


#10 mralias518

mralias518
  • Topic Starter

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:54 PM

Posted 23 March 2015 - 04:31 PM

As far as where grub is installed, I'm not even sure it is at this point. I think it tried to install to mbr of sda1 which makes no sense to me. Is there a way to check from inside windows or do I need to live boot into a linux cd and run some stuff in terminal? 


Linux Mint 17.1 Rebecca & Windows 8.1 Dual Boot.

Dell E6410 i5 7.60518 Gib of ram

 


#11 myrti

myrti

    Sillyberry


  • Malware Study Hall Admin
  • 33,772 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:At home
  • Local time:01:54 AM

Posted 23 March 2015 - 04:35 PM

Hi,

 

I'm surprised.. I thought Win8 wouldn't boot if secureboot is disabled. I'm guessing you have a motherboard that doesn't support uefi?

 

If your grub was installed on the mbr, then it is gone now, since you rewrote the mbr. Usually you can choose to install it on the partition or on the mbr. But the mbr is the default.

 

Reinstalling grub would need to be done from a linux live-cd. Windows doesn't support any of the linux file systems by default, so any checking you will probably need to do from a live-cd. ( https://help.ubuntu.com/community/Grub2/Installing )

 

regards

myrti


is that a bird?  a plane? nooo it's the flying blueberry!

If I have been helping you and haven't replied in 2 days, feel free to shoot me a PM! Please don't send help request via PM, unless I am already helping you. Use the forums!

 

Follow BleepingComputer on: Facebook | Twitter | Google+


#12 mralias518

mralias518
  • Topic Starter

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:54 PM

Posted 23 March 2015 - 05:07 PM

Actually there is an uefi selection in the bios but mine is set to legacy. If click the uefi it tells me it can not find any OS. The computer is a Dell Latitude E6410 (i5).

 

As far as installing from the live drive I tried that several ways. I posted the latest attempt in my original post. I tried the basic install first using the comands for sudo commands for mnt sda5 and install grub into sda but it came up with  error: failed to get canonical path of /cow. So I had to try it using the chroot method which did show that it installed as indicated in my first post. But on reboot, same old grub error. 


Linux Mint 17.1 Rebecca & Windows 8.1 Dual Boot.

Dell E6410 i5 7.60518 Gib of ram

 


#13 myrti

myrti

    Sillyberry


  • Malware Study Hall Admin
  • 33,772 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:At home
  • Local time:01:54 AM

Posted 23 March 2015 - 05:53 PM

Hi,

 

ok, i misunderstood.. I thought the error was appearing after the imaging, not after trying to reinstall grub. Just to clarify you get the error with /cow when you run sudo grub-install /dev/sda?

 

regards

myrti


is that a bird?  a plane? nooo it's the flying blueberry!

If I have been helping you and haven't replied in 2 days, feel free to shoot me a PM! Please don't send help request via PM, unless I am already helping you. Use the forums!

 

Follow BleepingComputer on: Facebook | Twitter | Google+


#14 mralias518

mralias518
  • Topic Starter

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:54 PM

Posted 23 March 2015 - 09:04 PM

Yes that is correct. So I used chroot as outlined in the link you provided and the result of that is posted above in the first post near the bottom. It looks like it install grub but when I boot it boots to grub rescue. 

 

I even tried to blow off all the partitions except wndows, repaired mbr in windows and booted into it to make sure it was working. Then tried a fresh install of LM making a primary ext4 partition with /, a swap partition and another primary partition ext4 with /home, installed into the linux mint into the sda2 partition and rebooted and still came up with a grub error which means it boots to grub rescue. I can only conclude that something in the sda1 windows partition is not  working and playing well with others.

 

Is the mbr written inside the sda1 partition or does it write outside all partitions? I suspect that windows is not letting grub write in the sda1 mbr area. Or I have it all wrong and there is another reason why. 


Edited by mralias518, 23 March 2015 - 09:12 PM.

Linux Mint 17.1 Rebecca & Windows 8.1 Dual Boot.

Dell E6410 i5 7.60518 Gib of ram

 


#15 paul88ks

paul88ks

  • Members
  • 1,323 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Dallas,Texas
  • Local time:06:54 PM

Posted 24 March 2015 - 02:53 AM

Did you update the grub after you installed it?  Or did you install it?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users