RH7.2: Moving SWAP file, is it possible?

RH7.2: Moving SWAP file, is it possible?

Post by Mark A. Odel » Sun, 02 Mar 2003 02:17:35



Hi,

I have no room left on /, I must have messed up the install somehow way
back when. Anyhow, I get a df -h of:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             372M  350M  3.0M 100% /
/dev/hda1              45M   29M   14M  67% /boot
/dev/hda3             2.3G   47M  2.0G   3% /home
none                   93M     0   93M   0% /dev/shm
/dev/hda2             6.2G  1.1G  4.7G  19% /usr
/dev/hda6             251M   96M  142M  41% /var
/dev/hdb1              73G  2.3G   67G   4% /usr2

and a ls -hlt / of:

drwxrwxrwt    5 root     root         1.0k Feb 28 04:02 tmp
drwxr-x---   15 root     root         1.0k Feb  8 10:32 root
drwxr-xr-x   18 root     root          81k Jan 29 21:22 dev
drwxr-xr-x   52 root     root         4.0k Jan 29 21:21 etc
dr-xr-xr-x   54 root     root            0 Jan 29 16:21 proc
drwxrwxrwx    7 root     root         4.0k Jan 16 22:32 usr2
drwxr-xr-x    4 root     root         2.0k Dec 25 22:48 boot
drwxr-xr-x    7 root     root         3.0k Nov 18 21:41 lib
drwxr-xr-x    2 root     root         4.0k Nov 18 21:41 sbin
drwxr-xr-x    2 root     root         2.0k Oct 27 18:00 bin
-rwxr-xr-x    1 root     root          71M May 13  2002 SWAP
drwxr-xr-x    2 root     root         1.0k Apr  3  2002 gwp4
drwxr-xr-x    4 root     root         1.0k Nov 25  2001 mnt
drwxr-xr-x    5 root     root         4.0k Nov 25  2001 home
drwxr-xr-x   21 root     root         1.0k Nov 25  2001 var
drwxr-xr-x   16 root     root         4.0k Nov 25  2001 usr
drwxr-xr-x    2 root     root          12k Nov 25  2001 lost+found
drwxr-xr-x    2 root     root         1.0k Aug 29  2001 misc
drwxr-xr-x    2 root     root         1.0k Jun 21  2001 initrd
drwxr-xr-x    2 root     root         1.0k Aug 23  1999 opt

Note the size of SWAP, 71MB. If I could move this file elsewhere I would
have enough room to upgrade to RH8.0. Also, anyone know what the df result
means where it says none on /dev/shm? Is this okay?

Thanks,

--
- Mark
--

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by JP » Sun, 02 Mar 2003 02:26:28




Quote:> Hi,

> I have no room left on /, I must have messed up the install somehow way
> back when. Anyhow, I get a df -h of:

<snip>

Quote:> and a ls -hlt / of:

> drwxrwxrwt    5 root     root         1.0k Feb 28 04:02 tmp
> drwxr-x---   15 root     root         1.0k Feb  8 10:32 root
> drwxr-xr-x   18 root     root          81k Jan 29 21:22 dev
> drwxr-xr-x   52 root     root         4.0k Jan 29 21:21 etc
> dr-xr-xr-x   54 root     root            0 Jan 29 16:21 proc
> drwxrwxrwx    7 root     root         4.0k Jan 16 22:32 usr2
> drwxr-xr-x    4 root     root         2.0k Dec 25 22:48 boot
> drwxr-xr-x    7 root     root         3.0k Nov 18 21:41 lib
> drwxr-xr-x    2 root     root         4.0k Nov 18 21:41 sbin
> drwxr-xr-x    2 root     root         2.0k Oct 27 18:00 bin
> -rwxr-xr-x    1 root     root          71M May 13  2002 SWAP

<snip>

Quote:> Note the size of SWAP, 71MB. If I could move this file elsewhere I would
> have enough room to upgrade to RH8.0.

You have a "SWAP" file in root!?

What happens when you type "swapon -s".

If you have some free disk space you should be able to setup a swap
partition (type 82 I think).

Also, check out the man page for swapon/swapoff.

Quote:> Also, anyone know what the df result
> means where it says none on /dev/shm? Is this okay?

Yes, leave it alone.

