把系统安装到固态硬盘

有一部电脑退休了,多出来一个120G的SAMSUNG 840 固态硬盘,就琢磨着如何把Arch Linux安装到固态硬盘当中。

  1. 在树莓派上安装btrfs-progs,会更新内核以支持btrfs文件系统 sudo apt-get install btrfs-progs
  2. 把Micro SD卡中根目录复制到固态硬盘中 sudo cp -r /mnt/sd/ /mnt/ssd/
  3. 更改/etc/fstab,把ext4改为btrfs
  4. 更改sd中的/cmdline.tx,把text4改为btrfs,PARTUUID也要改为SSD硬盘中的对应UUIDlsblk -f dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=123e4567-e89b-12d3-a456-426655440000 rootfstype=btrfs elevator=deadline rootwait quiet splash

    参考文章

  5. https://raspberrypi.stackexchange.com/questions/8265/btrfs-root-filesystem-on-raspbian

results matching ""

    No results matching ""