mounting another disk

Sotiris Tsimbonis tsimbonis at rosehill-1.irc.gr
Thu Feb 18 01:07:01 EET 1999


At 13:44 17/02/99 +0200, axrst wrote:
>Exw sto linux moy hdba1 poy einai 2,1 Gb kai mounted sto / . Exw kai
>enan allo me 2 partitions hdb1, hdb2 o prwtos sto /mnt/dos ki o deyteros
>sto /mnt/old. Pws ginetai, afoy ton formarw kai ton kanw ena partition,
>na metaferw kapoia alla dirs s'ayton. px to /usr/ h to /opt (poia 8a
>prepei na metaferw gia kalytera?) O deyteros diskos einai 4,5 Gb
>synolika...

loipon, einai aplo. Afou formareis to /dev/hdb, to kaneis mount se ena
tyxaio shmeio, estw sto /disk2, kai antigrafeis mesa sxedon[1] oti breis
mprosta sou. px.

cp -a /home /disk2/home
cp -a /opt /disk2/opt
cp -a /usr/local /disk2/local

kai meta kaneis to e3hs:

mv /home /home.old ; ln -s /disk2/home /home
mv /opt /opt.old ; ln -s /disk2/opt /opt
mv /usr/local /usr/local.old ; ln -s /disk2/local /usr/local

an ola pane kala[2][3], tote mporeis na sbhseis kai ta .old ....

Ayta :)
Sotiris.

[1] Prosoxh me metakinhseis directories pou xreiazontai kata to boot kai
den einai dia8esima prin kaneis mount /disk2 ... px. to /lib, to /bin, to
/sbin klp..

[2] An kati mporei na paei straba, tha paei.

[3] Kalo einai otan to kaneis ayto, na trexoun oso to dynaton ligotera
processes, gia na mhn exoun anoixta arxeia sta directories pou
metakineis... Isws einai kalytera na to kaneis bootarontas me mia disketa
etsi wste na mhn xrhsimopoieite kanena arxeio tou diskou.

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list