Liar
19.05.2007, 17:32
Основной упор в данной статье будет сделан на установку Open.BSD, установка Open.BSD не самый популярный вопрос на antichate хотя нечего сложного в этом нет. Сам процесс занимает около 7 минут, а его наиболее сложной и опасной частью является разбиение жесткого диска (особенно, если OpenBSD - не единственная установленная на нем ОС). А это действительно возможно иметь Windows+Open.BSD+Linux на одном диске.
Если вы начинаете на пустом месте , лучше начать с установки windows потом open.bsd и в самом конце Linux, целесообразность установки линукс в последнюю очередь объясняется использованием мультизагручика (в своём варианте я использовал grub).
У меня в наличии имеются 3 диска с WindowsXP sp2, Open.BSD 3.8 и ASP Linux 11.2Думаю, с покупкой WindowsXP sp2 и ASP Linux 11.2 у вас не возникнет проблем
дистрибутив OpenBSD можно получить с сайта проекта, приобрести в виде готовых дисков (например, в магазине ЛинуксЦентра) или же производить инсталляцию по FTP/HTTP.
Установку Windows я описывать не буду, так как с этим я думаю справиться каждый сам.
Я в своём варианте выделил для Windows 15G, перед установкой Windows я родным средством создания разделов входящим в данную ось соединил все логические разделы и выделил, как уже было сказано выше 15G выбрав для неё файловую систему NTFS.
После установки Windows устанавливаем Open.bsd/
После загрузки установочного диска с Open.bsd на экране появятся следующие сообщения:
erase ^?, werase ^W, kill ^U, intr ^C, status ^T
(I)nstall, (U)pgrade or (S)hell? I
Для установки новой системы выберите Install. В ответ будет выведено приветствие:
Welcome to the OpenBSD/i386 3.8 install program.
This program will help you install OpenBSD in a simple and rational way. At
any prompt except password prompts you can run a shell command by typing
'!foo', or escape to a shell by typing '!'. Default answers are shown in []'s
and are selected by pressing RETURN. At any time you can exit this program by
pressing Control-C and then RETURN, but quitting during an install can leave
your system in an inconsistent state.
Specify terminal type: [vt220]
Do you wish to select a keyboard encoding table? [n] ENTER
Просто нажмите "Enter".
IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this
program can cause SIGNIFICANT data loss.
It is often helpful to have the installation notes handy. For complex disk
configurations, relevant disk hardware manuals and a calculator are useful.
Proceed with install? [n] y
Введите "y". Здесь наступает самый ответственный момент. На экране появляется следующий текст:
Cool! Let's get to it...
You will now initialize the disk(s) that OpenBSD will use. To enable all
available security features you should configure the disk(s) to allow the
creation of separate filesystems for /, /tmp, /var, /usr, and /home.
Available disks are: wd0.
Which one is the root disk? (or done) [wd0] Enter
Выберите диск, на который будет записана загрузочная информация (wd0 – первый, wd1-второй и т.д.). В случае, если в системе установлен всего один HDD, можно принять значения по умолчанию, нажав "Enter".
Do you want to use *all* of wd0 for OpenBSD? [no] Enter
Ответьте на это предложение отказом, если только не хотите, чтобы OpenBSD заняла собой весь диск. После этого Вам будет предложено выделить для системы несколько разделов
You will now create a single MBR partition to contain your OpenBSD data. This
partition must have an id of 'A6'; must *NOT* overlap other partitions; and
must be marked as the only active partition.
The 'manual' command describes all the fdisk commands in detail.
Вот так вот выглядит моё окно в fdisk до моих изменений:
Disk: wd0 geometry: 4864/255/63 [78148160 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
*0: 06 0 1 1 - 1911 254 63 [ 63: 30716217 ] HPFS/QNX/AUX
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
fdisk: 1>
Разбиение диска необходимо проводить очень внимательно! Иначе Вы рискуете полностью потерять сохраненную на диске информацию. Отменить сделанные в fdisk изменения нельзя. Можно лишь выйти из программы установки и начать установку заново. Просто перезагружаться не стоит – другой редактор разделов не увидит изменений, но загрузить старую ОС не удастся.
Сформируем раздел под систему:
fdisk: 1> e 1
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Partition id ('0' to disable) [0 - FF]: [0] (? for help) a6
Do you wish to edit in CHS mode? [n] y
BIOS Starting cylinder [0 - 4864]: [0] 19112
BIOS Starting head [0 - 254]: [0] Enter
BIOS Starting sector [1 - 63]: [0] 1
BIOS Ending cylinder [0 - 4863]: [0] 3000
BIOS Ending head [0 - 254]: [0] 254
BIOS Ending sector [1 - 63]: [0] 63
Вот так вот выглядит моё окно в fdisk после моих изменений:
fdisk:*1> p m
Disk: wd0 4864/255/63 [78148160 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
*0: 06 0 1 1 - 1911 254 63 [ 63: 14998M] HPFS/QNX/AUX
1: A6 1912 0 1 - 3000 254 63 [ 30716200: 8542M] OpenBSD
2: 00 0 0 0 - 0 0 0 [ 0: 0M] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0M] unused
fdisk:*1>
fdisk:*1> f 1
Partition 1 marked active. [COLOR=White][I]
Теперь можно сохранить раздел и перейти к следующему пункту установки:
[COLOR=White][I] fdisk:*1> w
Writing MBR at offset 0.
wd0: no disk label
fdisk: 1> q
После выхода из fdisk запустится программа label editor:
Treating sectors 30716200-39100320 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.
Initial label editor (enter '?' for help at any prompt)
> ?
Здесь надо указать точки монтирования разделов и их размер. Я установил следующие параметры:
• wd0a: / (root) - 500M.
• wd0b: (swap) - 600M. Раздел подкачки должен иметь размер, приблизительно равный удвоенному объему оперативной памяти
• wd0d: /tmp - 300M. Место под временные файлы
• wd0e: /var – 100M. Здесь хранятся серверные журналы и т.п.
• wd0g: /usr - 4G. Место для программ (иногда на это выделяют и 2/3 диска)
• wd0h: /home – 2.5G. Место для личных файлов пользователей.
Вот порядок выполняемых действий:
> p m
device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: HTS424040M9AT00
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 38154.4M
free sectors: 8542.4M
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 8542.4M 14998.2M unused 0 0
c: 38154.4M 0.0M unused 0 0
i: 14998.2M 0.0M unknown
> d a
> a a
offset: [30716280] Enter
size: [17494785] 500M
Rounding to nearest cylinder: 1023624
FS type: [4.2BSD] Enter
mount point: [none] /
> a b
offset: [31739904] Enter
size: [16471161] 600M
Rounding to nearest cylinder: 1228752
FS type: [swap] Enter
> a d
offset: [32968656] Enter
size: [15242409] 300m
Rounding to nearest cylinder: 614880
FS type: [4.2BSD] Enter
mount point: [none] /tmp
> a e
offset: [33583536] Enter
size: [14627529] 100m
Rounding to nearest cylinder: 164304
FS type: [4.2BSD] Enter
mount point: [none] /var
> a g
offset: [33788160] Enter
size: [14422905] 4g
Rounding to nearest cylinder: (не заснял на камеру )
FS type: [4.2BSD] Enter
mount point: [none] /usr
> a h
offset: [42176736] Enter
size: [034329] 2500m
Rounding to nearest cylinder: (не заснял на камеру )
FS type: [4.2BSD] Enter
mount point: [none] /home
После редактирования мой disklabel выглядит следующим образом
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 499.8M 14998.7M (не заснял на камеру )# /
b: 600.0M 15498.8M swap
c: 38154.4M 0.0M unused 0 0
d: 300.2M 16098.0M (не заснял на камеру ) # /tmp
e: 99.9M 16398.2M (не заснял на камеру ) # /var
g: 4096.0M 16498.1M 4.2BSD (не заснял на камеру ) # /usr
h: 2499.8M 20594.1M 4.2BSD (не заснял на камеру ) #/home
i: 14998.2M 0.0M MSDOS
> q
Write new label?: [y] Enter
Тонкое место: монтирование разделов необходимо проводить строго в указанном порядке. После монтирования последнего раздела надо ввести done и нажать "Enter".
The root filesystem will be mounted on wd0a.
wd0b will be used for swap space.
Mount point for wd0d (size=122976k), none or done? [/tmp] Enter
Mount point for wd0e (size=82152k), none or done? [/var] Enter
Mount point for wd0g (size=2097144k), none or done? [/usr] Enter
Mount point for wd0h (size=4194288k), none or done? [/home] Enter
Mount point for wd0d (size=122976k), none or done? [/tmp] done
Done - no available disks found.
You have configured the following partitions and mount points:
wd0a /
wd0d /tmp
wd0e /var
wd0g /usr
wd0h /home
The next step creates a filesystem on each partition, ERASING existing data.
Are you really sure that you're ready to proceed? [n] y
/dev/rwd0a: 307440 sectors in 305 cylinders of 16 tracks, 63 sectors
150.1MB in 20 cyl groups (16 c/g, 7.88MB/g, 1920 i/g)
/dev/rwd0d: 245952 sectors in 244 cylinders of 16 tracks, 63 sectors
………………………………………… ………………………………………… ………………………………………… ………………………………………… …………………
ctime=Th u Oct 10 21:50:36 2002)
Мы закончили проведение необратимых операций (разметка, форматирование) над диском.
Следующий этап – это уже дело техники. Вводим имя машины и сетевые параметры:
Я использовал параметры приведённые ниже (с небольшими изменениями):
Enter system hostname (short form, e.g. 'foo'): hostname
Configure the network? [y] Enter
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] Enter
Symbolic (host) name for fxp0? [puffy] Enter
The default media for fxp0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [n] Enter
IP address for fxp0? (or 'dhcp') 111.111.111.111
Netmask? [255.255.255.0] Enter
Done - no available interfaces found.
DNS domain name? (e.g. 'bar.com') [my.domain] example.com
DNS nameserver? (IP address or 'none') [none] 111.111.111.111
Use the nameserver now? [y] Enter
Default route? (IP address, 'dhcp' or 'none') 111.111.111.111
add net default: gateway 199.185.137.128
Edit hosts with ed? [n] Enter
Do you want to do any manual network configuration? [n] Enter
Окончание ниже.
Если вы начинаете на пустом месте , лучше начать с установки windows потом open.bsd и в самом конце Linux, целесообразность установки линукс в последнюю очередь объясняется использованием мультизагручика (в своём варианте я использовал grub).
У меня в наличии имеются 3 диска с WindowsXP sp2, Open.BSD 3.8 и ASP Linux 11.2Думаю, с покупкой WindowsXP sp2 и ASP Linux 11.2 у вас не возникнет проблем
дистрибутив OpenBSD можно получить с сайта проекта, приобрести в виде готовых дисков (например, в магазине ЛинуксЦентра) или же производить инсталляцию по FTP/HTTP.
Установку Windows я описывать не буду, так как с этим я думаю справиться каждый сам.
Я в своём варианте выделил для Windows 15G, перед установкой Windows я родным средством создания разделов входящим в данную ось соединил все логические разделы и выделил, как уже было сказано выше 15G выбрав для неё файловую систему NTFS.
После установки Windows устанавливаем Open.bsd/
После загрузки установочного диска с Open.bsd на экране появятся следующие сообщения:
erase ^?, werase ^W, kill ^U, intr ^C, status ^T
(I)nstall, (U)pgrade or (S)hell? I
Для установки новой системы выберите Install. В ответ будет выведено приветствие:
Welcome to the OpenBSD/i386 3.8 install program.
This program will help you install OpenBSD in a simple and rational way. At
any prompt except password prompts you can run a shell command by typing
'!foo', or escape to a shell by typing '!'. Default answers are shown in []'s
and are selected by pressing RETURN. At any time you can exit this program by
pressing Control-C and then RETURN, but quitting during an install can leave
your system in an inconsistent state.
Specify terminal type: [vt220]
Do you wish to select a keyboard encoding table? [n] ENTER
Просто нажмите "Enter".
IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this
program can cause SIGNIFICANT data loss.
It is often helpful to have the installation notes handy. For complex disk
configurations, relevant disk hardware manuals and a calculator are useful.
Proceed with install? [n] y
Введите "y". Здесь наступает самый ответственный момент. На экране появляется следующий текст:
Cool! Let's get to it...
You will now initialize the disk(s) that OpenBSD will use. To enable all
available security features you should configure the disk(s) to allow the
creation of separate filesystems for /, /tmp, /var, /usr, and /home.
Available disks are: wd0.
Which one is the root disk? (or done) [wd0] Enter
Выберите диск, на который будет записана загрузочная информация (wd0 – первый, wd1-второй и т.д.). В случае, если в системе установлен всего один HDD, можно принять значения по умолчанию, нажав "Enter".
Do you want to use *all* of wd0 for OpenBSD? [no] Enter
Ответьте на это предложение отказом, если только не хотите, чтобы OpenBSD заняла собой весь диск. После этого Вам будет предложено выделить для системы несколько разделов
You will now create a single MBR partition to contain your OpenBSD data. This
partition must have an id of 'A6'; must *NOT* overlap other partitions; and
must be marked as the only active partition.
The 'manual' command describes all the fdisk commands in detail.
Вот так вот выглядит моё окно в fdisk до моих изменений:
Disk: wd0 geometry: 4864/255/63 [78148160 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
*0: 06 0 1 1 - 1911 254 63 [ 63: 30716217 ] HPFS/QNX/AUX
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
fdisk: 1>
Разбиение диска необходимо проводить очень внимательно! Иначе Вы рискуете полностью потерять сохраненную на диске информацию. Отменить сделанные в fdisk изменения нельзя. Можно лишь выйти из программы установки и начать установку заново. Просто перезагружаться не стоит – другой редактор разделов не увидит изменений, но загрузить старую ОС не удастся.
Сформируем раздел под систему:
fdisk: 1> e 1
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Partition id ('0' to disable) [0 - FF]: [0] (? for help) a6
Do you wish to edit in CHS mode? [n] y
BIOS Starting cylinder [0 - 4864]: [0] 19112
BIOS Starting head [0 - 254]: [0] Enter
BIOS Starting sector [1 - 63]: [0] 1
BIOS Ending cylinder [0 - 4863]: [0] 3000
BIOS Ending head [0 - 254]: [0] 254
BIOS Ending sector [1 - 63]: [0] 63
Вот так вот выглядит моё окно в fdisk после моих изменений:
fdisk:*1> p m
Disk: wd0 4864/255/63 [78148160 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
*0: 06 0 1 1 - 1911 254 63 [ 63: 14998M] HPFS/QNX/AUX
1: A6 1912 0 1 - 3000 254 63 [ 30716200: 8542M] OpenBSD
2: 00 0 0 0 - 0 0 0 [ 0: 0M] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0M] unused
fdisk:*1>
fdisk:*1> f 1
Partition 1 marked active. [COLOR=White][I]
Теперь можно сохранить раздел и перейти к следующему пункту установки:
[COLOR=White][I] fdisk:*1> w
Writing MBR at offset 0.
wd0: no disk label
fdisk: 1> q
После выхода из fdisk запустится программа label editor:
Treating sectors 30716200-39100320 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.
Initial label editor (enter '?' for help at any prompt)
> ?
Здесь надо указать точки монтирования разделов и их размер. Я установил следующие параметры:
• wd0a: / (root) - 500M.
• wd0b: (swap) - 600M. Раздел подкачки должен иметь размер, приблизительно равный удвоенному объему оперативной памяти
• wd0d: /tmp - 300M. Место под временные файлы
• wd0e: /var – 100M. Здесь хранятся серверные журналы и т.п.
• wd0g: /usr - 4G. Место для программ (иногда на это выделяют и 2/3 диска)
• wd0h: /home – 2.5G. Место для личных файлов пользователей.
Вот порядок выполняемых действий:
> p m
device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: HTS424040M9AT00
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 38154.4M
free sectors: 8542.4M
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 8542.4M 14998.2M unused 0 0
c: 38154.4M 0.0M unused 0 0
i: 14998.2M 0.0M unknown
> d a
> a a
offset: [30716280] Enter
size: [17494785] 500M
Rounding to nearest cylinder: 1023624
FS type: [4.2BSD] Enter
mount point: [none] /
> a b
offset: [31739904] Enter
size: [16471161] 600M
Rounding to nearest cylinder: 1228752
FS type: [swap] Enter
> a d
offset: [32968656] Enter
size: [15242409] 300m
Rounding to nearest cylinder: 614880
FS type: [4.2BSD] Enter
mount point: [none] /tmp
> a e
offset: [33583536] Enter
size: [14627529] 100m
Rounding to nearest cylinder: 164304
FS type: [4.2BSD] Enter
mount point: [none] /var
> a g
offset: [33788160] Enter
size: [14422905] 4g
Rounding to nearest cylinder: (не заснял на камеру )
FS type: [4.2BSD] Enter
mount point: [none] /usr
> a h
offset: [42176736] Enter
size: [034329] 2500m
Rounding to nearest cylinder: (не заснял на камеру )
FS type: [4.2BSD] Enter
mount point: [none] /home
После редактирования мой disklabel выглядит следующим образом
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 499.8M 14998.7M (не заснял на камеру )# /
b: 600.0M 15498.8M swap
c: 38154.4M 0.0M unused 0 0
d: 300.2M 16098.0M (не заснял на камеру ) # /tmp
e: 99.9M 16398.2M (не заснял на камеру ) # /var
g: 4096.0M 16498.1M 4.2BSD (не заснял на камеру ) # /usr
h: 2499.8M 20594.1M 4.2BSD (не заснял на камеру ) #/home
i: 14998.2M 0.0M MSDOS
> q
Write new label?: [y] Enter
Тонкое место: монтирование разделов необходимо проводить строго в указанном порядке. После монтирования последнего раздела надо ввести done и нажать "Enter".
The root filesystem will be mounted on wd0a.
wd0b will be used for swap space.
Mount point for wd0d (size=122976k), none or done? [/tmp] Enter
Mount point for wd0e (size=82152k), none or done? [/var] Enter
Mount point for wd0g (size=2097144k), none or done? [/usr] Enter
Mount point for wd0h (size=4194288k), none or done? [/home] Enter
Mount point for wd0d (size=122976k), none or done? [/tmp] done
Done - no available disks found.
You have configured the following partitions and mount points:
wd0a /
wd0d /tmp
wd0e /var
wd0g /usr
wd0h /home
The next step creates a filesystem on each partition, ERASING existing data.
Are you really sure that you're ready to proceed? [n] y
/dev/rwd0a: 307440 sectors in 305 cylinders of 16 tracks, 63 sectors
150.1MB in 20 cyl groups (16 c/g, 7.88MB/g, 1920 i/g)
/dev/rwd0d: 245952 sectors in 244 cylinders of 16 tracks, 63 sectors
………………………………………… ………………………………………… ………………………………………… ………………………………………… …………………
ctime=Th u Oct 10 21:50:36 2002)
Мы закончили проведение необратимых операций (разметка, форматирование) над диском.
Следующий этап – это уже дело техники. Вводим имя машины и сетевые параметры:
Я использовал параметры приведённые ниже (с небольшими изменениями):
Enter system hostname (short form, e.g. 'foo'): hostname
Configure the network? [y] Enter
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] Enter
Symbolic (host) name for fxp0? [puffy] Enter
The default media for fxp0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [n] Enter
IP address for fxp0? (or 'dhcp') 111.111.111.111
Netmask? [255.255.255.0] Enter
Done - no available interfaces found.
DNS domain name? (e.g. 'bar.com') [my.domain] example.com
DNS nameserver? (IP address or 'none') [none] 111.111.111.111
Use the nameserver now? [y] Enter
Default route? (IP address, 'dhcp' or 'none') 111.111.111.111
add net default: gateway 199.185.137.128
Edit hosts with ed? [n] Enter
Do you want to do any manual network configuration? [n] Enter
Окончание ниже.