Windows improper shutdown, fedora won't start
Hi all!
Running Fedora 20 and Win 7 together on a laptop. Had windows running, shut the lid (I don't know if it went on standby, hibernate, or just screen-off), and forgot about it. Battery died, so I go to boot fedora, and kept getting weird errors, it wouldn't boot. Basically, fedora would take me to emergency mode, let me log in as root, and suggested a few commands to review logs. The logs just showed everything starting then stopping, looked like runlevel 1 maybe, I'm not sure. It wouldn't let me set runlevel 4 or 5, it would try and then just go back to emergency mode. I booted windows, which showed a recovery prompt, and then shut it down properly, then linux now boots correctly. Win7 is a primary partition, and fedora is in an extended partition along with a linux swap, if that makes any difference. Here is my question: what does windows have to do with any linux partitions (AFAIK it can't even read them), and why does it block booting? Also, is there a way to work around this from the linux command line, and not have to boot back to win (I don't care about corrupting the windows install or losing data over there in this case)? |
Can you give us any more info from the logs, maybe cut & paste?
Is the Windows partition listed at all in /etc/fstab? |
Quote:
Code:
UUID=eaf94cd5-b991-4472-a421-80aed0daa1c5 / ext4 defaults 1 1 Code:
Sep 15 12:25:45 localhost systemd: Started Login and scanning of iSCSI devices. |
i'm curious, i would comment out anything ntfs related in /etc/fstab and retry the experiment.
(my nexus-7 mounts as mtp ?). i've had problems with thumbdrives/sdcards not being plugged in and fedora would thow a fit while booting. not sure why fedora is so sensitive with removable drives. |
Quote:
|
|
Two things:
1) Windows was improperly shut down, this put the ntfs partition into an "unsafe" state. Linux will not mount ntfs partitions in an unsafe state. 2) The ntfs mount was placed in /etc/fstab without any "noauto" or "nofail" mount options. This tells the Linux OS that the ntfs mount is required for proper operation and it should not continue the boot process without it. Because of #1, Linux refused to mount the ntfs partition. Because of #2, the fact that it couldn't mount the partition means that the boot process was halted so that you could fix the problem. Booting back into Windows repaired the ntfs partition, which then allowed Linux to mount it and boot normally. Alternatively you could have added "noauto" or "nofail" to the mount options for the ntfs partition to tell Linux to continue booting normally if that partition is unmountable for whatever reason. |
is there any reason why your nexus is ntfs formatted ? or is it that your windows partition is named nexus.
|
Based on his user name, it's a name he uses for his PC as well (based on /run/media/nexus... debian mounts my removable filesystems under /media/<username>).
This behaviour of systemd... I get what TobiSGD means in the linked thread about it meaning the system is not booted into an inconsistent state... however I'm guessing anaconda (fedora's installer) added it to /etc/fstab, in which case knowing it was an NTFS partition should have added the necessary flags. |
В какой вуз пост&
Куда можно заочно поступить?
|
Ok thanks everyone, I was in another country for a while, thus the delay.
That makes sense, I'll update the fstab accordingly to prevent this in the future. |
All times are GMT -5. The time now is 05:13 AM. |