Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root partition full
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
linuxopjemac
n00b
n00b


Joined: 23 Aug 2004
Posts: 35
Location: The Hague, The Netherlands

PostPosted: Mon Sep 20, 2004 7:24 am    Post subject: root partition full Reply with quote

Hi,

I ran out of space on my root partiiton. Can I add another partition in the fstab ?
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 20, 2004 7:37 am    Post subject: Reply with quote

What you can do is copy the content of a big directory (for example /usr) on your new partition, mount it on that directory (changing fstab accordingly), reboot to make sure everything works fine and then delete the content of that directory from your root partition.
Back to top
View user's profile Send private message
linuxopjemac
n00b
n00b


Joined: 23 Aug 2004
Posts: 35
Location: The Hague, The Netherlands

PostPosted: Mon Sep 20, 2004 7:50 am    Post subject: Reply with quote

what is the best command to copy everything with keeping all permissions and owners the same?
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 20, 2004 8:23 am    Post subject: Reply with quote

I think it's
Code:
cp -a

It preserves permissions and copies symbolic links while not following them.
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Mon Sep 20, 2004 8:55 am    Post subject: Reply with quote

Might want to look through the cp man pages, just to be sure - there may be some stuff (like the -r flag) that you'd find useful.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 20, 2004 9:03 am    Post subject: Reply with quote

Immortal Q wrote:
there may be some stuff (like the -r flag) that you'd find useful.

In fact, -a includes the -r flag (it's even -R which also stands for 'recursivly' but does "the right thing when objects other than ordinary files or directories are encountered").
Back to top
View user's profile Send private message
linuxopjemac
n00b
n00b


Joined: 23 Aug 2004
Posts: 35
Location: The Hague, The Netherlands

PostPosted: Mon Sep 20, 2004 11:44 am    Post subject: Reply with quote

I checked man pages for it and I think oumpah-pah is right. The -a option includes it all.
Back to top
View user's profile Send private message
porodzila
Guru
Guru


Joined: 22 May 2004
Posts: 307
Location: Terrapin Station

PostPosted: Mon Sep 20, 2004 1:54 pm    Post subject: Reply with quote

When i did this a couple weeks back i used -a and everything works just fine
_________________
ubi primum potero, me hinc subduco.
Back to top
View user's profile Send private message
tbfr
n00b
n00b


Joined: 03 Jan 2004
Posts: 26

PostPosted: Mon Sep 20, 2004 6:16 pm    Post subject: Reply with quote

cp -a should work fine but you could also use rsync -av (sourcepath) (destpath)
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 20, 2004 6:41 pm    Post subject: Reply with quote

I can't see any advantage using rsync instead of cp, since there is no file on the new partition. But it should work too.
Back to top
View user's profile Send private message
linuxopjemac
n00b
n00b


Joined: 23 Aug 2004
Posts: 35
Location: The Hague, The Netherlands

PostPosted: Tue Sep 21, 2004 11:29 am    Post subject: Reply with quote

I worked with cp -a. Thanks guys :P

a few things to keep in mind though:
one has to mount the /usr partition in fstab
when deleting (old) usr dir, this can't be done from within the actual system, i.e. when the /usr partition is mounted. Otherwise you are deleting your newly created partition :wink:

I had 100% useed on my /, now I have 26% used. Great :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum