You are not logged in.
x86_64
kernel 3.7.9-1
Cinnamon DE
I was copying files from an external USB HDD and I didn't notice the battery was running out, and so it did run out.
Therefore it shut down, and now I can't access Linux. (Also tried fallback mode)
Also I'm dual-booting arch and w7, and w7 does boot, it's weird that arch just won't.
So Grub menu does load, but after selecting Arch , it just hangs with one text line and prompt, also can't input anything; it shows like this:
/dev/sda4: clean, 250964/1638400 files, 2039871/6553600 blocks
_That's shown when I don't have the USB HDD connected (the one I copied files from)
And when I do have it connected, it's the same just some more lines:
/dev/sda4: clean, 250969/1638400 files, 2040885/6553600 blocks
[ 8.08436]sd 4:0:0:0: [sdb] No Caching mode page present
[ 8.084698]sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 8.09866]sd 4:0:0:0: [sdb] No Caching mode page present
[ 8.108374]sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 8.109660]sd 4:0:0:0: [sdb] No Caching mode page present
_Journalctl
--Reboot--
Feb 21 11:43:19 arclin pulseaudio[469][pulseaudio]bluetooth-util.c:'org.bluez.Manager.Get.Properties()failed:org:freedesktop.systemd1.LoadFailed:Unitdbus-org.bluez.service failed to load
Feb 21 11:43:22 arclin pulseaudio[446][pulseaudio]pid.c:Daemon already running
Feb 21 13:18:01 arclin gnome-session[440]WARNING:Failed to start app: Unable to start application:Failed to execute child proccess "gnome-screensaver"(No such file or directory)
Feb 21 13:18:45 arclin gnome-session[440]WARNING:Application 'cinnamon.desktop' killed by signal 15
Feb 21 14:58:57 arclin gnome-session[440]Gdk-WARNING:gnome-session:Fatal IO error 11 (Resource temporarily unavailable on X server :0
END/var/log/Xorg.0.log
[ 11.138]
X.Org X Server 1.13.2
Release Date: 2013-01-24
[ 11.138] X Protocol Version 11, Revision 0
[ 11.138] Build Operating System: Linux 3.7.4-1-ARCH x86_64
[ 11.138] Current Operating System: Linux arclin 3.7.9-1-ARCH #SMP PREEMPT Mon Feb 18 02:13:30 EET 2013 x86_64
[ 11.138] Kernel command line:BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx ro quiet
[ 11.138] Build Date: 25 January 2013 09:33:50 AM
[ 11.138] Current Version of pixman 0.28.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 11.138] Markers: (--)probed, (**) from config file, (==) default setting, (++) from command line, (!!)notice, (II) informational,(WW) warning, (EE) error, (NI) not implemented, (??)unknown.
[ 11.138](==)Log file: "/var/log/Xorg.0.log", Time: Thu Feb 21 16:43:09 2013
[ 11.174](==)Using config directory: "/etc/X11/xorg.conf.d"
[ 11.208]Parse error on line 6 of section InputClass in file /etc/X11/xorg.conf.d/10-keyboard.conf
"Section" is not a valid keyword in this section.
[ 11.208](EE)Problem parsing the config file
[ 11.208](EE)Error parsing the config file
[ 11.208]
Fatal Server Error:
[ 11.208]no screens found
[ 11.208](EE)
Please consult the The X.Org Foundation support at http://wiki.x.org for help.
[ 11.208](EE)Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 11.208](EE)
[ 11.209]Server terminated with error (1). Closing log file.(Copied by hand BTW)
Any suggestion/help is appreciated
Thanks in advance
Last edited by arcaid (2013-02-23 01:47:19)
Offline
First thing that comes to mind on an unexpected shutdown is to fsck it. https://wiki.archlinux.org/index.php/Fsck
It runs fsck at boot but the interval is set to run fsck every 30 boots according to the wiki. Give that a shot first while waiting for others more knowledgeable to reply. Good luck!
Edit: what is in your /etc/X11/xorg.conf.d/10-keyboard.conf ?
Last edited by frank604 (2013-02-22 02:55:53)
Offline
Thanks for your answer,
Entered
sudo touch /forefsckI did reboot afterwards, but it didn't do anything (or so I think), it's exactly the same
...
Edit: what is in your /etc/X11/xorg.conf.d/10-keyboard.conf ?
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "ye"
Option "XbkLayout" "us"
Section "InputClass"
Identifier "Keyboard-layout"
MatchIsKeyboard "on"
Option "XkbLayout" "us,es"
Option "XkbOption" "grp:caps_toggle"
EndSectionOffline
Read the whole page in the wiki.
Also, not sure if I'm right on this or not but try commenting out the whole section inputclass, not sure why there is two
Offline
Read the whole page in the wiki.
Am I missing something?, triple checked the wiki :S
Thanks for the suggestions
--
Tried
sudo fsck -a
fsck from util-linux 2.22.2
/dev/sda4 is mounted
e2fsck: Cannot continue, abortingI don't have to unmount the filesystem, do I? Bcause, from what I understand at the moment, fsck shouldn't be run in mounted filesystems. Unless I am mixing things up.
Also,
Will this happen again if I run out of battery and don't shutdown it before the battery is empty?
Offline
You can always fsck your partitions from a livecd.
Offline
# touch /forcefscknot forefsck, force
and try from a live environment the fsck to individual partitions
Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::
Offline
Well you should be able to fsck a ro mounted partition. This was the purpose of the historic "ro" kernel command line parameter before we all started using initramfs' like it is going out of style.
BTW, when you run journalctl, if you really want useful info, you either need to run it as root or be in the adm group.
Oh yeah, one more thing, I don't know if you noticed, but systemd fsck's on every boot, so I don't know how much /forcefsck is going to do for you.
Edit: Oh, last thing, use the live media... it is just stoopid simple that way to make sure it is fsck'able.
Last edited by WonderWoofy (2013-02-22 07:00:17)
Offline
I appreciate everyone's help, thanks.
# touch /forcefscknot forefsck, force
and try from a live environment the fsck to individual partitions
Did type it well in the terminal, just wrote it wrong in the post. Just to make sure , tried that again but nothing happens.(Thanks for the observation)
About live cd, entered:
# fsck -a /dev/sda4
fsck from util-linux 2.22.2
e2fsck 1.42.6 (21-Sep-2012)
/dev/sda4: clean, 250986/1638400 files, 2058951/6553600 blocks[...]
BTW, when you run journalctl, if you really want useful info, you either need to run it as root or be in the adm group.Oh yeah, one more thing, I don't know if you noticed, but systemd fsck's on every boot, so I don't know how much /forcefsck is going to do for you.
[...]
Thanks for clarifying that.
So, if the systemd fscks's on every boot...What do you suggest me to do/try next?
Any suggestion is welcomed
What can I try now?
Offline
Try to fsck. it manually from a live media I guess... see if all your partitions mount manually... I dunno try things.
Offline
Try to fsck. it manually from a live media I guess... see if all your partitions mount manually... I dunno try things.
By manually you mean like this right?(Did it on a live environment)
# fsck -a /dev/sda4
fsck from util-linux 2.22.2
e2fsck 1.42.6 (21-Sep-2012)
/dev/sda4: clean, 250986/1638400 files, 2058951/6553600 blocksAlready tried that again, but nothing changes.
--
Only have 1 partition of arch
mount /dev/sda4 /mntIt does mount.
Thanks again
Offline
I think without more info, those trying to help can only take stabs in teh dark. It appears that you use the "quiet" parameter in your kernel command line. I think a good place to start would be to remove that and see what the boot output tells you.
You can also use journalctl from the live environment to output journal contents from a different directory. Since systemd's journal is a binary log and not simple text, you will need to use journalctl to output the contents. So mount your partition from the live media, and then point journalctl to the correct directory (presumable /mnt/var/log/journal). See the journalctl man page for this.
Offline
I only do fsck on an improper shutdown as a precursor to deeper investigation. There is obviously something not loading right, either a driver or a configuration file that is at fault. This happens when I am tweaking the system. Could it be that you made some modifications prior to the improper shutdown that you have forgotten about? Without knowing more about what is going on, it is hard. We are all just 'stabbing in the dark' as wonderwoofy says. Sorry I can't be of more help.
I would also look into 11.208]Parse error on line 6 of section InputClass in file /etc/X11/xorg.conf.d/10-keyboard.conf
As well as your .xinitrc
basically get a simple boot to commandline first. Eliminate the starting of X. Once you get your system to boot to commandline, then troubleshoot for starting x.
Offline
Without the 'quiet' kernel parameter, it says that dhcpcd service failed and it stucks at [OK] Graphical User Interface.
Also managed to get the logs (dmesg,journalctl,xorg.0.log). And with all of your input I realized that I recently modified several files to have another keyboard layouts, which I still haven't managed to achieve. I remember I did reboot after the changes to those files, but other layouts never showed up, so I left those files modified (mistake)
Now the thing is that I thought that I had fixed one of them '10-keyboard.conf' in the above posts, as frank604 suggested commenting out the whole section inputclass. For some reason I Interpreted that as 'coment out only ''inputclass' line'' and never checked the log (xorg.0.log) after the change...
Well now after checking the new log, it says 'error on line 7' so after commenting out the whole section, like this:
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "ye"
Option "XbkLayout" "us"
#
#Section "InputClass"
# Identifier "Keyboard-layout"
# MatchIsKeyboard "on"
# Option "XkbLayout" "us,es"
# Option "XkbOption" "grp:caps_toggle"
EndSectionI typed startx ,it didn't mark another error but it still wouldn't start,so I decided to reboot.
After that... arch does enter now
!
All of this just because I wanted to change the keyboard layouts.
Having said that.. the problem was that file I modified and after removing my changes and rebooting, now it boots!. Seems like the 'battery run out while copying files' was not related to arch not booting, or so I think.
Thanks for all your attention
Offline
So it was booting, just not to the target you wanted to actually get to...
Please mark the thread as [Solved]. If you feel that the title is really that irrelevant, you can change it while prepending that [Solved] to the title.
Offline
As a tip, in the future, just look at the errors. Then try to fix them one by one. Some errors will not be critical as in stopping a bootup, while others will. Sorry I wasn't too detailed in my response, I sometimes write while on the john on my phone. I can get a bit rushed during those times. lol ![]()
Offline
I'm not sure X will accept "ye" in place of "yes", will it? And you need to end every section in the config file - not just the last one.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I'll sure keep that mind
I'm not sure X will accept "ye" in place of "yes", will it? And you need to end every section in the config file - not just the last one.
Checked the file, it does says ''yes'' but I wrote it wrong in the post, thanks for the heads up.
Thanks
Offline