在windows 下安装用wubi安装ubuntu8.04后,感觉/home不够用。可以使用如下方法增加一个虚拟盘:
cd /host/ubuntu/disks
# Create a new virtual home.disk of 15000 MB
dd if=/dev/zero of=home.disk bs=1MB count=1 seek=15000
mkfs.ext3 -F home.disk
# Backup the original directory, and create an empty dir with the same name
mv /home /home.backup
mkdir /home
# Make sure the new file gets mounted at boot
echo "/host/ubuntu/disks/home.disk /home ext3 loop 0 0" >> /etc/fstab
mount /home
# Copy over the old files
cp -a /home.backup/* /home
# Reboot
reboot
https://wiki.ubuntu.com/WubiGuide#head-5aac3daad4eb9fcc3502ba1a4d6891b71b050b1d
http://lubi.sourceforge.net/lvpm.html 这个好像是把虚拟安装转成物理安装的,还没有试。
ubuntu8.04如何调整 /home分区大小
最新推荐文章于 2021-05-31 14:31:17 发布