Jules

--
There are 10 types of people in this world
Those that understand binary and those that don't

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Mark A. Odel » Sun, 02 Mar 2003 02:31:49




Quote:>> -rwxr-xr-x    1 root     root          71M May 13  2002 SWAP

> <snip>

>> Note the size of SWAP, 71MB. If I could move this file elsewhere I
>> would have enough room to upgrade to RH8.0.

> You have a "SWAP" file in root!?

Ugh, I was afraid this was bad. I am not a Linux expert by any stretch of
the word.

Quote:> What happens when you type "swapon -s".

I get:

Filename                        Type            Size    Used    Priority
/dev/hda7                       partition       321260  5144    -1
/SWAP                           file            72696   0       -2

Quote:> If you have some free disk space you should be able to setup a swap
> partition (type 82 I think).

Okay, I'm not quite sure how to do that and then get the system to use it
instead of SWAP. What must have I done to have the SWAP file put in /
instead of on a swap partition?

Quote:> Also, check out the man page for swapon/swapoff.

Will do, thanks.

Quote:>> Also, anyone know what the df result
>> means where it says none on /dev/shm? Is this okay?

> Yes, leave it alone.

I understand.

Thank you for the reply.

--
- Mark
--

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by JP » Sun, 02 Mar 2003 02:46:07






> >> -rwxr-xr-x    1 root     root          71M May 13  2002 SWAP

> > <snip>

> >> Note the size of SWAP, 71MB. If I could move this file elsewhere I
> >> would have enough room to upgrade to RH8.0.

> > You have a "SWAP" file in root!?

> Ugh, I was afraid this was bad. I am not a Linux expert by any stretch of
> the word.

> > What happens when you type "swapon -s".

> I get:

> Filename                        Type            Size    Used    Priority
> /dev/hda7                       partition       321260  5144    -1
> /SWAP                           file            72696   0       -2

> > If you have some free disk space you should be able to setup a swap
> > partition (type 82 I think).

> Okay, I'm not quite sure how to do that and then get the system to use it
> instead of SWAP. What must have I done to have the SWAP file put in /
> instead of on a swap partition?

<snip>

It looks like you already have a swap partition but it may not be big
enough.

However you could try.

o Reboot to single user.
o Run swapon -s to see if the SWAP file is open (not sure it will be started
yet)
o Read the swapon/swapoff man bage again and disable the /SWAP swapfile
o Reboot again (I know you prob don't have to but...we'll why not)
o In multi user mode, run swapon -s and check the results again.

For RH 8.x you should have a swap partition about 2 x memory (not going to
debate this!!!) and your /boot partition should be at least 100MB. It would
also be useful if you used ext3 as well.

HTH

JP

--
There are 10 types of people in this world
Those that understand binary and those that don't

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Mark A. Odel » Sun, 02 Mar 2003 03:59:04




Quote:> It looks like you already have a swap partition but it may not be big
> enough.

Uh oh.

Quote:> However you could try.

> o Reboot to single user.
> o Run swapon -s to see if the SWAP file is open (not sure it will be
> started yet)
> o Read the swapon/swapoff man bage again and disable the /SWAP swapfile
> o Reboot again (I know you prob don't have to but...we'll why not)
> o In multi user mode, run swapon -s and check the results again.

I'll do some reading and see if I can create a proper swap filesystem.
Swapon/swapoff is the key though.

Quote:> For RH 8.x you should have a swap partition about 2 x memory (not going
> to debate this!!!) and your /boot partition should be at least 100MB. It
> would also be useful if you used ext3 as well.

I agree.

Quote:> HTH

Indeed, thank you very much.

--
- Mark
--

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Floyd Davidso » Sun, 02 Mar 2003 08:35:09





>> It looks like you already have a swap partition but it may not be big
>> enough.

>Uh oh.

That isn't what your data indicated though.  

You posted:
 >Filename                 Type            Size    Used    Priority
 >/dev/hda7                partition       321260  5144    -1
 >/SWAP                    file            72696   0       -2

You've got 72M of swap space in a file, and 321M of swap space
on a partition (hda7).  You were only using about 5M at that
moment, and the space in the file isn't even close to being
used.  How adaquate 321M is depends on what you do with your
box, and how much RAM you have.  If you have 256M or more of RAM
it is probably enough.  For that matter, it is probably enough
if you only have 64M too.  

