View previous topic :: View next topic |
Author |
Message |
mitch Apprentice
Joined: 30 Sep 2003 Posts: 221 Location: Chambéry
|
Posted: Sun Mar 07, 2004 5:06 pm Post subject: [Linux] Déplacer Répertoire |
|
|
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 |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3636 Location: Belgium
|
Posted: Sun Mar 07, 2004 5:25 pm Post subject: Re: [Linux] Déplacer Répertoire |
|
|
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 |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Mon Mar 08, 2004 8:12 am Post subject: |
|
|
ya encore plus simple ...
ca equivaut a :
_________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
yoyo Bodhisattva
Joined: 04 Mar 2003 Posts: 4273 Location: Lyon - France
|
Posted: Mon Mar 08, 2004 1:19 pm Post subject: |
|
|
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 ... _________________ La connaissance s'accroît quand on la partage.
JCB |
|
Back to top |
|
|
mitch Apprentice
Joined: 30 Sep 2003 Posts: 221 Location: Chambéry
|
Posted: Mon Mar 08, 2004 1:21 pm Post subject: |
|
|
Très interessant tout ça.
Je vais m'y mettre tout de suite.
Merci à tous _________________ Linux? Il y a moins bien, mais c'est plus cher ! |
|
Back to top |
|
|
|