LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-18-2001, 10:19 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Disk space problem


I am over an almost fully successful Linux installation as a newbie (installed SuSE Linux 6.4 Eval).
I have only two annoying problem to solve:
My system always complains of insufficient free disk space.
Df tells me I have only 3% free space on my Linux partition. There should be more!!!
The size of my Linux partition is 1250 Megs; the installed packages only reserve some 700 Megs; my StarOffice some 150 Megs; apart of these, I only installed Xmms.
So I should have at least some 350 Megs of free space.
What can be reason?
As a newbie I have three suspects:
1. Am I in full charge of all resources (including all disk space) of the system when I login as root? If not, how can I set the system to have all resources as root?.
2. I have only one Linux partition, i.e. have no swap, etc. partitions. Can it be the reason?
3. Are there anything in Linux that can eat up free disk space? (My temp directory is almost empty, but I did some installation/reinstallation of various packages)
My other problem is:
I find that quality of colour photos is worse than in Windows at the same (800x600) screen resolution (with my ancient moniutor and Trident 9000i VGA card I cannot reach more).
I found that the reason can be that the same virtual resolution of 800x600 in Linux results in 75 dpi resolution, while in Windows it results in 96 dpi.
Can I configure Linux to have the same, 96 dpi screen resolution as in Windows? (So far I could not set this by SAX).

Last edited by J_Szucs; 11-18-2001 at 10:23 AM.
 
Old 11-18-2001, 01:43 PM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
1.) root can do anything
2.) you should have a swap partition. maybe you have one and that is why you have lost loads of space (swap partitions don;t show up when you use df).

type the following as root in the console
Code:
fdisk -ls /dev/hdb
this will show all the partitions and how many blocks they take up (that should about measure up to the number of megabytes it takes up)

3.)/tmp is the only one really that can get eaten up though the logs in the /var directory can sometimes get pretty long.

try typing
Code:
ls -a
in the /tmp directory

this will show all the files (including hidden files).

HTH

Alex
 
Old 11-20-2001, 04:29 AM   #3
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Disk space problem

Fdisk -ls /dev/hda showed me that I have two partitions:
/hda1 msdos and /hda2 Linux.

It seems that I have no swap partitions.

Actually, things are getting more tough now, as I do not have anything else to remove from my Linux partition (so far from time to time I could get some free space by removing rarely used packages).

Is there a way to get the total size of certain directories (including sub-directories) in Linux?

So far I could only list the size of files, and it would be too hard to count them all.

Last edited by J_Szucs; 11-20-2001 at 04:32 AM.
 
Old 11-20-2001, 05:03 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
'df' will give you percentage uses of each partition / share on your system

'du' will print out directory sizes for the whole system. you'd maybe want to use

du -h --max-depth=3

from /
 
Old 11-21-2001, 04:53 AM   #5
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Disk space problem

When checking my partitions, I found three strange things:

- I had only one Linux partition (and no swap partition)

- Although my Linux and Windows partitions are of the same physical size, I have fewer 1k-blocks on my Linux partition.

- The sum of Used and Available 1k-blocks is less that the total number of 1k-blocks reported.

Because of the two latter phenomena I loose cca. 100 Megs of space compared to DOS.

I had problems because of the missing swap partition, so I created a small one on an other HDD. How can I make Linux to use it?
 
Old 11-21-2001, 07:10 AM   #6
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
To make use of your new swap partition you will have to initialize it by running
mkswap /dev/hdxx where hdxx is your swap partition for example hda3, third partition on first disk.
Now you will have to tell linux to use it with swapon maybe you will have to use swapon -a
I don't know how your start files are written, if they will start your swap on boot.
 
Old 11-21-2001, 01:55 PM   #7
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Swapon and swapon -a did nothing.
Later, accidentally, I tried swapon /dev/hdb2 and I got a working swap partition.
Now I would like to insert it into /fstab.
Could you help me what is the syntax?
 
Old 11-21-2001, 01:58 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
my line says

/dev/hda6 swap swap defaults 0 0
 
Old 11-21-2001, 04:32 PM   #9
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Thank you, I put the corresponding line into /fstab.
I hope it will work.
I am still annoyed because of that lost 100 Megs, as I have 20 Megs of free space again: I could not post messages here with StarOffice (when I tried, I always got an error message about missing thread identifier) so I had to put Netscape back.
Is not there a partition size limitation (1.1G) in SuSE Linux 6.04?

Last edited by J_Szucs; 11-21-2001 at 04:34 PM.
 
  


Reply



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 03:58 PM
disk space problem - X doesn't start !!! fleuh Linux - Newbie 6 06-23-2004 12:07 PM
Disk Space Problem AbsoluteMonkey Linux - General 8 03-28-2004 02:24 PM
problem with disk space. bengo Slackware 5 10-02-2003 01:38 AM
Disk Space Problem bigmember Linux - Software 2 07-04-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:10 AM.

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
Open Source Consulting | Domain Registration