All you need to do is run "swapoff /SWAP", and edit your /etc/fstab
to prevent "swapon -a" from mounting the file a boot time.  Do that
by deleting any entry in /etc/fstab that lists the file.

That will solve your immediate problem of free space, but I
don't think it is actually the answer you need.  There is no
reason to have 250M being used in your root fs, and figuring out
where the usage is might be more useful than anything else.

Try running "du -skx /*" (see the man page for du to learn what this
shows).

My bet is the /opt directory probably has a couple hundred megs
of stuff in it.  You have multiple options if that happens to be
the case.  One is to make your root filesystem large enough to
accomodate the size of /opt.  (I don't like that one, because I
like very small root partitions.)  Or you can use another
partition for /opt, just as you have for /home and /var.  And
another option is to copy everything in /opt to another existing
filesystem (such as /usr) and then make a symlink.  I rather
like the last method.

       cp -a /opt /usr
       mv /opt /optold
       ln -s /usr/opt /opt

Make sure it works, and then "rm -rf /optold".

Quote:>> However you could try.

>> o Reboot to single user.
>> o Run swapon -s to see if the SWAP file is open (not sure it will be
>> started yet)
>> o Read the swapon/swapoff man bage again and disable the /SWAP swapfile
>> o Reboot again (I know you prob don't have to but...we'll why not)
>> o In multi user mode, run swapon -s and check the results again.

>I'll do some reading and see if I can create a proper swap filesystem.
>Swapon/swapoff is the key though.

Just use swapoff, and forget the rest of that.

