Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > root partiton mounts as ro, causes gdm and X problems

Forgot Password?
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-23-2008   #1 (permalink)
Just Joined!
 
Join Date: Jun 2004
Posts: 4
root partiton mounts as ro, causes gdm and X problems

Hi all

I'm currently on Xubuntu Hardy and the problem is that the X server does not run by default at boot.

Instead, the following appears:
Quote:
Could not start the X server (your graphical environment) due to some internal error. [...] Please restart gdm when the problem is corrected.
I investigated a little bit and found out my root partition mounts as read only for some reason, even though it appears to be error free by running e2fsck

So to start the X server, i must
Code:
dank06@dank06-desktop on tty1
# sudo mount -o remount -rw /dev/sda1 / 
# sudo gdm
!!!GDM is already running. ABORTING!!!
# sudo startx
Alright, so the X server is started now on display 1 (ctrl+alt+F8 ), but as root, so I Logout of the graphical environment and return to

Code:
dank06@dank06-desktop on tty1
Stopping X
# sudo gdm
And now the default greeter is up on display 1

Previously, I was having file permissions errors with the gdm directory (/var/lib/gdm) being set to root root xrw-r--r- but I've fixed that.
There is one error I'm not sure of in the syslog:
Code:
May 23 10:26:18 dank06-desktop gdm[10484]: GLib-CRITICAL: g_hash_table_lookup_extended: assertion `hash_table != NULL' failed 
May 23 10:26:18 dank06-desktop gdm[10484]: WARNING: Request for invalid configuration key daemon/ConsoleNotify=true
Is this maybe causing something?

I'm sure the root partition permissions errors is what is causing the X server not to start.
Here is /etc/fstab/
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1 as UUID=08a5288d-e29e-440e-8c4f-c2ae117445f4
/dev/sda1       /               ext3    realtime,errors=remount-ro 0       1
# /dev/sda5 as UUID=2c4a7724-e824-442f-ae26-768b56a24b1a
/dev/sda5       none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/scd1       /media/cdrom1   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/fd0         /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
dank06 is offline  


Reply With Quote
Old 05-26-2008   #2 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,081
Send a message via Yahoo to devils casper
Why are you using sudo? Have you tried to restart X Sever as Regular User?
Code:
startx
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 05-27-2008   #3 (permalink)
Just Joined!
 
Join Date: Jun 2004
Posts: 4
I use sudo, otherwise I get something like:

Code:
xauth: ~/.Xauthority not writiable, changes will be ignored
xauth: error in locking authority file ~/.Xauthority
Also, I don't want to just startx because there are multiple users on the system (the X session logs in to the current user's session of course), so I need to use the greeter application too and to execute that, you need to sudo

But that's not the major issue really ... it's more that /dev/sda1 mounts as read only
dank06 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:19 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2