Go Back   nV News Forums > Linux Support Forums > General Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-24-07, 01:01 PM   #1
DiscipleDOC
 
DiscipleDOC's Avatar
 
Join Date: Dec 2002
Location: Alabama, Planet Earth
Posts: 5,993
Default Linking a directory to another partition?

Is there a way that I can link my cache directory (/var/cache/apt/archives/partial/) to another directory or partition? I've cleaned that directory, and I am still getting "No space left on devce" error message....

I got this when I did a df -h:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/root             3.4M   27K  3.4M   1% /
/dev/sda1             799M  697M  103M  88% /cdrom
/ramdisk              1.6G  2.1M  1.6G   1% /ramdisk
/UNIONFS              291M  291M     0 100% /UNIONFS
/dev/sdb1             799M  697M  103M  88% /cdrom
/dev/cloop            2.0G  2.0G     0 100% /KNOPPIX
/dev/sdb2             995M  301M  695M  31% /media/sdb2
/media/sdb2/knoppix.img
                      291M  291M     0 100% /KNOPPIX.IMG
/dev/sdb3             2.1G  549M  1.5G  27% /media/sdb3
DiscipleDOC is offline   Reply With Quote
Old 07-24-07, 01:52 PM   #2
evilghost
Registered User
 
Join Date: Jul 2005
Posts: 3,606
Default Re: Linking a directory to another partition?

You can either symlink it or actually create a new mount for it.

To symlink to /dev/sdb3 I'd do this.

Code:
mkdir -p /media/sdb3/apt_archives
cp -av /var/cache/apt/archives/* /media/sdb3/apt_archives
rm -rf /var/cache/apt/archives
ln -s /var/cache/apt/archives /media/sdb3/apt_archives
evilghost is offline   Reply With Quote
Old 07-24-07, 01:54 PM   #3
DiscipleDOC
 
DiscipleDOC's Avatar
 
Join Date: Dec 2002
Location: Alabama, Planet Earth
Posts: 5,993
Default Re: Linking a directory to another partition?

Thanks, bro!
DiscipleDOC is offline   Reply With Quote
Old 07-26-07, 11:29 PM   #4
DiscipleDOC
 
DiscipleDOC's Avatar
 
Join Date: Dec 2002
Location: Alabama, Planet Earth
Posts: 5,993
Default Re: Linking a directory to another partition?

Quote:
Originally Posted by evilghost
You can either symlink it or actually create a new mount for it.

To symlink to /dev/sdb3 I'd do this.

Code:
mkdir -p /media/sdb3/apt_archives
cp -av /var/cache/apt/archives/* /media/sdb3/apt_archives
rm -rf /var/cache/apt/archives
ln -s /var/cache/apt/archives /media/sdb3/apt_archives
Ok...this didn't work. I linked it, but it is still putting these files in the /var/cache/apt/ location.

How can I mount this on a different partition?
DiscipleDOC is offline   Reply With Quote
Reply


Thread Tools

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
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp://download.nvidia.com missing directory ioni NVIDIA Linux 7 05-19-12 03:45 PM
NVIDIA CUDA - Introduction to GPU Object Linking by Ian Buck News Archived News Items 0 05-16-12 04:30 AM
RPM Source problems LaoTzuTao NVIDIA Linux 10 01-19-03 06:15 AM
Can't install NVIDIA_kernel.XXXX.XXXX.src or regular rpm noeffort NVIDIA Linux 15 12-17-02 02:22 PM
partition magic pro 7 Grommit General Software 2 09-16-02 07:55 AM

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


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.