Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Linux] Déplacer Répertoire
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
mitch
Apprentice
Apprentice


Joined: 30 Sep 2003
Posts: 221
Location: Chambéry

PostPosted: Sun Mar 07, 2004 5:06 pm    Post subject: [Linux] Déplacer Répertoire Reply with quote

Hello,

J'ai fait le pitre quand j'ai partitioner mon autre pc.
Je vous explique, j'ai deux disque sur le pc. Un de 4,5Go et un autre de 2Go

J'ai partitioner ainsi:

hda1 --> /boot 16Mo
hda2 --> swap 256Mo
hda3 --> / 4Go
hdb1 --> /var 1Go
hdb2 --> /usr 1Go

J'ai passer tout mon Week-end a installer une tit gentoo dessus mais a forceri je me suis aprerçu (apres la compil de Xfree) que j'arrete pas d'avoir des messages d'erreur "No space left on device"
Je suis obliger a chaque fois de vider /var/tmp/portage et /usr/portage/distfiles pour compiler gnome.
Ce que j'aimerai faire c'est de déplacer une des deux partition sur mon / pour pouvoir attribuer les 1Go que j'ai liberer à l'autre partition.

Vous me suivez?

J'avais lu qu'un simple cp -R /mnt/var /var ne suffisait pas.

Comment je pourrai faire pour déplacer ces partitions et redimensionner le hdb pour obtenir:

hda1 --> /boot 16Mo
hda2 --> swap 256Mo
hda3 --> / 4Go
hdb1 --> /var ou /usr 2Go
_________________
Linux? Il y a moins bien, mais c'est plus cher !
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3634
Location: Belgium

PostPosted: Sun Mar 07, 2004 5:25 pm    Post subject: Re: [Linux] Déplacer Répertoire Reply with quote

mitch wrote:
J'avais lu qu'un simple cp -R /mnt/var /var ne suffisait pas.

En rajoutant l'option -p cela devrait marcher :
Code:
cp -pR /mnt/var /var
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Mon Mar 08, 2004 8:12 am    Post subject: Reply with quote

ya encore plus simple ...

Code:

cp -a ....


ca equivaut a :
Code:

cp -dpPR.

_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Mon Mar 08, 2004 1:19 pm    Post subject: Reply with quote

Toujours plus simple (et plus rapide) :
/etc/make.conf wrote:
# PORTAGE_TMPDIR is the location portage will use for compilations and
# temporary storage of data. This can get VERY large depending upon
# the application being installed.
#PORTAGE_TMPDIR=/var/tmp
et
/etc/make.conf wrote:
# DISTDIR is where all of the source code tarballs will be placed for
# emerges. The source code is maintained here unless you delete
# it. The entire repository of tarballs for gentoo is 9G. This is
# considerably more than any user will ever download. 2-3G is
# a large DISTDIR.
#DISTDIR=${PORTDIR}/distfiles
soit 2 variables à placer dans un fichier ... 8)
_________________
La connaissance s'accroît quand on la partage.
JCB
Back to top
View user's profile Send private message
mitch
Apprentice
Apprentice


Joined: 30 Sep 2003
Posts: 221
Location: Chambéry

PostPosted: Mon Mar 08, 2004 1:21 pm    Post subject: Reply with quote

Très interessant tout ça.
Je vais m'y mettre tout de suite.

Merci à tous :D
_________________
Linux? Il y a moins bien, mais c'est plus cher !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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