View previous topic :: View next topic |
Author |
Message |
table Apprentice
Joined: 17 Feb 2007 Posts: 279 Location: Gazzaniga (BG) Italy
|
Posted: Sat Aug 15, 2009 10:01 am Post subject: [Risolto] Spostare /usr su altra partizione |
|
|
Ciao,
sto provando a spostare la cartella /usr su una nuova partizione del mio disco, visto che lo spazio comincia ad essere stretto.
1) ho copiato con cp -ax i dati da /usr a /media/sda8
2) ho bootato via live cd e ho modificato l'fstab aggiungendo:
Code: | /dev/sda8 /usr ext3 defaults 0 0 |
3) ho rinominato la vecchia usr in usr.old
al riavvio mi da un errore che alcuni file system non possono essere montati
se rimuovo la riga dall'fstab e riporto la usr.old in usr funziona tutto.
Illuminatemi _________________ Pulisci l'html con:
Code: | sed 's/<[Bb][Rr][ \t]*\/*>/\n/g;s/<\/*[^>]\+\/*>//g' |
skype: matteopinguino
Last edited by table on Mon Aug 24, 2009 11:43 am; edited 1 time in total |
|
Back to top |
|
|
IlGab Guru
Joined: 26 Nov 2004 Posts: 486
|
Posted: Sat Aug 15, 2009 9:50 pm Post subject: |
|
|
Dopo aver spostato i file e modificato fstab, hao provato a fare il mount di /dev/sda8 per vedere che effetto fa ? |
|
Back to top |
|
|
table Apprentice
Joined: 17 Feb 2007 Posts: 279 Location: Gazzaniga (BG) Italy
|
Posted: Sat Aug 15, 2009 11:48 pm Post subject: |
|
|
IlGab wrote: | Dopo aver spostato i file e modificato fstab, hao provato a fare il mount di /dev/sda8 per vedere che effetto fa ? |
Sì, il mount in qualsiasi directory funziona, ma all'avvio non riesce a montare quel device in /usr.
Però mi viene un dubbio atroce, magari è perché manca la cartella usr
[Edit] Aggiungendo la /usr la situazione cambia ma da comunque notevoli errori, penso si tratti di un qualche problema di permessi, in particolare non vorrei che sia un problema di runlevel che cercano di montare le partizioni troppo presto, anche se non capisco perché il problema si deve presentare solo ora:
Code: | stealth ~ # rc-update show
acpid | battery default
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
cpufreqd | battery default
dbus | battery boot
hald | battery boot
hostname | boot
keymaps | boot
laptop_mode| battery
local | battery default nonetwork
localmount | boot
modules | boot
net.lo | boot
netmount | battery default
rmnologin | boot
sshd | boot
syslog-ng | battery default
urandom | boot
vixie-cron | battery default
xdm | battery boot
|
_________________ Pulisci l'html con:
Code: | sed 's/<[Bb][Rr][ \t]*\/*>/\n/g;s/<\/*[^>]\+\/*>//g' |
skype: matteopinguino |
|
Back to top |
|
|
IlGab Guru
Joined: 26 Nov 2004 Posts: 486
|
Posted: Sun Aug 16, 2009 8:48 am Post subject: |
|
|
Sapere quali errori aiuterebbe nel cercare una soluzione
Comunque i runlevel non centrano nulla.
Edit: io proverei ad usare tar per spostare il contenuto di usr anzichè cp. |
|
Back to top |
|
|
table Apprentice
Joined: 17 Feb 2007 Posts: 279 Location: Gazzaniga (BG) Italy
|
Posted: Sun Aug 16, 2009 12:20 pm Post subject: |
|
|
IlGab wrote: | Sapere quali errori aiuterebbe nel cercare una soluzione
|
come faccio a postare gli errori che ottengo al boot?
io volevo postarli ma non ho idea di come fare
in quale file di log si trovano? _________________ Pulisci l'html con:
Code: | sed 's/<[Bb][Rr][ \t]*\/*>/\n/g;s/<\/*[^>]\+\/*>//g' |
skype: matteopinguino |
|
Back to top |
|
|
IlGab Guru
Joined: 26 Nov 2004 Posts: 486
|
Posted: Sun Aug 16, 2009 6:51 pm Post subject: |
|
|
Perchè... più o meno non ti ricordi che messaggio ti da ? |
|
Back to top |
|
|
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
Posted: Sun Aug 23, 2009 8:52 am Post subject: |
|
|
domanda scema... hai copiate /usr o il contenuto di /usr in /dev/sda8 ?
Invece di riavviare fai un cambiamento on the fly, cioè cambia l'impostazione in fstab e fai un mount -o remount /usr
_________________ http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD |
|
Back to top |
|
|
xdarma l33t
Joined: 08 Dec 2003 Posts: 719 Location: tra veneto e friuli (italy)
|
Posted: Sun Aug 23, 2009 12:33 pm Post subject: Re: Spostare /usr su altra partizione |
|
|
table wrote: | 2) ho bootato via live cd e ho modificato l'fstab aggiungendo:
Code: | /dev/sda8 /usr ext3 defaults 0 0 |
|
Non è che ti manca "auto" tra le opzioni di mount per farla montare automaticamente e la modifica in "1 0" alla fine?
Appena fatto il boot, quali sono le partizioni montate? _________________ proud user of faKeDE-4.7.3 -> back to windowmaker -> moved to LXQt |
|
Back to top |
|
|
table Apprentice
Joined: 17 Feb 2007 Posts: 279 Location: Gazzaniga (BG) Italy
|
Posted: Mon Aug 24, 2009 11:43 am Post subject: |
|
|
koma wrote: | domanda scema... hai copiate /usr o il contenuto di /usr in /dev/sda8 ?
Invece di riavviare fai un cambiamento on the fly, cioè cambia l'impostazione in fstab e fai un mount -o remount /usr
|
l'avevo fatto,
comunque ho risolto, semplicemente spostando la vecchia usr in usr.old non mi ero ricordato di ricreare la cartella usr, e quindi il mount falliva.
Errore da principiante _________________ Pulisci l'html con:
Code: | sed 's/<[Bb][Rr][ \t]*\/*>/\n/g;s/<\/*[^>]\+\/*>//g' |
skype: matteopinguino |
|
Back to top |
|
|
|