个人工具
登录
查看“UbuntuHelp:FeistyLUKSTwoFormFactor”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:FeistyLUKSTwoFormFactor”的源代码
来自Ubuntu中文
←
UbuntuHelp:FeistyLUKSTwoFormFactor
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== Setup Encrypted Swap == Now setup the encrypted SWAP which will replace `/dev/sda2`. '''Caution:''' Once you convert the temporary root `/dev/sda2` to `swap` you won't be able to make use of the un-encrypted volume for setup work and changes to the encrypted volumes. It'll mean you start from scratch if things go haywire. === Edit /etc/crypttab === <pre><nowiki> echo cryptSwap /dev/sda2 /dev/random swap >> /etc/crypttab </nowiki></pre> === Edit /etc/fstab === Add `/dev/mapper/cryptSwap none swap sw 0 0` <pre><nowiki> # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> # /dev/sda1 /dev/sda1 /boot ext3 defaults 0 2 /dev/mapper/cryptSwap none swap sw 0 0 /dev/mapper/vg00-lvroot / ext3 defaults 0 1 /dev/mapper/vg00-lvvar /var ext3 defaults 0 1 /dev/mapper/vg00-lvtmp /tmp ext2 defaults 0 1 /dev/mapper/vg00-lvhome /home ext3 defaults 0 1 proc /proc proc defaults 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 </nowiki></pre> === Update initramfs Image === <pre><nowiki> update-initramfs -u ALL </nowiki></pre> === Radomize SWAP /dev/sda2 === There goes the un-encrypted installation... Again, this will take about 15-30 minutes depending on the size of sda2. <pre><nowiki> dd if=/dev/urandom of=/dev/sda2 </nowiki></pre> === Reboot and Confirm Swap === You'll unlock everything again on reboot. <pre><nowiki> reboot </nowiki></pre> You should see cryptSwap is active. If not go back to `/etc/fstab` or `/etc/crypttab`. <pre><nowiki> cat /proc/swaps </nowiki></pre>
返回至
UbuntuHelp:FeistyLUKSTwoFormFactor
。