Quote:>> For RH 8.x you should have a swap partition about 2 x memory (not going

That is simply *NOT* true.  (If you are using a low numbered 2.4
Linux kernel, there is a bug which makes it appear that the
above should be done.  But the correct action is to use a newer
kernel that doesn't have the bug in it!)

Quote:>> to debate this!!!) and your /boot partition should be at least 100MB. It
>> would also be useful if you used ext3 as well.
>I agree.

What would anyone need 100M in the /boot partition for?  10-20M
is fine.

And yes ext3 is a good idea.  Just be aware that it can be added
at any time with great ease.  So don't worry about that until
the rest of this is corrected.

--
Floyd L. Davidson         <http://www.ptialaska.net/~floyd>

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Mark A. Odel » Mon, 03 Mar 2003 00:50:57







>>> It looks like you already have a swap partition but it may not be big
>>> enough.

>>Uh oh.

> That isn't what your data indicated though.  

> You posted:
> >Filename                 Type            Size    Used    Priority
> >/dev/hda7                partition       321260  5144    -1
> >/SWAP                    file            72696   0       -2

> You've got 72M of swap space in a file, and 321M of swap space
> on a partition (hda7).  You were only using about 5M at that
> moment, and the space in the file isn't even close to being
> used.  How adaquate 321M is depends on what you do with your
> box, and how much RAM you have.  If you have 256M or more of RAM
> it is probably enough.  For that matter, it is probably enough
> if you only have 64M too.  

> All you need to do is run "swapoff /SWAP", and edit your /etc/fstab
> to prevent "swapon -a" from mounting the file a boot time.  Do that
> by deleting any entry in /etc/fstab that lists the file.

> That will solve your immediate problem of free space, but I
> don't think it is actually the answer you need.  There is no
> reason to have 250M being used in your root fs, and figuring out
> where the usage is might be more useful than anything else.

This worked like a charm. I only have 192MB (it's an ancient dual Pentium
Pro)  so the swap size should be okay.

- Show quoted text -

Quote:> Try running "du -skx /*" (see the man page for du to learn what this
> shows).

> My bet is the /opt directory probably has a couple hundred megs
> of stuff in it.  You have multiple options if that happens to be
> the case.  One is to make your root filesystem large enough to
> accomodate the size of /opt.  (I don't like that one, because I
> like very small root partitions.)  Or you can use another
> partition for /opt, just as you have for /home and /var.  And
> another option is to copy everything in /opt to another existing
> filesystem (such as /usr) and then make a symlink.  I rather
> like the last method.

>        cp -a /opt /usr
>        mv /opt /optold
>        ln -s /usr/opt /opt

/opt is emtpy.

I ran several variants of this and when I did 'du -sxh' on /lib (which I
assume is under /, that is / is on /dev/hda5 so I assume that /lib is too)
I got 251MB. /lib is very large. I have a /usr/lib but it has links back
to /lib. Ugh.

Here's my 'df -hT' FWIw:

Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/hda5     ext3    372M  281M   72M  80% /
/dev/hda1     ext3     45M   29M   14M  67% /boot
/dev/hda3     ext3    2.3G   47M  2.0G   3% /home
none         tmpfs     93M     0   93M   0% /dev/shm
/dev/hda2     ext3    6.2G  1.1G  4.7G  19% /usr
/dev/hda6     ext3    251M   96M  142M  41% /var
/dev/hdb1     ext3     73G  2.3G   67G   4% /usr2

Thanks for the great help.

--
- Mark
--

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Peter T. Breue » Mon, 03 Mar 2003 02:09:57



Quote:> Filesystem    Type    Size  Used Avail Use% Mounted on
> /dev/hda5     ext3    372M  281M   72M  80% /
> /dev/hda1     ext3     45M   29M   14M  67% /boot
> /dev/hda3     ext3    2.3G   47M  2.0G   3% /home
> none         tmpfs     93M     0   93M   0% /dev/shm
> /dev/hda2     ext3    6.2G  1.1G  4.7G  19% /usr
> /dev/hda6     ext3    251M   96M  142M  41% /var
> /dev/hdb1     ext3     73G  2.3G   67G   4% /usr2

This is fine. Just link /tmp to /var/tmp and get rid of that /dev/shm
thing. Oh - shrink /usr down to about 2GB. You might want to resize
/var up to 1GB too. You don't seem to use /home at all so you might
want to shrink it down to about 500M or 0! And I have no idea what you
have in /usr2, but it's a lot.

Peter

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Floyd Davidso » Mon, 03 Mar 2003 02:33:18



Quote:

>I ran several variants of this and when I did 'du -sxh' on /lib (which I
>assume is under /, that is / is on /dev/hda5 so I assume that /lib is too)
>I got 251MB. /lib is very large. I have a /usr/lib but it has links back
>to /lib. Ugh.

Hmmmm...  what is taking up that much space in /lib???   The /lib on
this machine is all of 14Mb.  /usr/lib is 277Mb though.  It sounds as
if something has been installed in /lib that should be in /usr/lib.
I'm using Slackware, and of course your distribution might be very
different...

--
Floyd L. Davidson         <http://www.ptialaska.net/~floyd>

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Steve Marti » Mon, 03 Mar 2003 21:56:02




>>Filesystem    Type    Size  Used Avail Use% Mounted on
>>/dev/hda5     ext3    372M  281M   72M  80% /
>>/dev/hda1     ext3     45M   29M   14M  67% /boot
>>/dev/hda3     ext3    2.3G   47M  2.0G   3% /home
>>none         tmpfs     93M     0   93M   0% /dev/shm
>>/dev/hda2     ext3    6.2G  1.1G  4.7G  19% /usr
>>/dev/hda6     ext3    251M   96M  142M  41% /var
>>/dev/hdb1     ext3     73G  2.3G   67G   4% /usr2

> This is fine. Just link /tmp to /var/tmp and get rid of that /dev/shm
> thing. Oh - shrink /usr down to about 2GB. You might want to resize
> /var up to 1GB too. You don't seem to use /home at all so you might
> want to shrink it down to about 500M or 0! And I have no idea what you
> have in /usr2, but it's a lot.

I wouldn't recommend offhand reducing /home to zero; that's
probably where non-root users' home directories are. If
you eliminate /home, then non-root users probably won't
be able to log in.

As for getting rid of shm, I wouldn't recommend that either.
This is not actually taking up hard disk space; everything
in /dev/shm is virtual, and lives in the kernel internal
caches. When you reboot, everything stored in /dev/shm
disappears. Eliminating it will not save you disk space,
and might break some things that use it (seems I remember
in particular some CD burning software uses it).

--
Steve Martin, CPBE CBNT

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Peter T. Breue » Mon, 03 Mar 2003 23:53:26





>>>Filesystem    Type    Size  Used Avail Use% Mounted on
>>>/dev/hda5     ext3    372M  281M   72M  80% /
>>>/dev/hda1     ext3     45M   29M   14M  67% /boot
>>>/dev/hda3     ext3    2.3G   47M  2.0G   3% /home
>>>none         tmpfs     93M     0   93M   0% /dev/shm
>>>/dev/hda2     ext3    6.2G  1.1G  4.7G  19% /usr
>>>/dev/hda6     ext3    251M   96M  142M  41% /var
>>>/dev/hdb1     ext3     73G  2.3G   67G   4% /usr2

>> This is fine. Just link /tmp to /var/tmp and get rid of that /dev/shm
>> thing. Oh - shrink /usr down to about 2GB. You might want to resize
>> /var up to 1GB too. You don't seem to use /home at all so you might
>> want to shrink it down to about 500M or 0! And I have no idea what you
>> have in /usr2, but it's a lot.
> I wouldn't recommend offhand reducing /home to zero; that's
> probably where non-root users' home directories are. If
> you eliminate /home, then non-root users probably won't
> be able to log in.

Well, I meant of course eliminate the *partition*, not the
directory (nor its subdirs)!

Quote:> As for getting rid of shm, I wouldn't recommend that either.

I would. It's using up his precious ram, of which he has little, as I
recall.

Quote:> This is not actually taking up hard disk space; everything
> in /dev/shm is virtual, and lives in the kernel internal

It lives in his ram, you mean! There's no magic.

Quote:> caches. When you reboot, everything stored in /dev/shm
> disappears. Eliminating it will not save you disk space,

But it's doing him no good. It's too small to be any use, so
he might as well just toss it. It'll just break things that
need more room than that. In fact, if it were bigger then he should
get rid of it too! The kernel _already_ caches disk accesses.

Quote:> and might break some things that use it (seems I remember
> in particular some CD burning software uses it).

No, it will stop things breaking that nedd more space! His /tmp
should be directed somwhere roomful.

Peter

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Mark A. Odel » Wed, 05 Mar 2003 04:55:31





>>I ran several variants of this and when I did 'du -sxh' on /lib (which I
>>assume is under /, that is / is on /dev/hda5 so I assume that /lib is
>>too) I got 251MB. /lib is very large. I have a /usr/lib but it has links
>>back to /lib. Ugh.

> Hmmmm...  what is taking up that much space in /lib???   The /lib on
> this machine is all of 14Mb.  /usr/lib is 277Mb though.  It sounds as
> if something has been installed in /lib that should be in /usr/lib.
> I'm using Slackware, and of course your distribution might be very
> different...

All sorts of .so files. For example in /lib:

cpp                       libnsl.so.1              libpam.so.0.75
i686                      libnss1_compat-2.2.4.so  libpcprofile.so
iptables                  libnss1_compat.so.1      libpcre.la
kbd                       libnss1_dns-2.2.4.so     libpcre.so
ld-2.2.4.so               libnss1_dns.so.1         libpcre.so.0
ld-linux.so.2             libnss1_files-2.2.4.so   libpcre.so.0.0.1
libanl-2.2.4.so           libnss1_files.so.1       libproc.so.2.0.7
libanl.so.1               libnss1_nis-2.2.4.so     libpthread-0.9.so
libBrokenLocale-2.2.4.so  libnss1_nis.so.1         libpthread.so.0
libBrokenLocale.so.1      libnss_compat-2.2.4.so   libpwdb.a
libc-2.2.4.so             libnss_compat.so.1       libpwdb.so
libcom_err.so.2           libnss_compat.so.2       libpwdb.so.0
libcom_err.so.2.0         libnss_dns-2.2.4.so      libpwdb.so.0.61.1
libcrypt-2.2.4.so         libnss_dns.so.1          libresolv-2.2.4.so
libcrypto.so.0.9.6b       libnss_dns.so.2          libresolv.so.2
libcrypto.so.2            libnss_files-2.2.4.so    librt-2.2.4.so
libcrypt.so.1             libnss_files.so.1        librt.so.1
libc.so.6                 libnss_files.so.2        libSegFault.so
libdb-3.2.so              libnss_hesiod-2.2.4.so   libssl.so.0.9.6b
libdb.so                  libnss_hesiod.so.2       libssl.so.2
libdl-2.2.4.so            libnss_ldap-2.2.5.so     libss.so.2
libdl.so.2                libnss_ldap.so.2         libss.so.2.0
libe2p.so.2               libnss_nis-2.2.4.so      libtermcap.so.2
libe2p.so.2.3             libnss_nisplus-2.2.4.so  libtermcap.so.2.0.8
libext2fs.so.2            libnss_nisplus.so.2      libthread_db-1.0.so
libext2fs.so.2.4          libnss_nis.so.1          libthread_db.so.1
libm-2.2.4.so             libnss_nis.so.2          libutil-2.2.4.so
libmemusage.so            libpamc.so.0             libutil.so.1
libm.so.6                 libpamc.so.0.75          libuuid.so.1
libNoVersion-2.2.4.so     libpam_misc.so.0         libuuid.so.1.2
libNoVersion.so.1         libpam_misc.so.0.75      modules
libnsl-2.2.4.so           libpam.so.0              security

And /usr/lib:

Many more and duplicates except newer (more recent) timestamps.

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Mark A. Odel » Wed, 05 Mar 2003 04:56:34







>>>>Filesystem    Type    Size  Used Avail Use% Mounted on
>>>>/dev/hda5     ext3    372M  281M   72M  80% /
>>>>/dev/hda1     ext3     45M   29M   14M  67% /boot
>>>>/dev/hda3     ext3    2.3G   47M  2.0G   3% /home
>>>>none         tmpfs     93M     0   93M   0% /dev/shm
>>>>/dev/hda2     ext3    6.2G  1.1G  4.7G  19% /usr
>>>>/dev/hda6     ext3    251M   96M  142M  41% /var
>>>>/dev/hdb1     ext3     73G  2.3G   67G   4% /usr2

>>> This is fine. Just link /tmp to /var/tmp and get rid of that /dev/shm
>>> thing. Oh - shrink /usr down to about 2GB. You might want to resize
>>> /var up to 1GB too. You don't seem to use /home at all so you might
>>> want to shrink it down to about 500M or 0! And I have no idea what you
>>> have in /usr2, but it's a lot.

>> I wouldn't recommend offhand reducing /home to zero; that's
>> probably where non-root users' home directories are. If
>> you eliminate /home, then non-root users probably won't
>> be able to log in.

> Well, I meant of course eliminate the *partition*, not the
> directory (nor its subdirs)!

>> As for getting rid of shm, I wouldn't recommend that either.

> I would. It's using up his precious ram, of which he has little, as I
> recall.

>> This is not actually taking up hard disk space; everything
>> in /dev/shm is virtual, and lives in the kernel internal

> It lives in his ram, you mean! There's no magic.

>> caches. When you reboot, everything stored in /dev/shm
>> disappears. Eliminating it will not save you disk space,

> But it's doing him no good. It's too small to be any use, so
> he might as well just toss it. It'll just break things that
> need more room than that. In fact, if it were bigger then he should
> get rid of it too! The kernel _already_ caches disk accesses.

>> and might break some things that use it (seems I remember
>> in particular some CD burning software uses it).

> No, it will stop things breaking that nedd more space! His /tmp
> should be directed somwhere roomful.

Removing the /dev/shm line from fstab and rebooting seems not to adversely
affect the dual Pentium Pros operation. Thanks for the suggestion.
 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Peter T. Breue » Wed, 05 Mar 2003 05:48:04




>> No, it will stop things breaking that nedd more space! His /tmp
>> should be directed somwhere roomful.
> Removing the /dev/shm line from fstab and rebooting seems not to adversely
> affect the dual Pentium Pros operation. Thanks for the suggestion.

But we didn't suggest that you removed /dev/shm .. I at least suggested
that you direct /tmp somewhere ELSE (meaning /var/tmp). Once
you have done that, THEN you can remove /dev/shm.

Anyway, I would personally agree that /dev/shm should go
because it's too small. However, I do not believe from your statement
that you have directed /tmp at anything bigger, which is the point of
the exercise!

So "why"?

Peter

 
 
 

RH7.2: Moving SWAP file, is it possible?

Post by Peter T. Breue » Wed, 05 Mar 2003 05:50:31




>> Hmmmm...  what is taking up that much space in /lib???   The /lib on
>> this machine is all of 14Mb.  /usr/lib is 277Mb though.  It sounds as
>> if something has been installed in /lib that should be in /usr/lib.
>> I'm using Slackware, and of course your distribution might be very
>> different...
> All sorts of .so files. For example in /lib:

You have made a mistake. They do not occupy that much space. It must be
/lib/modules that is full. Check again.

Quote:> cpp                       libnsl.so.1              libpam.so.0.75
> i686                      libnss1_compat-2.2.4.so  libpcprofile.so
> iptables                  libnss1_compat.so.1      libpcre.la
> kbd                       libnss1_dns-2.2.4.so     libpcre.so
> ld-2.2.4.so               libnss1_dns.so.1         libpcre.so.0
> ld-linux.so.2             libnss1_files-2.2.4.so   libpcre.so.0.0.1
> libanl-2.2.4.so           libnss1_files.so.1       libproc.so.2.0.7
> libanl.so.1               libnss1_nis-2.2.4.so     libpthread-0.9.so
> libBrokenLocale-2.2.4.so  libnss1_nis.so.1         libpthread.so.0
> libBrokenLocale.so.1      libnss_compat-2.2.4.so   libpwdb.a
> libc-2.2.4.so             libnss_compat.so.1       libpwdb.so
> libcom_err.so.2           libnss_compat.so.2       libpwdb.so.0
> libcom_err.so.2.0         libnss_dns-2.2.4.so      libpwdb.so.0.61.1
> libcrypt-2.2.4.so         libnss_dns.so.1          libresolv-2.2.4.so
> libcrypto.so.0.9.6b       libnss_dns.so.2          libresolv.so.2
> libcrypto.so.2            libnss_files-2.2.4.so    librt-2.2.4.so
> libcrypt.so.1             libnss_files.so.1        librt.so.1
> libc.so.6                 libnss_files.so.2        libSegFault.so
> libdb-3.2.so              libnss_hesiod-2.2.4.so   libssl.so.0.9.6b
> libdb.so                  libnss_hesiod.so.2       libssl.so.2
> libdl-2.2.4.so            libnss_ldap-2.2.5.so     libss.so.2
> libdl.so.2                libnss_ldap.so.2         libss.so.2.0
> libe2p.so.2               libnss_nis-2.2.4.so      libtermcap.so.2
> libe2p.so.2.3             libnss_nisplus-2.2.4.so  libtermcap.so.2.0.8
> libext2fs.so.2            libnss_nisplus.so.2      libthread_db-1.0.so
> libext2fs.so.2.4          libnss_nis.so.1          libthread_db.so.1
> libm-2.2.4.so             libnss_nis.so.2          libutil-2.2.4.so
> libmemusage.so            libpamc.so.0             libutil.so.1
> libm.so.6                 libpamc.so.0.75          libuuid.so.1
> libNoVersion-2.2.4.so     libpam_misc.so.0         libuuid.so.1.2
> libNoVersion.so.1         libpam_misc.so.0.75      modules
> libnsl-2.2.4.so           libpam.so.0              security

do

  du -sx /lib
  du -sx /lib/modules

and subtract the two figures to fin out how much space you ".so files"
occupy.

Peter

 
 
 

1. Help for moving swap file to an other disk!

Hi!
  I want to move my swap file (/dev/swap) to an other disk (/u4), how can i
do that ? The system is a OpenServer 3.2v4.2.

I see the command swap -a (for add) -d (for delete) but how can i delete the
first swap (/dev/swap) permanently?

In which file sould i put the swap -d and swap -a? (/etc/rc2 or /etc/rc2.d
which file)

I would like to have an example please ?

Thank's

2. Please Help,Where to download linux for PCs intel pentium

3. Moving files between Mac HFS+ and Linux--possible?

4. deleting "funny filename" files...

5. is it possible to move linux files on C:(msdoss) to hda2 ?

6. How to get rid of Klipper and KOrganizer at start up?

7. swap file on DOS or NFS partition possible?

8. HELP: Console stuck in reverse video !

9. Swap file possible?

10. What is smallest swap file size possible?

11. MS-DOS Swap File vs. Swap Partition