Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running CentOS 6.4 64 bits on my laptop and since this morning i cannot boot normally again, system hangs at 'Enabling /etc/fstab [OK];
The last thing i did yesterday evening was to power it down brutally because gnome's shutdown gui would hang. I'm not sure it's because of that though.
I have tried single user mode, rescue mode, tried things like mkswap -c and it won't go, meaning it's probably not a swap problem here. Also i have fsck'ed / and /home, no bad sectors there.
This is the laptop i bought for both work and home and i'm lost right now, please help me boot again normally.
use the install dvd in rescue mode and after you type in "chroot /mnt/sysimage"
read the log
for booting " /var/log/boot.log "
and find out what the error is
"nano should be installed by default
Code:
cd /var/log
ls
----- then from that list the log file ------
nano boot.log
use the install dvd in rescue mode and after you type in "chroot /mnt/sysimage"
read the log
for booting " /var/log/boot.log "
and find out what the error is
"nano should be installed by default
Code:
cd /var/log
ls
----- then from that list the log file ------
nano boot.log
Hi,
Well, there are both nano and vim, but /var/log/boot.log doesn't tell me more than what the failing bootstrap tells me... It's just displays the same usual welcome to CentOS ... up to Enabling /etc/fstab swaps: [OK]
Anything else i should try while rescue cd is on and sysimage mounted?
Take a look at /etc/fstab. See if its fromat in a sane way.
To test further action would be to create a chroot enviroment with your orginial partition then run mount -a -f -v to see if everything is good. For this do something like this
mount all your system partitions to /mnt
Code:
mount -t proc chproc /mnt/proc
mount -t sysfs chsys /mnt/sys
mount -t devtmpfs chdev /mnt/dev
mount -t devpts cdpts /mnt/dev/pts
chroot /mnt
mount -a -f -v # to check fstab
the line with -t devtmpfs might not work but you can also rebind the actual dev with
Hi, i have looked at /etc/fstab many times yesterday and everything seemed normal there, although i admit i never paid attention to it before this nightmare started, didn't have too..
I will add the line
Code:
mount -a -f -v # to check fstab
to fstab but should i do that in single user mod or in rescue mode?
Although i am very concerned that since it's started i've had to power off the laptop brutally dozens of times because i get an error while trying to reboot from single user mode. Besides, SELinux is doing a disk labeling check every time i reboot from rescue mode. All in all i am very concerned with all those harsh moves, if i can call it that way. I don't know what i am doing to my hardware(which is brand new) because of all this.
anyway, i've noticed something: if i append single 3 to the kernel parameter line at boot, instead of just single, i don't get a prompt, and it just hangs at Enabling /etc/fstab...
the only i can get a prompt is if i have 'rghb quiet single' as parameters, and i get the prompt right after Enabling /etc/fstab...
now as to dmesg, should i grep for anything in particular? coz the output is like a kilometer long actually and looking at the last lines i can't tell there's anything wrong...
You can enter into single user mode and try to boot the server using fastboot, it will skip the filesystem check and check whether you could boot without any issue .(skipping fsk it was recommended it was used for toubleshoot purpose )
Set Linux kernel option by editing grub.conf / menu.lst
Open grub.conf or menu.lst (usually located in /boot),
# vi /boot/grub.conf
Find kernel line and put fastboot at the end of the kernel line. In the end it should look as follow:
kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8 fastboot
Last edited by jsaravana87; 09-19-2013 at 04:36 AM.
You can enter into single user mode and try to boot the server using fastboot, it will skip the filesystem check and check whether you could boot without any issue .(skipping fsk it was recommended it was used for toubleshoot purpose )
Set Linux kernel option by editing grub.conf / menu.lst
Open grub.conf or menu.lst (usually located in /boot),
# vi /boot/grub.conf
Find kernel line and put fastboot at the end of the kernel line. In the end it should look as follow:
kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8 fastboot
Hi, i wasn't able to locate grub.conf as in boot there's only /grub and /efi and in /grub there's no grub.conf.
However, i've added fastboot to my kernel parameter line was booting and although the bootstrat output comes shorter than before, it still hangs on Enabling /etc/..... Could that be some sort of indication already?
to fstab but should i do that in single user mod or in rescue mode?
This are lines to be run from command line and not added to your fstab.
chroot stands for change root and in somekind of way is what rescue modes do but not to the full attend. The process would be to mount your normal filesystem somewhere inside the rescue mode filesystem. I just took /mnt for this as this is normaly the way to go. As it seems the rescue system already does this to some kind of degree.
Lets clear things up even more.
1.) Boot into rescue mode
2.) Start a shell
3.) run mount to see what filesystems are mounted already.
Okay now we have to see if anything of your normal filesystem is mounted. And if is you have to be sure that really every part of it is mounted. Depends on how you partitioned your disk. Check the output of mount if it contains something like sda which should be your first harddisk.
For the next step you have to make sure that you have mounted you normal filesystem completly to /mnt.
We now are going to include some other needed pseudo filesystems.
Code:
mount -t proc chproc /mnt/proc
mount -t sysfs chsys /mnt/sys
mount -t devtmpfs chdev /mnt/dev
mount -t devpts cdpts /mnt/dev/pts
See my first post here for possible errors.
We now have your normal system mounted and ready to be run as though you have booted from it. Next step is to change into this so only this part is seen for all programs and the kernel. We need to change root
Code:
chroot /mnt /bin/bash
We now are inside your normal system and see if the fstab is all good.
Code:
mount -a -v -f
This makes sure that fstab is correct.
What you definetly should be on the lookout inside your fstab are filesystem that are remote. Like nfs.
For the dmesg output you might need to wade through all of it. Or see what is the output off:
Thanks Zhjim for the detailed steps, however, having booted in rescue mode with the install dvd, started a shell, ran mount | grep sda, i found sda1 and sda2, passed that, everything seemed mounted normally, but... then i tried mount -t proc chproc /mnt/proc and got mount point /mnt/does not exist. I tried chroot /mnt/sysimage and tried again but same. I must be missing something here.
But can you please tell me if there's a way to avoid having SELinux relabeling my disk upon reboot?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.