Увеличение образа colinux

Status
Not open for further replies.

StringName

.NET Developer
« PW Мастер II »
May 11, 2012
456
234
63
36
г.Киев.
dyndev.ru
Жмем Пуск->Выполнить
В появившемся оке пишете

fsutil file createnew colinux_new.img 8589934592

8589934592 -- это 8 гб
17179869184 --это 16гб
34359738368 --это 32гб
51539607552 --это 48гб

# Далее сюда C:\Documents and Settings\имя пользователя\
Там появился фаил colinux_new.img перемешаем его в C:\coLinux\pwserver\

# Открываем конфиг C:\coLinux\pwserver\PWServer.CONF
Там мы видим вот такие строчки :
# Download and extract preconfigured file from SF "Images for 2.6".
cobd0="C:\coLinux\pwserver\PWServer.ext3"

# Swap device, should be an empty file with 128..512MB.
cobd1="C:\coLinux\pwserver\PWServer"
cobd2="C:\coLinux\pwserver\PWServer1_1Gb"
cobd3="C:\coLinux\pwserver\PWServer2_1Gb"
cobd4="C:\coLinux\pwserver\PWServer3_1Gb"
cobd5="C:\coLinux\pwserver\PWServer4_1Gb"

cobd6="C:\coLinux\pwserver\PWServer5_1Gb"

Дописываем вот такой код:
cobd7="C:\coLinux\pwserver\colinux_new.img"

Вот что должно получиться:
# The default kernel

kernel=vmlinux

# File contains the root file system.
# Download and extract preconfigured file from SF "Images for 2.6".
cobd0="C:\coLinux\pwserver\PWServer.ext3"

# Swap device, should be an empty file with 128..512MB.
cobd1="C:\coLinux\pwserver\PWServer"
cobd2="C:\coLinux\pwserver\PWServer1_1Gb"
cobd3="C:\coLinux\pwserver\PWServer2_1Gb"
cobd4="C:\coLinux\pwserver\PWServer3_1Gb"
cobd5="C:\coLinux\pwserver\PWServer4_1Gb"
cobd6="C:\coLinux\pwserver\PWServer5_1Gb"
cobd7="C:\coLinux\pwserver\colinux_new.img"

# Tell kernel the name of root device (mostly /dev/cobd0,
# /dev/cobd/0 on Gentoo)
# This parameter will be forward to Linux kernel.
root=/dev/cobd0

# Additional kernel parameters (ro = rootfs mount read only)
ro

# Initrd installs modules into the root file system.
# Need only on first boot.
initrd=initrd.gz

# Maximal memory for linux guest
mem=256

# Network
eth0=slirp,,tcp:29000:29000/tcp:80:80/tcp:8080:8080
#eth1=pcap-bridge,,00:FF:F9:54:7C:00

cofs0="C:\PW\"

Будьте внимательны при заполнении пути!

Запускаем PWServer.bat
Логин: root

# Теперь выполняем эти команы по очередности! Внимание после каждой команды ждите пока не появится вот такая строчка [root@fedora ~]#только потом пишем следуший код!

e2fsck /dev/cobd0

Здесь появится вот такая строчка Do you really want to continue (y/n)? жмем "y"
dd if=/dev/cobd0 of=/dev/cobd7

Теперь ждем пока скопируются 2 гб это может занять пару часов в зависимости от вашей машины.

e2fsck -f /dev/cobd7
Код:
Цитата:

resize2fs -p /dev/cobd7

И сново ждем пока наши крестики дойдут до конца
e2fsck /dev/cobd7
Закрываем colinux командой:

halt
Теперь открываем конфиг C:\coLinux\pwserver\PWServer.CONF
Ишем такую строчку:

cobd0="C:\coLinux\pwserver\PWServer.ext3"
И акуратно меняем на такую :

cobd0="C:\coLinux\pwserver\colinux_new.img"

На этом все увеличение образа закончено)

Гайд By Wiki
 
Status
Not open for further replies.

Members online

No members online now.

Latest resources

Forum statistics

Threads
3,852
Messages
21,335
Members
7,971
Latest member
SMRiST