| 202 | |
| 203 | * 其實 debian / ubuntu live cd 都可以使用 casper-rw 來當做 unionfs 的空間。今天遇到一個狀況就是:如果 casper-rw 空間不夠的話,該怎麼放大呢?有篇討論提供的作法挺不賴: |
| 204 | {{{ |
| 205 | Re: Resize Casper-rw file (persistent store of ubuntu on usb pendrive)? |
| 206 | You can also resize the filesystem. First, you need to extend the image file to the desired size. If you want increase the size from 500MB to 1GB, you'll need to add 500MB of zeroes to the end of the file. |
| 207 | |
| 208 | It's a good idea to backup the image first. |
| 209 | |
| 210 | 1. add 500MB of zeroes to the end of the image casper-rw. Make sure you use >> (append) and not > (overwrite). |
| 211 | |
| 212 | dd if=/dev/zero bs=1M count=500 >> casper-rw |
| 213 | |
| 214 | 2. resize the filesystem to cover the entire image file |
| 215 | |
| 216 | resize2fs casper-rw |
| 217 | |
| 218 | That should be it. |
| 219 | }}} |