LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-17-2004, 11:45 AM   #1
fleuh
LQ Newbie
 
Registered: May 2004
Distribution: RH9 - Suse 9.1 - Knoppix - Mepis
Posts: 18

Rep: Reputation: 0
Question disk space problem - X doesn't start !!!


Hy everybody.

i'm looking for help since i can't find the way to get out of my troubles.

Here they are :

- first i got some messages saying that i was low on disk space
- then my email client didn't want to get my messages from my external boxes

I reboot (god knows why i did that...) and go back to linux.

everything works well until the prompt with "login:" appears.

then it starts to load X (as usually) but it doesn't start it, instead it returns to the prompt and tries to start X again (and again...).

so i'm stuck, and i really would like some help, plz

does anyone has a clue of what to do in such a case ?

Thx
flo
 
Old 06-17-2004, 12:09 PM   #2
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
if you're using grub, hit "e" at the grub screen to edit the boot commands. Then, ono the line that starts with "kernel", hit "e" again, and at the very end of the line type a "3" without the quotes. Then hit enter to accept changes, annd hit "b" to boot. This will get you into runlevel 3, which will not start x but will give you a command prompt. Now, you can clean up some of your disk space by either deleting files or, if you have multiple partitions, moving some files around.

Now, if you want to start in command prompt without editing grub like that, edit the file /etc/inittab and change the number 5 in the line that looks something like this...

id:5:initdefault:

change the 5 to a 3 and save it. now, after boot, you can get into x by typing:

startx

Hope this helps...
 
Old 06-18-2004, 03:29 AM   #3
fleuh
LQ Newbie
 
Registered: May 2004
Distribution: RH9 - Suse 9.1 - Knoppix - Mepis
Posts: 18

Original Poster
Rep: Reputation: 0
Thx a lot jeffrey, that's exzctly what i was looking for (changing boot level on-the-fly). very nice !

Assuming i manage to boot on level 3, i have now to move/delete some files.

how can i know the free disk space on my partitions ?

do you think i can move '/home' to another partition without harming my system ?

Thanks again and good vibrations to you !

bye
 
Old 06-18-2004, 04:46 AM   #4
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Rep: Reputation: 35
To see the available hd space type:
df -h
This will show the free space on every mounted partition.
 
Old 06-18-2004, 07:32 AM   #5
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Glad to help...

You can move your home directory to another partition without harm. The best way to do this is if you have a partition with nothing on it. YOu would then move ALL the contents of you /home directory to this partition (note: not the directory itself, but the contents of it) and edit your fstab so that this partition gets mounted as /home. I think it should look something like this...

/dev/hda3 /home ext3 defaults 1 1

Where hda3 is the new partition onto which you copied your /home contents. Oh, and you'll need to make sure there is still an empty folder on the original partition called "home" for it to mount into.

Now, if you don't have an empty partition to copy to, I believe you can move it anywhere else you want and then symbolically link it from your / to the new location. To do that, it looks like this...

Say you moved the entire /home folder to /other_drive/other_folder/ (so it's actual location would be /other_drive/other_folder/home) then you would do...

cd /
ln -s /other_drive/other_folder/home home

Now in your / directory there will be a link called "home" that will point to the actual location. Might want to make sure you do a:

chmod 766 /home

to ensure that other programs can execute this link.

Now, before you do this, I'd wait and see if we can get somebody else (all you gurus out there...) to chime in and confirm that this second option will be okay. My concern is that some programs trying to write to your home directory (or anything in it) might not like following symbolic links. I don't know this to be the case, but I'm still a newbie and thought it best to check first.

Let us know how things go and, of course, good luck!
 
Old 06-23-2004, 12:43 PM   #6
fleuh
LQ Newbie
 
Registered: May 2004
Distribution: RH9 - Suse 9.1 - Knoppix - Mepis
Posts: 18

Original Poster
Rep: Reputation: 0
hi folks !

once again thx for your help, that was great !

i just tried what you said (3 at the end of the "kernel..." line and it worked just fine.

i deleted everything unecessary on /home and reboot. X would start again, yessaï !

now i'm trying to find out which partition was full and i used ;

df -h (thx to you iZvi )

and here is what i get :

[flo@localhost default]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 494M 383M 86M 82% /
/dev/hda10 289M 8.1M 266M 3% /disk/rastaman
none 125M 0 125M 0% /dev/shm
/dev/hda8 7.7G 2.4G 5.0G 32% /usr


so, my question is (i've got many questions, i'm so sorry) :

where is the /home in this mess ?
how can i avoid to get the situation again if i don't know ohw much space left there is ?

thanks again fellows
 
Old 06-23-2004, 01:07 PM   #7
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Rep: Reputation: 35
Your /home directory should be on / (/dev/hda7 - the first one, with 86MB available). To avoid this situation you may check regularly the available space and to not install too many stuff in your home directory. Also you may want to add bigger partitions for your Linux to have enough space for everything.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM
Disk Space Problem AbsoluteMonkey Linux - General 8 03-28-2004 03:24 PM
problem with disk space. bengo Slackware 5 10-02-2003 02:38 AM
Disk Space Problem bigmember Linux - Software 2 07-04-2003 01:41 PM
Disk space problem J_Szucs Linux - Newbie 8 11-21-2001 05:32 PM


All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration