LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-20-2003, 04:05 PM   #1
BongFish
Member
 
Registered: Jun 2003
Location: England
Distribution: Slack 9
Posts: 141

Rep: Reputation: 15
I've run out of space and don't know what to do.


I have a 20GB hard drive and have a dual boot with XP, slack 9.1 and have 12GB of music!!

Obviously I need a new hard drive but I can't afford one at the moment.

My Slack partitions are as follows:

100MB for /home
1.6GB for /
600MB swap

I got to the point where there was 70kb space left on / and applications just refused to load, the only way I could get anything done was to delete all my doc files to create some space.

Basicaly what I want to know is how to remove the whole KDE package to create some space and is there a way to remove some space from my NTFS windows partition and wop it onto my Slackware ReiserFS partition.


Thanks very much for any help, I'll get a new HD ASAP!
 
Old 10-20-2003, 04:07 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Why not make a smaller swap partition.. say 100 megs which should be adequate enough and start off by removing any temp files in /tmp and clearing any log files in /var/log that have grown to tremendous sizes..

Then go and remove any packages you don't use or need.. and so on.
 
Old 10-20-2003, 04:23 PM   #3
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 36
You'll almost never need a swap partition bigger than 256 megs...in fact, frankly, you don't want it to. Swapping pages in and out of virtual memory is SLOW, and the more you can keep in physical memory, the better.

If you're worried about running out of RAM, go out and buy some. Don't use swap space as a substitute for physical memory--you'll be very bored.
 
Old 10-20-2003, 05:02 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Another option: I'm guessing that you've saved your music in wav files; if so, maybe you could convert them to mp3 format. I'll admit that I don't typically use mp3's, however, I do know that a given song in wav format takes up a lot more space than the same file in mp3 format. This may be more trouble than it's worth, but it might be an option. -- J.W.
 
Old 10-20-2003, 05:28 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by J.W.
Another option: I'm guessing that you've saved your music in wav files; if so, maybe you could convert them to mp3 format. I'll admit that I don't typically use mp3's, however, I do know that a given song in wav format takes up a lot more space than the same file in mp3 format. This may be more trouble than it's worth, but it might be an option. -- J.W.
If you noticed in his post he said he has 12 gigs of mp3's but only his /home is 100 megs, / is 1.6 gigs and swap is 600 megs..

With that, you should presume that his 12 gigs of music are on his Windows XP partition using up the rest of his 20 gig drive...
 
Old 10-20-2003, 05:36 PM   #6
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 36
No, he just said "12 gigs of music".
 
Old 10-20-2003, 05:39 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by Kurt M. Weber
No, he just said "12 gigs of music".
Haha.. you should truly read before posting..

Quote:
Originally posted by BongFish
My Slack partitions are as follows:

100MB for /home
1.6GB for /
600MB swap
Okay, let me explain this again.. he has a 20 gig partition with XP and Slackware installed..

He has a 100meg /home
600 meg swap and a
1.6 gb /

All other directories would fall under the / partition.. you tell me how he has 12 gigs of music on any of his Linux partitions... ??
 
Old 10-20-2003, 07:37 PM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
trickykid - well, you are correct that the 12G of music would need to be on the XP side given the numbers that BongFish provided, but even so, I thought that my suggestion would still be valid in the sense that by converting the format of the files, maybe BongFish could reduce the 12G down to maybe 4G or so, which would then permit him/her to resize XP and free up more space for Linux. As I attempted to indicate in my note, whether or not this would be worth the trouble is debatable, but it would be (I think) a possible option to consider. (Of course, if the "12GB of music" is already in mp3 format then the point is moot.) -- J.W.
 
Old 10-20-2003, 08:09 PM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by J.W.
trickykid - well, you are correct that the 12G of music would need to be on the XP side given the numbers that BongFish provided, but even so, I thought that my suggestion would still be valid in the sense that by converting the format of the files, maybe BongFish could reduce the 12G down to maybe 4G or so, which would then permit him/her to resize XP and free up more space for Linux. As I attempted to indicate in my note, whether or not this would be worth the trouble is debatable, but it would be (I think) a possible option to consider. (Of course, if the "12GB of music" is already in mp3 format then the point is moot.) -- J.W.
You were correct on your part about saving space converting wav's to mp3's, no problems there that I see.

Regards.
 
Old 10-21-2003, 04:44 AM   #10
BongFish
Member
 
Registered: Jun 2003
Location: England
Distribution: Slack 9
Posts: 141

