Jump to content

root got full, I got fool: can't get into X and ..


frankzyz
 Share

Recommended Posts

Hi,

Happy new years to all!

 

I ran into a problem, the detail is:

1) I did a wrong thing that I made a very simple partition scheme: in a 80G disk, I have 3 linux partitions, \, swap, usr; this is not the wrong thing, but I made additional things...Just like that I have a baby, the baby is not wrong, but that feeding him too much food is wrong. I copied a directory from other disk to root/home/miscs, and this directory is extremely bigger than the capacity size of root - I didnt check this carefully, meanwhile, I was urpmi task-lxde, and got an error : can't install that package.

then I tried the installation again, it told me the package was installed already. Then I exit KDE and tried to go to lxde, the screen then got crashed: chaos colors and system stalled. I had to reset the system, then, I successfully logged in the terminal, but startx returned error msg: the meaning is 'tmp is full', then I entered the system in safe mode, and deleted the root/home/miscs, and restarted system. when I tried to enter the X, the screen stalled, only a mouse cursor which is alive in the black background. I pressed ctrl-alt-bckspc to get back to the terminal, I got the err messages in command line: (EE)unable to open evdev device "/dev/input/by_id/usb_event_mouse"; (EE)preinit returned NULL for "MOUSE2".

2) Then I did these:

exit;

login frank

runlevel

//runlevel reported 3

init 5

//it got to a graphic logon screen, I chose frank, and gnome, several times tried the logon in the same way, then I came back here. be curious? I am.

 

3) The question finally is : how to catch the mystic MOUSE2.

 

Thank you for everything.

Frank

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

as far as I know , perhaps some conf file are bad done [i mean isnt correct] , try empting your /tmp, /home/user/tmp and /root/tmp.

if not go to runlevel 1 and drakconf choose the grapic cards and your right mouse/keyboard.

 

If you have time, and have supported your files on another disk, I prefer to check the filesize of the dirs you want, make a new installation and asign a partition the enough space to handle it, and just by security try to put the files in another place not in /root, maybe create a custom mount point [be the disk you have actually and then you copy it to your new disk] or simple create a user and put there /home/user_for_files/files.

 

Hope I help, Im a bit tired now... =p

Greetings

Link to comment
Share on other sites

Happy new year to you!

Thanks to reply.

I still jammed here.

1) disk status

I freed the space to root, now, the disk space status is :

[root@localhost /]# df

file system capacity used free used% mount point

/dev/sdb1 29G 26G 1.7G 94% /

/dev/sdb5 15G 12G 2.9G 81% /home

/dev/sdb7 30G 28G 682M 98% /usr

/dev/sdc1 1.9G 1.9G 59M 97% /media/GEIL

 

That means I have enough space to hold the temp files while xwindow initiating and application running.

2) my other efforts

I would like to choose fix the problem rather than reinstall the mdv2009. Because I want to make me understand the whole thing.

So, I checked the /etc/xorg.conf:

# File generated by XFdrake (rev 247269)

# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************

Section "ServerFlags"
   #DontZap # disable <Ctrl><Alt><BS> (server abort)
   #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
   AllowMouseOpenFail # allows the server to start up even if the mouse does not work
EndSection

Section "Module"
   Disable "dri"
   Load "dbe" # Double-Buffering Extension
   Load "v4l" # Video for Linux
   Load "extmod"
   Load "type1"
   Load "freetype"
   Load "glx" # 3D layer
EndSection

Section "InputDevice"
   Identifier "Keyboard1"
   Driver "kbd"
   Option "XkbModel" "pc105"
   Option "XkbLayout" "us"
   Option "XkbOptions" "compose:rwin"
EndSection

Section "InputDevice"
   Identifier "Mouse"
   Driver "mouse"
   Option "Protocol" "ExplorerPS/2"
   Option "Device" "/dev/mouse"
EndSection

Section "Monitor"
   Identifier "monitor1"
   VendorName "AOC"
   ModelName "AOC SPECTRUM 7Vlr & 7VlrA & 7Vlr+ & 7VlrA+"
   HorizSync 30.0-70.0
   VertRefresh 50.0-130.0
   Option "PreferredMode" "1024x768"

   # TV fullscreen mode or DVD fullscreen output.
   # 768x576 @ 79 Hz, 50 kHz hsync
   ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630

   # 768x576 @ 100 Hz, 61.6 kHz hsync
   ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
EndSection

Section "Device"
   Identifier "device1"
   VendorName "nVidia Corporation"
   BoardName "NVIDIA GeForce 3 to GeForce 4"
   Driver "nvidia"
   Option "DPMS"
   Option "DynamicTwinView" "false"
   Option "AddARGBGLXVisuals"
   Option "IgnoreEDID" "1"
EndSection

Section "Screen"
   Identifier "screen1"
   Device "device1"
   Monitor "monitor1"
   DefaultColorDepth 24

   Subsection "Display"
       Depth 8
       Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
   EndSubsection

   Subsection "Display"
       Depth 15
       Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
   EndSubsection

   Subsection "Display"
       Depth 16
       Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
   EndSubsection

   Subsection "Display"
       Depth 24
       Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
   EndSubsection
EndSection

Section "ServerLayout"
   Identifier "layout1"
   InputDevice "Keyboard1" "CoreKeyboard"
   InputDevice "Mouse" "CorePointer"

   Screen "screen1"
EndSection

 

You see, I had removed the lines about Mouse2. And now the system will not report the error msg about Mouse2.

But system runs still not normally. The normal start of system will lead me to terminal login, and I can login as root, common users, the runlevel is 3, when I logged in as frank, the common user, I can't startx successfully, the action of startx will lead me to a black screen with only an alive mouse cursor. I have to press ctrl + alt + backspc to return to the terminal, and login as root and run init 5 to start a graphic login interface, and choose frank to login, when I login as frank here, the xwindow will run normally. The gnome environment will start successfully.

Since the graphic environment can be started up successfully, I think the xwindow core is not damaged, the reason for the problem may be the init scripts. But I don't know what are the relevant scripts. and what are the good content of the scripts.

 

Another efforts is cleaning the tmp directories.

I did the actions, but seems no effect.

 

 

I will continue my exploring.

Thanks for reply! Happy new year to you!

Frank

Link to comment
Share on other sites

Yo there frankzyz, happy new year to you too!!! =p

 

first: I believe in the choice of everyone to make the system as you like but, I dont see gain of your partitions scheme:

 

-----------------------------------------------------------

/dev/sdb1 29G 26G 1.7G 94% /

/dev/sdb5 15G 12G 2.9G 81% /home

/dev/sdb7 30G 28G 682M 98% /usr

/dev/sdc1 1.9G 1.9G 59M 97% /media/GEIL

-----------------------------------------------------------

well you have your reasons =) but for now I strongly suggest you a more classic approach , I mean merge the /, /home and /usr under a big partition, perhaps this will save you future bugs...

 

well, I remember sometimes I have an issue like the yours,and cleaning the tmp doesnt work for me =p!

So then what, try not using the root user, and Im pretty sure this is a graphic issue, what are doing the error,? dont know but please try running as level 3 [the safe mode] then run drakconf and select your correct card , check back your documentation to verify if the driver its correct, also try configuring urpmi for any soft you need.

I think there are user/root scripts that are scrapped but thats another thing. Ah!!!! if you are not mad at me send me the output of dmesg after you are trying to start your x environment, bro..

 

Good luck!!!! and sorry again!!! :P

 

PD the conf files seems to be fine to me so I cant tell more of the files...

Edited by isamu
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...