LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Out of disk space :( (https://www.linuxquestions.org/questions/linux-newbie-8/out-of-disk-space-748191/)

fletch2k3 08-17-2009 12:34 PM

Out of disk space :(
 
I got the Hp 2133 mini notebook not to long ago maybe back in april. But they got a linux instead of Windows. I have yet to save anything on the computer, but everytime i logged on, i was usuing up disk space. Now I cant even log on and it gives me the message GDM Could not write to your authorization. Im sure i am not the first to receive this message. I dont know what to do. Its a Suse Linux Enterprise Desktop 10. I tried entering commands that ive seen on here that helped others. But its not working for me. I havent been able to use the laptop since may. :(

repo 08-17-2009 12:39 PM

Welcome to LQ

After boot, press CTRL_ALT_F1
login as root and type
Code:

df -h
post the output

fletch2k3 08-17-2009 12:46 PM

it reads

size used avali
3.1g 3.0g 0

i dont understand. I've only been able to go online. I have yet been able to save anything. How can i delete to obtain my space again? Thank you so much for your help!!

i92guboj 08-17-2009 12:54 PM

You can get an idea of what's taking up your space with this:

Code:

cd /
du -sh

That will print a list with the directories that hang below your root directory /

Then you can use the cd command to go into these directories and run du -sh again after entering a new directory until you can narrow what's taking up all the space. However, the hard drive seems to be not so big, if 3gb is all you have. And suse enterprise 10 is not the slicker distribution around, so in fact, and depending on what did they install in your disk, it could be that your system is taking up all the space.

I am a bit disoriented though, according to this web

http://h40059.www4.hp.com/hp2133/

Those machines have a much bigger hd.

Mmmmm, what does "fdisk -l" says?

w1k0 08-17-2009 12:58 PM

Quote:

Originally Posted by fletch2k3 (Post 3646851)
size used avali
3.1g 3.0g 0

Is it possible you have only 3.1 GB hard drive in your machine?

My machine reports such information:

# df -h
Code:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2            7.4G  4.8G  2.7G  65% /
tmpfs                252M    0  252M  0% /dev/shm
/dev/hda1            6.5G  6.1G  429M  94% /mnt/hda1
/dev/hda3              60G  34G  26G  57% /mnt/hda3

# fdisk -l
Code:

Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x3db012b3

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1      15375    7748968+  c  W95 FAT32 (LBA)
/dev/hda2          15376      30750    7749000  83  Linux
/dev/hda3          30751      153750    61992000  83  Linux
/dev/hda4          153751      155061      660744  82  Linux swap

In these outputs /dev/hda1, /dev/hda2, etc. are different partitions on the hard drive.

Try both commands mentioned above and inspect both outputs carefully.

Post these outputs here.

repo 08-17-2009 12:58 PM

To find the biggest files:
Code:

du -a /home | sort -n -r | head -n 10
Then remove the files you don't want
Make sure you don't need them any more
Code:

rm filename

fletch2k3 08-17-2009 01:01 PM

Quote:

Originally Posted by i92guboj (Post 3646861)
You can get an idea of what's taking up your space with this:

Code:

cd /
du -sh

That will print a list with the directories that hang below your root directory /

Then you can use the cd command to go into these directories and run du -sh again after entering a new directory until you can narrow what's taking up all the space. However, the hard drive seems to be not so big, if 3gb is all you have. And suse enterprise 10 is not the slicker distribution around, so in fact, and depending on what did they install in your disk, it could be that your system is taking up all the space.

I am a bit disoriented though, according to this web

http://h40059.www4.hp.com/hp2133/

Those machines have a much bigger hd.

Mmmmm, what does "fdisk -l" says?



I just tried cd/ and it says command not found. then i tried du -sh and it says permission denied. and then i tried fdisk -l and it says command not found.

I was told too that it was supposed to be big. But if i go on the internet 7 times, it starts prompting me im out of disk space. and then locks me out. I am very confused. ive heard nothing but good things about linux, so i want to keep it and learn to use it, but its kind of hard to...locked out haha.

repo 08-17-2009 01:03 PM

Try
Code:

/sbin/fdisk -l

w1k0 08-17-2009 01:06 PM

Quote:

Originally Posted by i92guboj (Post 3646861)
You can get an idea of what's taking up your space with this:

Code:

cd /
du -sh

Then you can use the cd command to go into these directories and run du -sh again after entering a new directory until you can narrow what's taking up all the space.

Much more effective is to use the command such as:

Code:

du -B 1000 / | grep -E '^[0-9]{7,}'

i92guboj 08-17-2009 01:08 PM

Quote:

Originally Posted by fletch2k3 (Post 3646872)
I just tried cd/ and it says command not found. then i tried du -sh and it says permission denied. and then i tried fdisk -l and it says command not found.

It's "cd /", with a blank space in the middle.

As "du -sh", you need to log as the root user to be able to recurse all the directories in /, however let's forget about that. I am more interested about the fdisk -l output, try either of those instead:

Code:

/sbin/fdisk -l
# or
/usr/sbin/fdisk -l

There must be something strange with your setup, as I told you above, I reall doubt that 3.1gb is all your storage space.

fletch2k3 08-17-2009 01:08 PM

Quote:

Originally Posted by repo (Post 3646866)
To find the biggest files:
Code:

du -a /home | sort -n -r | head -n 10
Then remove the files you don't want
Make sure you don't need them any more
Code:

rm filename



the file name would be the entire entry that pops up? it says they are pictures. I dont remeber ever saving any pictures... Pictures take up that much space?!?!

So this computer wouldnt be a good computer for my to use while in college?

fletch2k3 08-17-2009 01:11 PM

Quote:

Originally Posted by repo (Post 3646875)
Try
Code:

/sbin/fdisk -l

It says unable to open b-1

fletch2k3 08-17-2009 01:13 PM

Quote:

Originally Posted by i92guboj (Post 3646885)
It's "cd /", with a blank space in the middle.

As "du -sh", you need to log as the root user to be able to recurse all the directories in /, however let's forget about that. I am more interested about the fdisk -l output, try either of those instead:

Code:

/sbin/fdisk -l
# or
/usr/sbin/fdisk -l

There must be something strange with your setup, as I told you above, I reall doubt that 3.1gb is all your storage space.


when i used /usr/sbin/fdisk -l it said no such file number or directory

i92guboj 08-17-2009 01:16 PM

Quote:

Originally Posted by fletch2k3 (Post 3646891)
It says unable to open b-1

Most unexpected, are you sure you wrote it well?

The "-l" is a dash and a lower case L, not a "one".

fletch2k3 08-17-2009 01:17 PM

Quote:

Originally Posted by w1k0 (Post 3646865)
Is it possible you have only 3.1 GB hard drive in your machine?

My machine reports such information:

# df -h
Code:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2            7.4G  4.8G  2.7G  65% /
tmpfs                252M    0  252M  0% /dev/shm
/dev/hda1            6.5G  6.1G  429M  94% /mnt/hda1
/dev/hda3              60G  34G  26G  57% /mnt/hda3

# fdisk -l
Code:

Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x3db012b3

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1      15375    7748968+  c  W95 FAT32 (LBA)
/dev/hda2          15376      30750    7749000  83  Linux
/dev/hda3          30751      153750    61992000  83  Linux
/dev/hda4          153751      155061      660744  82  Linux swap

In these outputs /dev/hda1, /dev/hda2, etc. are different partitions on the hard drive.

Try both commands mentioned above and inspect both outputs carefully.

Post these outputs here.

it said no such file or directory


All times are GMT -5. The time now is 05:54 PM.