2009年5月1日 星期五

擴充wubi 的磁碟空間

http://lubi.sourceforge.net/lvpm.html

http://mypaper.pchome.com.tw/news/coldswallo/3/1311135584/20081112235556/


參考資料:
http://linuxtoy
.org/archives/change-partition-size-with-lpvm.html
用 LPVM 來修改用 Wubi 安裝 Ubuntu 時分配的硬盤大小

http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=11336&forum=7&post_id=57553
建議把wubi的容量調大一點 [論壇 - Ubuntu 與工具程式] - Ubuntu 正體中文站:


http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=50014#forumpost50014
在windows內直接安裝ubuntu 後來發現ubuntu空間不夠怎辦 [論壇 - 新手村] - Ubuntu 正體中文站:


http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=11928&forum=1&post_id=61097#forumpost61097
擴充wubi的磁碟空間? [論壇 - Ubuntu安裝問題] - Ubuntu 正體中文站:

https://wiki.ubuntu.com/WubiGuide#How%20do%20I%20resize%20the%20virtual%20disks?
WubiGuide - Ubuntu Wiki:







How do I resize the virtual disks?

You can use LVPM, at http://lubi.sourceforge.net/lvpm.html

As an alternative, you can use the following script to move /home or /usr to a dedicated virtual disk.

Download wubi-add-virtual-disk, open a terminal and run:

sudo sh wubi-add-virtual-disk /home 15000

Where the first argument is the directory to move to a new dedicated disk, and the second argument is the size in MB.

The 2 directories you are most likely to migrate are /home (if you have a lot of user data) and /usr (if you installed a lot of software).

You should now reboot. If you are happy with the result, you can now remove /home.backup. To undo the changes remove /home, copy rename /home.backup to /home and remove the /home line in /etc/fstab.


https://wiki.ubuntu.com/WubiGuide#How%20do%20I%20resize%20the%20virtual%20disks?
以上是較簡單的方法

之前有另一篇直接改映像檔大小的:
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=50014#forumpost50014

用ubuntu光碟開

以下假設ubuntu安裝在/media/sda2

打開終端機

cd /media/sda2/ubuntu/disks

sudo dd if=/dev/zero of=root2.disk bs=1MB count=1 seek=80000

sudo mkfs.ext3 -F root2.disk

sudo mkdir tmproot
sudo mkdir tmproot2
sudo mount -o loop root.disk tmproot
sudo mount -o loop root2.disk tmproot2
sudo cp -afuvx tmproot/* tmproot2/
sudo umount tmproot
sudo umount tmproot2
sudo rm -rf tmproot
sudo rm -rf tmproot2
sudo mv root.disk root.disk.bak
sudo mv root2.disk root.disk

重開機試試看ubuntu正常否

如果ok,就移除舊的
sudo rm /host/ubuntu/disks/root.disk.bak

如果不ok,就換回舊的
用光碟重開機
cd /media/sda2/ubuntu/disks
sudo rm root.disk
sudo mv root.disk.bak root.disk
舊的就恢復了
咱們再進入遊戲2
---應該不會有問題,先試試吧

http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=flat&type=&topic_id=11336&forum=7

沒有留言:

張貼留言

BloggerAds