Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
linux:btrfs [21-10-2018 11:50] edmc73 [Passer de ext4 à btrfs] |
linux:btrfs [08-07-2019 22:43] edmc73 [Passer de ext4 à btrfs] |
||
---|---|---|---|
Ligne 119: | Ligne 119: | ||
Pour hdd | Pour hdd | ||
- | mount /dev/sda2 -o rw, | + | mount /dev/sda2 -o rw, |
Dans un fichier fstab, refaite la commande blkid et mettez à jour votre fstab | Dans un fichier fstab, refaite la commande blkid et mettez à jour votre fstab | ||
Ligne 133: | Ligne 133: | ||
update-initramfs -u -k all | update-initramfs -u -k all | ||
update-grub | update-grub | ||
+ | |||
+ | |||
+ | |||
+ | With Grub Legacy we need to modify root=UUID value in menu.lst file to btrfs partition’s manually. I used the following lines for Grub’s menu.lst file. | ||
+ | |||
+ | title Linux 2.6.32.67 | ||
+ | uuid 89591593-766e-4565-9d5c-017fb0e33298 | ||
+ | kernel | ||
+ | initrd | ||
+ | |||
+ | In this example, a90c79b1-5883-44cc-9e74-752db9ca764d is the UUID of btrfs partition and 89591593-766e-4565-9d5c-017fb0e33298 is UUID of /boot partition. | ||
+ | |||
+ | Also, I used following lines for my /etc/fstab file. | ||
+ | |||
+ | / | ||
+ | / | ||
+ | As you can see, I just wrote a path (/dev/sda1) instead of UUID as described in the referenced site. | ||
+ | |||
+ | Update initrd images | ||
+ | Because some scripts and hooking are added to initramfs, initrd images in /boot directory should be updated. | ||
+ | |||
+ | I could not update them with command (i.e. update-initramfs -u -k all) described in the referenced site. It was guessed due to the kernel version difference between Live USB and my original installation. I designated the kernel version as a parameter like below and it worked. | ||
+ | |||
+ | update-initramfs -u -k 2.6.32.67 | ||
+ | |||