Results 1 to 4 of 4
I apologize profusely in advance, as I know exceedingly little about Linux. I am trying to get my friend's laptop working which came with Linux and has recently stopped booting. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-02-2009 #1
- Join Date
- Jan 2009
SUSE 10 Will Not Boot
The laptop is booting out of grub. It shows the splash screen, and then when the bar has finished moving to the right, an ASCII style (like the old MS-DOS shell) "window" appears that says "Cannot load X Server... due tosome internal error." It does not provide anything else. I can play around with the grub boot options to try to boot in the failsafe configuration. When I do that, I see a lot of error messages having to do with the computer being unable to write and the file system being read-only. The system then asks for a login, and after entering it, I am given the message "error in service module."
I have seemed to (at least temporarily?) fixed the "error in service module problem" by commenting out the last 3 lines of the file /etc/pam.d/login
auth required pam_securetty.so
auth include common-auth
auth required pam_nologin.so
account include common-account
password include common-password
session include common-session
#session required pam_lastlog.so nowtmp
#session required pam_resmgr.so
#session optional pam_mail.so standard
When I log in as root (after having fixed the "error in service module" problem as described above), I attempted to "mount -o remount", but I get the message: mount: block device /dev/sda2 is write-protected, mounting read-only
That's about where I am at. Any idea?
- 01-02-2009 #2
/dev/sda2 refers to the second partition on the first drive.
It might help to see what the drive partitioning is.
as root type
fdisk -l ( the is a lower case L)
This will list the disk information.
will list the mount info
There seems to be something wrong with the second partition and it is being mounted read only this would normally be the root (/) partition. There is also normally a small swap and a home (/home) partition assuming it is a standard install.
You may need to get a bootable CD so you can repair/edit the root. I suggest gparted or if you have it the original install disk. 10.0 is getting old and it may be hard to find a download.
You will find (and be able to change as root) the way grub is mounting the system in a file
Also if you press esc during the boot splash you will be able to see any other errors that may be occurring. You could have file system corruption or even a bad disk.
Use ls or dir to list the directories cd to change. not sure what editors were installed in 10.0 but try joe or nano there is almost always vi.
- 01-02-2009 #3
- Join Date
- Jan 2009
I finally figured it out... after messing around with the boot options a bunch of times I happened to get it so as that I could see the reason it was making everything read-only. It said:
fsck.ext3 /dev/sda2 failed (status 0x4). Run manually!
fsck failed. Mounting root device read-only.
Mounting root /dev/sda2
Also, those 3 lines I commented out: are they supposed to stay that way, or go back, or what? What are they for, in other words... are they bad lines that just appeared in the file somehow , or will the computer not do something correctly with them commented out? Thanks!
- 01-02-2009 #4
It can be caused by several things. Power off without a proper shutdown while OS is writing. Bad or weak sectors on the disk. In the case of a laptop bouncing/dropping the machine while running. Also running the battery completely down may cause a problem, because things can become unstable at the edges.
I'd recommend looking in the lost&found directory. It will contain files and fragments that could not be stitched back together. Also recommend that you do a repair from the install disk if available.
I'd uncomment those lines. The problem was probably the read only status of the disk.
If it happens again I'd do a serious check on the Hardware/battery. Run a good low level scan utility on the disk. I use Spinrite but it is not a free program. You should be able to get one from the disk manufacturers site.
The average user will not be able to fix this on their own. Remember the Windows solution is to reinstall the OS. That could apply here also.