Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Операционные системы » UNIX » Общие вопросы по FreeBSD

Модерирует : ShriEkeR

 Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

Открыть новую тему     Написать ответ в эту тему

gryu



дикий гусь
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору

# fdisk -i ada1
******* Working on device /dev/ada1 *******
parameters extracted from in-core disklabel are:
cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl)
 
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl)
 
Do you want to change our idea of what BIOS thinks ? [n] n
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 156301425 (76319 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 436/ head 15/ sector 63
Do you want to change it? [n] y
 
.....
 
Supply a decimal value for "sysid (165=FreeBSD)" [165]
Supply a decimal value for "start" [63]
Supply a decimal value for "size" [156301425] 78150712  (156301425 пополам 0.5 отбросил естественно)
fdisk: WARNING: partition does not end on a cylinder boundary
fdisk: WARNING: this may confuse the BIOS or some operating systems
Correct this automatically? [n] y
fdisk: WARNING: adjusting size of partition to 78150177
Explicitly specify beg/end address ? [n] n
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 78150177 (38159 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 729/ head 15/ sector 63
Are we happy with this entry? [n]
 
........-
 
Do you want to change it? [n] y
Supply a decimal value for "sysid (165=FreeBSD)" [0] 165
Supply a decimal value for "start" [0] 78150177
Supply a decimal value for "size" [0] 78150712
fdisk: WARNING: partition does not end on a cylinder boundary
fdisk: WARNING: this may confuse the BIOS or some operating systems
Correct this automatically? [n] y
fdisk: WARNING: adjusting size of partition to 78150303
Explicitly specify beg/end address ? [n] n
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 78150177, size 78150303 (38159 Meg), flag 0
        beg: cyl 729/ head 15/ sector 1;
        end: cyl 435/ head 15/ sector 63
Are we happy with this entry? [n]  
 
.........
 
Information from DOS bootblock is:
1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 78150177 (38159 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 729/ head 15/ sector 63
2: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 78150177, size 78150303 (38159 Meg), flag 0
        beg: cyl 729/ head 15/ sector 1;
        end: cyl 435/ head 15/ sector 63
3: <UNUSED>
4: <UNUSED>
Should we write new partition table? [n] y
fdisk: Class not found
 
 
78150177(стартовый сектор 2 партици) +  78150303  (size) = 156300480 , а размер диска 156301425 + 63 = 156301488
 
Вот тут получилось меньше. А бывает больше  
 
А Я понял почему получилось меньше. Кстати обратите внимание на мою ошибку при назначении стартового сектора 2-го раздела.
Я ошибочно указал в качестве стартового сектора 2-го раздела 78150177(размер первого), забыв 63 прибавить.  
т.е. пересеклись хвост первого и начала второго раздела.  
И "оно это сьело" несмотря на автокоррекцию
 
 
А вот если сидеть и высчитывать - ровно оно получается
# fdisk -i ada1
******* Working on device /dev/ada1 *******
parameters extracted from in-core disklabel are:
cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl)
 
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl)
 
Do you want to change our idea of what BIOS thinks ? [n] n
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 78150177 (38159 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 729/ head 15/ sector 63
Do you want to change it? [n] y
 
The static data for the slice 1 has been reinitialized to:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 156301425 (76319 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 436/ head 15/ sector 63
Supply a decimal value for "sysid (165=FreeBSD)" [165]
Supply a decimal value for "start" [63]
Supply a decimal value for "size" [156301425] 78150712   <половинка от общего обёма>
fdisk: WARNING: partition does not end on a cylinder boundary
fdisk: WARNING: this may confuse the BIOS or some operating systems
Correct this automatically? [n] y
fdisk: WARNING: adjusting size of partition to 78150177
Explicitly specify beg/end address ? [n] n
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 78150177 (38159 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 729/ head 15/ sector 63
Are we happy with this entry? [n] y
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 78150177, size 78150303 (38159 Meg), flag 0
        beg: cyl 729/ head 15/ sector 1;
        end: cyl 435/ head 15/ sector 63
Do you want to change it? [n] y
Supply a decimal value for "sysid (165=FreeBSD)" [0] 165
Supply a decimal value for "start" [0] 78150240  <63 + скорректированный обьём>
Supply a decimal value for "size" [0] 78151248   <63 + общий обьём - стартовый сектор>
Explicitly specify beg/end address ? [n] n
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 78150240, size 78151248 (38159 Meg), flag 0
        beg: cyl 730/ head 0/ sector 1;
        end: cyl 436/ head 15/ sector 63
Are we happy with this entry? [n] y
The data for partition 3 is:
<UNUSED>
Do you want to change it? [n] n
The data for partition 4 is:
<UNUSED>
Do you want to change it? [n] n
Partition 1 is marked active
Do you want to change the active partition? [n] n
 
We haven't changed the partition table yet.  This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl)
 
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl)
 
Information from DOS bootblock is:
1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 78150177 (38159 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 729/ head 15/ sector 63
2: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 78150240, size 78151248 (38159 Meg), flag 0
        beg: cyl 730/ head 0/ sector 1;
        end: cyl 436/ head 15/ sector 63
 
 
 
78150240 + 78151248 = 63 + 156301425
 

Всего записей: 13033 | Зарегистр. 15-03-2006 | Отправлено: 11:59 04-04-2013 | Исправлено: gryu, 12:26 04-04-2013
Открыть новую тему     Написать ответ в эту тему

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Операционные системы » UNIX » Общие вопросы по FreeBSD


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru