Petite expérience intéressante
Partitionnement spécial
Retours d'expériences

ahlner Membre non connecté
-
- Voir le profil du membre ahlner
- Inscrit le : 30/08/2013
- Groupes :
Pour changer, et faire "plus admin", j'ai varié le partitionnement :
Code TEXT :
[ahlner@localhost ~]$ mount|grep /sd /dev/sdc2 on / type ext4 (rw,relatime,data=ordered) /dev/sdc1 on /boot type ext3 (rw,relatime,data=ordered)
Code TEXT :
[ahlner@localhost ~]$ cat /etc/fstab # Entry for /dev/sdc2 : UUID=d5645c65-a41c-4788-953a-22025d89b59a / ext4 relatime,acl 1 1 # Entry for /dev/sdc1 : UUID=297ad0f8-0c62-41ce-bcf9-dfe107b23088 /boot ext3 relatime,acl 1 2 none /proc proc defaults 0 0 # Entry for /dev/sdb1 : UUID=bebf0cbc-00f5-403e-86eb-7999a64d4a6a swap swap defaults 0 0
Disques internes :
/dev/sda /windows
/dev/sdb : Mageia 6, PCLinuxOS, openSUSE Tumbleweed
Pour ménager la clef USB, j'utilise la partition swap du disque interne.
Ce qui m'a motivé pour ce partitionnement était de comparer le contenu de la partition /boot avec celui du dossier boot de la /
Code TEXT :
[ahlner@localhost ~]$ ls -l /boot total 16015 -rw-r--r-- 1 root root 196019 juin 29 21:29 config-4.9.35-desktop-1.mga6 drwxr-xr-x 2 root root 1024 nov. 16 2016 dracut/ drwxr-xr-x 6 root root 1024 nov. 19 16:50 grub2/ -rw------- 1 root root 7977314 nov. 19 16:43 initrd-4.9.35-desktop-1.mga6.img lrwxrwxrwx 1 root root 32 nov. 19 16:43 initrd.img -> initrd-4.9.35-desktop-1.mga6.img drwx------ 2 root root 12288 nov. 19 11:20 lost+found/ -rw-r--r-- 1 root root 169196 juin 29 21:29 symvers-4.9.35-desktop-1.mga6.xz -rw-r--r-- 1 root root 3210967 juin 29 21:29 System.map-4.9.35-desktop-1.mga6 lrwxrwxrwx 1 root root 29 nov. 19 16:43 vmlinuz -> vmlinuz-4.9.35-desktop-1.mga6 -rw-r--r-- 1 root root 4759488 juin 29 21:29 vmlinuz-4.9.35-desktop-1.mga6
Pour comparer avec le dossier boot de la /, j'ai été amené à monter /dev/sdc2 (la /) dans /mnt :
Code TEXT :
[root@localhost ahlner]# mount /dev/sdc2 /mnt
Code TEXT :
[root@localhost ahlner]# mount|grep /sd /dev/sdc2 on / type ext4 (rw,relatime,data=ordered) /dev/sdc1 on /boot type ext3 (rw,relatime,data=ordered) /dev/sdc2 on /mnt type ext4 (rw,relatime,data=ordered)
Code TEXT :
[root@localhost ahlner]# ls /mnt/boot
Conclusion : lorsqu'une partition /boot séparée existe, le contenu du dossier boot de la / est vide. C'est ce que je voulais vérifier avec ce partitonnement spécial. Pour finir :
Code TEXT :
[root@localhost ahlner]# umount /mnt [root@localhost ahlner]# mount|grep /sd /dev/sdc2 on / type ext4 (rw,relatime,data=ordered) /dev/sdc1 on /boot type ext3 (rw,relatime,data=ordered)
Je suis assez content.
Édité par ahlner Le 19/11/2017 à 20h59
"La théorie, c'est quand on sait tout et que rien ne fonctionne. La pratique, c'est quand tout fonctionne et que personne ne sait pourquoi. Ici, nous avons réuni théorie et pratique : Rien ne fonctionne... et personne ne sait pourquoi !"
Albert Einstein
Albert Einstein
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie