Re: Swap
Il 23/09/2011 15:23, pinguino ha scritto:
Ciao lista,
In questi giorni ho ridimensionato e spostato le partizioni dell'hard
disk principale, con gparted da una chiavetta live.
Il piccolo problema e' che adesso non avvia piu' la partizione di swap
in automatico all'avvio.
Per avviarlo in modo manuale so come si fa' : con swapon /dev/sdx da
root si avvia.
Ma come posso fare per dire al sistema di avviare di nuovo la swap in
modo automatico all'avvio ?
Grazie
Claudio
Con il cmd "blkid" (eventualente +sudo) verifichi gli UID di tutte le
partizioni.
Poi editi /etc/fstab (salva sempre l'originale prima di modificarlo) e
verifica la correttezza delle impostazioni per la partizione di swap.
Dato che un esempio concreto vale + di 100 spiegazioni ti allego il
listato del mio fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=aaaa557e-cb6c-42d6-b533-88f112df7632 / ext4
errors=remount-ro 0 1
# /boot was on /dev/sda6 during installation
UUID=4416f9ed-ab30-409e-ad1a-d4086038b02a /boot ext4
defaults 0 2
# /home was on /dev/sda8 during installation
UUID=b4752012-8741-4b3a-82ee-278eb7d23fb0 /home ext4
defaults 0 2
*# swap was on /dev/sda2 during installation
UUID=d1c2027b-dfce-48b8-935d-f8f5c9c91cad none swap sw
0 0*
#
# /media/hd_backup was on /dev/sda9 during installation
UUID=04018bb5-419d-40ae-9465-685752eafd9b /media/hd_backup ext4
defaults 0 2
#
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8
0 0
Nella speranza di esserti stato utile :-)
Sasluti,
Felice
Reply to:
- References:
- Swap
- From: pinguino <claudio.sandrone@fastwebnet.it>