Original Poster
Rep: Reputation: 15
My MP3's aren't in WAV format, they're in MP3 format, there's nothing I can do to remove the size of them and I'm not prepared to remove any of them.

By the way I have a 12GB FAT32 partition for music and a 7GB NTFS XP partition (I have serveral large apps that need lots of space).

I had read that a swap partition should always be about 1GB! I have 512MB RAM and I rarely use memory intensive programs so I'll be okay.

I know how to delete and resize my swap partition (after unmounting it!) but I'm not sure how I can add this extra space onto my / directory.

My system's only been up a few days so there'll be very little in the temp and messages directories however I think I'll be able to remove some space by removing some of KDE (I decided it would be a bad idea to remove it totaly because of dependancies and the libraries it has which so many programs use. There aren't a great deal of packages on my system which I don't use but hopefully reducing the size of my swap partition should give me space to have a useable system. I don't need bags of space, I already have 98% of everything I'm ever going to use installed and all my downlods go into my XP directories.

So basically all I need to know is how to add size on to an existing ReiserFS file system.

Thanks!

:edit:
I've downloaded a tool called resize_reiserfs (guess what it does) to my pendrive (I'm at college at the moment) and I'll try it when I get home.

Hopefully I'll be able to afford a new HD next month (or I'll ask for one for christmas!), looks like saving up for an iPod's going to have to be put on hold... :-(

Last edited by BongFish; 10-21-2003 at 04:48 AM.
 
Old 10-21-2003, 05:27 AM   #11
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Only way out is deleting some of those MP3 files
 
Old 10-21-2003, 06:15 AM   #12
ashjam10
Member
 
Registered: Sep 2003
Location: UK
Distribution: Mandrake 10.0
Posts: 121

Rep: Reputation: 15
Hey Bongfish, check out www.ebuyer.com for hard disks, you can get a 120GB Maxtor drive for less than £80. If you're looking for something a bit cheaper, you can get a 40GB Excelstor drive for about £40. It's not worth going smaller than that as the price doesn't drop much.
 
Old 10-21-2003, 06:43 AM   #13
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Quote:
Originally posted by BongFish
I had read that a swap partition should always be about 1GB! I have 512MB RAM and I rarely use memory intensive programs so I'll be okay.

I know how to delete and resize my swap partition (after unmounting it!) but I'm not sure how I can add this extra space onto my / directory.
I'm curious where you've read that. I have 512 MB of main memory too, and my swap space it usually not used at all. In fact, the remaining 300MB of free memory are being used as disk cache To see this yourself, open the kde info center, or type:
Code:
free -tm
If you turnoff the swap, you should be able to re-create the swap partition:
Code:
swapoff -a
cfdisk    **1
mkswap -c /dev/hd.. 
swapon -a
*1: delete the swap paritition, and re-create it at the end of the disk.
Perhaps you need to update /etc/fstab before you can turn the spam back on again. If you don't know what hd.. is, you can look for this in /etc/fstab too.

Then, you can return to single-user mode, remount your / partition read-only, and resize your / partition:
Code:
telinit 1
mount / -o remount,ro
cfdisk     **2
*2: re-create the partition at the same starting point. (ie. just make sure there is no free space before the partition), and try to make it as large as possible.
Perhaps you need to reboot again. (just type "reboot" for this) because the file system is still at the same place, and the partitiion boundaries too, this shouldn't give any problems

Resize the filesystem to the maximal (new) partition size: (again in single user mode; telinit 1)
Code:
mount / -o remount,ro
e2fsck -f /dev/hd..
resize2fs /dev/hd...
mount / -o remount,rw
Return to multi-user mode, or the graphical login: type "telinit .." The runlevel is usually 5, but can also be 4 or 5. Type "runlevel" to find the previous runlevel of your system, and you're back online

Last edited by yapp; 10-21-2003 at 06:44 AM.
 
Old 10-21-2003, 11:40 AM   #14
BongFish
Member
 
Registered: Jun 2003
Location: England
Distribution: Slack 9
Posts: 141

Original Poster
Rep: Reputation: 15
Cheers, problem solved.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
my harddisk is run out space ,what should i do . ztdep Linux - Software 7 08-05-2005 03:16 AM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
not enough memory to run YaST,enable swap space, but can't ArtsWorks Linux - Newbie 8 09-13-2004 08:59 AM
Run out of space at root devinWhalen Mandriva 2 06-15-2004 11:23 AM
run out of space, how to configure new disk u492698 Linux - Newbie 3 10-13-2003 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:55 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
Open Source Consulting | Domain Registration