LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 04-05-2018, 07:00 PM   #1
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

Rep: Reputation: 15
Installed Mint 18.3 while hibernating Windows


My wife finally gave up on Windows and asked me to install Linux. I zapped all the Windows partitions except one called Data.

The first sign of trouble was that the partition tool could not mount the NTFS Data partition. No problem, just mark the partition 'do not use', I can sort that out later. The installation finished and I rebooted. Not much happened.

So I decided too look at the BIOS. All the boot order options had gone. I reverted the BIOS to defaults and nothing interesting changed. So I put the USB stick back in and it booted to the Mint demo mode.

Now I clicked on the Data drive and received a long error message saying that it is unable to mount the /media/mint/Data ...exited with non zero status... unclean file system... Metadata kept in Windows cache refused to mount... NTFS partition in unsafe state. Return to Windows and shutdown properly or mount the volume read only.

It seems that I wrongly assumed that the computer had been shut down
and was in hibernate mode.

I need to know how to boot using the HDD. It would also be very useful to be able to access the Data drive
 
Old 04-05-2018, 07:58 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
No Linux system I am aware of will mount a hibernated ntfs partition which appears your case because that could corrupt the filesystem. Windows automatically by default hibernates, I guess so that it appears to boot faster? You should have turned off hibernation and fast boot and anything related before you removed windows. Turn off anything related to fast boot/hibernation in the BIOS. Not sure that will work but...? If you can boot Mint, you should be able to access the partition in read only mode, see the link below for simple instructions.

https://www.quora.com/How-do-I-mount...mode-in-Ubuntu

If you don't have windows to boot to to shut down properly, you may have to then copy the data from the windows partition to another windows partition you create.

Last edited by yancek; 04-05-2018 at 08:00 PM.
 
Old 04-05-2018, 07:59 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
so you do or do not have linux installed on hdd?
it is linux that is giving you greaf about the hdd
"exited with non zero status... unclean file system... Metadata kept in Windows cache refused to mount.."

that is because Windows marks all ntfs with some bit thingy that causes it to give you that error in Linux unless you shut Windows down not in hibernation, It is because it is in hibernation it marks these ntfs partitions with that by whatever means to give anything such as Linux that error.

It is to preserve the state of all drives until Windows is brought out of hibernation.

What I did and do, I turned off hibernation, and fast boot in advance power setting in Windows, and I always reboot Windows then let grub take me to Linux. Keeping the ntfs partitions unmarked by whatever means Windows marks them to set it unusable because it thinks it's rebooting.

Last edited by BW-userx; 04-05-2018 at 08:07 PM.
 
Old 04-05-2018, 08:19 PM   #4
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
You can access a hibernated Windows drive by deleting the hyberfile.sys. NOTE: DO NOT DO THIS ON A WORKING WINDOWS INSTALL!!! Windows will self-destruct it's bootloader and that is no fun to fix.

Edit: Here you go. http://www.hecticgeek.com/2013/01/mo...u-hybrid-boot/

Last edited by Mill J; 04-05-2018 at 08:24 PM.
 
Old 04-06-2018, 08:52 AM   #5
zaphod_es
Member
 
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 15
Cannot boot from HDD

The hint about hiberfile.sys put me on the right track. This command sorted the problem with the NTFS Data drive:
Code:
sudo ntfsfix /dev/sda5
The system is still unbootable from the HDD. I confirm that I did a full install onto the hard drive and it completed successfully including installing GRUB.

It boots straight into the BIOS which sees the HD and has selected SATA MODE AHCI. The only boot options visible are:.
Fast Boot Disabled
Launch CSM Disabled (if I enable CSM it restarts with it disabled)

Before it showed the hard drive, a couple of USB options - all the usual stuff. It has remembered something as it will boot from a USB stick. From there I can see the hard drive.

My guess was that Windows is still fighting from the grave.Probably the boot flag is not on /dev/sda2 All this stuff is beyond my pay grade, the last time I had a windows box it was running XP.

I fired up gparted and found that /dev/sda2 was not flagged as bootable, I have no idea why. I changed this and rebooted but nothing had changed.

What do I try next?

I don't mind doing a fresh install if that might help.
 
Old 04-06-2018, 09:04 AM   #6
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Are you trying to install as efi or legacy? if your installing as efi, my guess is you removed the Windows boot partition which is also where Linux would write its bootloader. To fix you have to create a small < 1gb fat32 EFI partition in the beginning of the drive and give it bootable flag.

Another way to do this is boot Linux as legacy and install grub to your mbr, this should work great since Windows no longer needs to boot as EFI.
 
Old 04-06-2018, 09:23 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
lets recap: you installed Linux while Windows was in Hibernation mode. This caused it to fail to even boot into Linux using grub that is installed onto /dev/sda.

You have no access to your NTFS Partitions whatsoever due to the state that Windows was in while installing Linux. It caused yourself to no longer be able to boot into Windows in order to take it out of Hibernation mode so it will set all ntfs partition back to a normal writable and readable state because grub is no even working.


Hopefully you have a means to burn to a usb stick, if yes. I'd burn supergrub2 to a usb stick so you can hopefuly boot into Windows and hopefully take it out of hibernation so it can reset your NTFS Partitions, and hopefully you didn't screw it up by messing with the hiberfile.sys file.

whither or not you have to reinstall linux and grub is beyond me. The important part I think is to get Windows to reset your NTFS partitions to normal so you can get to your data again that is on them.

https://www.supergrubdisk.org/super-grub2-disk/

this is MBR not EFI line of thinking

Last edited by BW-userx; 04-06-2018 at 09:27 AM.
 
Old 04-06-2018, 09:29 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Which version of windows did you have installed?
Was it an EFI install? If 8 or 10 pre-installed, most likely it was.
Did you install Mint EFI? If you boot the Mint install medium and run this command from a terminal, it will show if an EFI partition exists:

Quote:
sudo parted -l
Lower Case Letter L in the command.

Might be best to see more details which you can get by booting the Mint install medium and going to the site below. Download boot repair using the 2nd option (ppa) and run it selecting the option to Create BootInfo Summary and do not try to repair. You should get a link to post here which will show enough details so someone can suggest a possible solution.

https://help.ubuntu.com/community/Boot-Repair
 
  


Reply

Tags
boot failure, hibernate, installation, ntfs, windows 10



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
[SOLVED] I have Linux mint installed, but i m unable to install windows 10 jsch Linux - Newbie 3 12-29-2015 07:50 AM
[SOLVED] Dual booting Windows 7 on already installed Linux Mint 17.1 Sepulcher Linux - Newbie 5 06-06-2015 06:46 AM
Installed Mint 16 over Mint 15, windows 7 is gone mystictomato Linux - Newbie 2 04-17-2014 02:55 PM
Bad: problems in booting windows when linux mint was installed Anil Gaihre Linux - Newbie 8 07-12-2012 01:39 PM
Dual install Mint on pre-installed Windows 7 sabbyATL Linux - Newbie 11 01-17-2012 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 02:28 PM.

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