« coLinuxの環境構築(クロスコンパイル環境1) | メイン | GH-SDC1GC購入 »

2004年12月14日

coLinuxの環境構築(ディスク容量拡大)
LinuxZaurus/Develop colinux

まずDOSプロンプトにて以下コマンドを実行します。
2Gbyteに拡大する場合

C:\> fsutil file createnew root_fs_new 2147483648

現状(0.61)では2Gbyte以上のディスク容量は使用できないようです。

ついでに/optにマウントするディスクも作っておきます。

C:\> fsutil file createnew opt_fs 2147483648

root_fsがcoLinuxからアクセスできるようにdefault.colinux.xmlに追記します。
フォルダ名などは適切に変更してください。

<xml version="1.0" encoding="UTF-8"?>
<colinux>
<!-- This line needs to point to your root file system.
For example change "root_fs" to the name of the Debian image.
Inside coLinux it will be /dev/cobd0 -->
<block_device index="0" path="\DosDevices\d:\coLinux\root_fs"
enabled="true" />
<block_device index="1" path="\DosDevices\d:\coLinux\root_fs_new"
enabled="true" />

<block_device index="2" path="\DosDevices\d:\coLinux\opt_fs"
enabled="true" />

<block_device index="3" path="\DosDevices\d:\coLinux\swap_512b"
enabled="true" />
<!-- bootparams allows you to pass kernel boot parameters -->
<bootparams>root=/dev/cobd0</bootparams>

<!-- image allows you to specify the kernel to boot -->
<image path="vmlinux-2.4.26-smb" />

<!-- this line allows you to specify the amount of memory available
to coLinux -->
<memory size="64" />

<!-- This allows you to modify networking parameters, see the README
or website for more information -->
<network index="0" type="tap" />
</colinux>

coLinuxを立ち上げてext2ファイルシステムにフォーマットし、マウントします。(0.61ではext3は未対応)

#mkfs.ext2 /dev/cobd1
#mkfs.ext2 /dev/cobd2
#mkdir /mnt2
#mount -t ext2 /dev/cobd1 /mnt2

現状のシステムからコピーします。

#tar cvpf - `ls -1|grep -v proc|grep -v mnt2` | (cd /mnt2;tar xpf -)
#mkdir /mnt2/proc

opt_fsをマウントする場合は/mnt2/etc/fstabに追記します。

/dev/cobd0 / ext2 defaults 0 1
/dev/cobd2 /opt ext2 defaults 0 1
proc /proc proc defaults 0 0
/dev/cobd3 swap swap defaults 0 0

coLinuxを終了してroot_fs_newをroot_fsに置き換えます。

あとはdefault.colinux.xmlのroot_fs_newの項目を削除します。

<xml version="1.0" encoding="UTF-8"?>
<colinux>
<!-- This line needs to point to your root file system.
For example change "root_fs" to the name of the Debian image.
Inside coLinux it will be /dev/cobd0 -->
<block_device index="0" path="\DosDevices\d:\coLinux\root_fs"
enabled="true" />
<block_device index="2" path="\DosDevices\d:\coLinux\opt_fs"
enabled="true" />

<block_device index="3" path="\DosDevices\d:\coLinux\swap_512b"
enabled="true" />
<!-- bootparams allows you to pass kernel boot parameters -->
<bootparams>root=/dev/cobd0</bootparams>

<!-- image allows you to specify the kernel to boot -->
<image path="vmlinux-2.4.26-smb" />

<!-- this line allows you to specify the amount of memory available
to coLinux -->
<memory size="64" />

<!-- This allows you to modify networking parameters, see the README
or website for more information -->
<network index="0" type="tap" />
</colinux>

これでディスク容量拡大出来たはずです。
ちなみにopt_fsは必要な方のみで結構です。

投稿者 tattsuu : 2004年12月14日 22:01

トラックバック

このエントリーのトラックバックURL:
http://tattsuu.com/mt/mt-tb.cgi/6

» Online casinos www.nodeposit-onlinecasinos.com. from Free casinos online www.free-onlinecasinos.org.
Free casinos online www.free-onlinecasinos.org. Online casinos www.nodeposit-... [続きを読む]

トラックバック時刻: 2008年07月02日 07:50

» Online pharmacies that offer fioricet. from Fioricet online.
Online pharmacies that offer fioricet. Online fioricet w codeine medical cons... [続きを読む]

トラックバック時刻: 2008年07月12日 06:28

コメント

コメントしてください




保存しますか?