#1 Le 14/12/2014, à 11:55
- sangha974
[RESOLU] PB: Swap instable je dois le réactiver à chaque boot
Bonjour,
J'ai installé un SWAP de 2go avec Gparte mais il saute à chaque arrêt de la machine
Je dois le réactiver à chaque boot.
Une idée?
Merci pour votre aide.
Système
Ubuntu 14.04 (trusty)
Gnome 3.8.4
Kernel 3.13.0-43-generic
Intel(R) Core(TM)2 Duo CPU P7450 @ 2.13GHz
-Mounted File Systems-
/dev/sda1 / 50,31 % (9,0 GiB of 18,2 GiB)
none /sys/fs/cgroup 0,00 % (4,0 KiB of 4,0 KiB)
udev /dev 0,00 % (1,9 GiB of 1,9 GiB)
tmpfs /run 0,35 % (393,8 MiB of 395,2 MiB)
none /run/lock 0,00 % (5,0 MiB of 5,0 MiB)
none /run/shm 2,52 % (1,9 GiB of 1,9 GiB)
none /run/user 0,05 % (100,0 MiB of 100,0 MiB)
/dev/sdb2 /home 49,68 % (75,0 GiB of 149,1 GiB)
/dev/sda6 /tmp 5,81 % (3,4 GiB of 3,6 GiB)
-BIOS-
Date : 09/29/2009
Vendor : Packard Bell
Version : V2.07
-Board-
Name : EasyNote LJ65
Vendor : Packard Bell
Dernière modification par sangha974 (Le 14/12/2014, à 15:13)
Hors ligne
#2 Le 14/12/2014, à 12:25
- f.x0
Re : [RESOLU] PB: Swap instable je dois le réactiver à chaque boot
Bonjour sangha974,
ouvres un terminal
tapes
cat /etc/fstab
sudo blkid
swapon -s
et postes le résultat de ces commandes
SOPI
Hors ligne
#3 Le 14/12/2014, à 12:30
- Compte anonymisé
Re : [RESOLU] PB: Swap instable je dois le réactiver à chaque boot
Salut
sudo blkid
la tu doit voir apparaitre l'uuid de ton sawp
envoie le resultat de cette commande
ensuite il suffis de rajouter une ligne de ce genre dans etc/tstab
UUID=d9ec066c-b11f-4283-a2df-7bcd7f867d32 swap swap defaults 0 0
remplacer uuid par celle obtenue par la commande bklib
nano /etc/fstab
Apres un reboot tout devrais rentrer dans l'ordre
#4 Le 14/12/2014, à 14:47
- sangha974
Re : [RESOLU] PB: Swap instable je dois le réactiver à chaque boot
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda1 during installation
UUID=1370fcee-249e-47d7-bff4-c284996b06fb / ext4 errors=remount-ro 0 1
# /home was on /dev/sdc2 during installation
UUID=39fca120-e7bd-45c7-87c1-210e665697ec /home ext4 defaults 0 2
# /tmp was on /dev/sda6 during installation
UUID=383a8c5e-4b75-4323-8d30-7e97cc5f4962 /tmp ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=685b4745-28ad-4d90-85b4-31e9eb014477 none swap sw 0 0
# swap was on /dev/sdb2 during installation
UUID=90e67e7d-cef1-4cda-9113-44e62be2d10e none swap sw 0 0
sudo blkid
/dev/sda1: UUID="1370fcee-249e-47d7-bff4-c284996b06fb" TYPE="ext4"
/dev/sda5: LABEL="Documents 2" UUID="a039d027-bf70-4bab-bd5f-75b79b56580e" TYPE="ext4"
/dev/sda6: UUID="383a8c5e-4b75-4323-8d30-7e97cc5f4962" TYPE="ext4"
/dev/sda7: LABEL="Swap" UUID="2ecf14c9-b3fa-43bf-848d-5a16266a5405" TYPE="swap"
/dev/sdb1: LABEL="BACKUP" UUID="74eb3745-0d77-4859-89c5-6a3386e15e43" TYPE="ext4"
/dev/sdb2: LABEL="Home" UUID="39fca120-e7bd-45c7-87c1-210e665697ec" TYPE="ext4"
/dev/sdb3: LABEL="FILMS" UUID="e2724042-92fa-421a-8c8d-e3d1843a8154" TYPE="ext4"
swapon -s
Filename Type Size Used Priority
/dev/sda7 partition 2047996 1632 -1
Hors ligne
#5 Le 14/12/2014, à 14:57
- sangha974
Re : [RESOLU] PB: Swap instable je dois le réactiver à chaque boot
nano /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda1 during installation
UUID=1370fcee-249e-47d7-bff4-c284996b06fb / ext4 errors=remount-ro 0 1
# /home was on /dev/sdc2 during installation
UUID=39fca120-e7bd-45c7-87c1-210e665697ec /home ext4 defaults 0 2
# /tmp was on /dev/sda6 during installation
UUID=383a8c5e-4b75-4323-8d30-7e97cc5f4962 /tmp ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=685b4745-28ad-4d90-85b4-31e9eb014477 none swap sw 0 0
# swap was on /dev/sdb2 during installation
UUID=90e67e7d-cef1-4cda-9113-44e62be2d10e none swap sw 0 0
Après je suis pas certains d'avoir compris ce qu'il faut écrire
Hors ligne
#6 Le 14/12/2014, à 15:02
- f.x0
Re : [RESOLU] PB: Swap instable je dois le réactiver à chaque boot
Tapes
gksudo gedit /etc/fstab
et modifies ton fichier
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda1 during installation
UUID=1370fcee-249e-47d7-bff4-c284996b06fb / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb2 during installation
UUID=39fca120-e7bd-45c7-87c1-210e665697ec /home ext4 defaults 0 2
# /tmp was on /dev/sda6 during installation
UUID=383a8c5e-4b75-4323-8d30-7e97cc5f4962 /tmp ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=685b4745-28ad-4d90-85b4-31e9eb014477 none swap sw 0 0
# swap was on /dev/sdb2 during installation
UUID=90e67e7d-cef1-4cda-9113-44e62be2d10e none swap sw 0 0
comme ceci :
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda1 during installation
UUID=1370fcee-249e-47d7-bff4-c284996b06fb / ext4 errors=remount-ro 0 1
# /home was on /dev/sdc2 during installation
UUID=39fca120-e7bd-45c7-87c1-210e665697ec /home ext4 defaults 0 2
# /tmp was on /dev/sda6 during installation
UUID=383a8c5e-4b75-4323-8d30-7e97cc5f4962 /tmp ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=2ecf14c9-b3fa-43bf-848d-5a16266a5405 none swap sw 0 0
Enregistres ton fichier
quittes gedit
puis redémarres
Dernière modification par f.x0 (Le 14/12/2014, à 15:04)
SOPI
Hors ligne
#7 Le 14/12/2014, à 15:11
- sangha974
Re : [RESOLU] PB: Swap instable je dois le réactiver à chaque boot
CA MARCHE !!!
Magique
Merci
Hors ligne