package partition_table::bsd; # $Id$ use diagnostics; use strict; use vars qw(@ISA); @ISA = qw(partition_table::raw); use common; use partition_table::raw; use partition_table; use c; #- very bad and rough handling :( my %typeToDos = ( 8 => 0x83, 1 => 0x82, ); my %typeFromDos = reverse %typeToDos; my ($main_format, $main_fields) = list2kv( I => 'magic', S => 'type', S => 'subtype', a16 => 'typename', a16 => 'packname', I => 'secsize', I => 'nsectors', I => 'ntracks', I => 'ncylinders', I => 'secpercyl', I => 'secprtunit', S => 'sparespertrack', S => 'sparespercyl', I => 'acylinders', S => 'rpm', S => 'interleave', S => 'trackskew', S => 'cylskew', I => 'headswitch', I => 'trkseek', I => 'flags', a20 => 'drivedata', a20 => 'spare', I => 'magic2', S => 'checksum', S => 'npartitions', I => 'bbsize', I => 'sbsize', a128 => 'partitions', a236 => 'blank', ); $main_format = join '', @$main_format; my @fields = qw(size start fsize type frag cpg); my $format = "I I I C C S"; my $magic = 0x82564557; my $nb_primary = 8; my $offset = 0x40; sub read($$) { my ($hd, $sector) = @_; my $tmp; my $F = partition_table::raw::openit($hd) or die "failed to open device"; c::lseek_sector(fileno($F), $sector, $offset) or die "reading of partition in sector $sector failed"; sysread $F, $tmp, psizeof($main_format) or die "error while reading partition table in sector $sector"; my %info; @info{@$main_fields} = unpack $main_format, $tmp; #- TODO verify checksum my $size = psizeof($format); my @pt = map { my %h; @h{@fields} = unpack $format, $_; $h{type} = $typeToDos{$h{type}} || $h{type}; \%h; } $info{partitions} =~ /(.{$size})/g; #- check magic number $info{magic} == $magic or die "bad magic number on disk $hd->{device}"; $info{magic2} == $magic or die "bad magic number on disk $hd->{device}"; [ @pt ], \%info; } # write the partition table (and extended ones) # for each entry, it uses fields: start, size, type, active sub write($$$;$) { my ($hd, $sector, $pt, $info) = @_; #- handle testing for writing partition table on file only! my $F; if ($::testing) { my $file = "/tmp/partition_table_$hd->{device}"; open $F, ">$file" or die "error opening test file $file"; } else { $F = partition_table::raw::openit($hd, 2) or die "error opening device $hd->{device} for writing"; c::lseek_sector(fileno($F), $sector, $offset) or return 0; } #- TODO compute checksum $info->{npartitions} = $nb_primary; #- is it ok? @$pt == $nb_primary or die "partition table does not have $nb_primary entries"; $info->{partitions} = join '', map { local $_->{type} = $typeFromDos{$_->{type}} || $_->{type}; pack $format, @$_{@fields}; } @$pt; syswrite $F, pack($main_format, @$info{@$main_fields}), psizeof($main_format) or return 0; 1; } sub info { my ($hd) = @_; my $dtype_scsi = 4; #- taken from fdisk, removed unused one, my $dtype_ST506 = 6; #- see fdisk for more { magic => $magic, magic2 => $magic, dtype => $hd->{device} =~ /^sd/ ? $dtype_scsi : $dtype_ST506, secsize => $common::SECTORSIZE, ncylinders => $hd->{geom}{cylinders}, secpercyl => $hd->cylinder_size, secprtunit => $hd->{geom}{totalsectors}, rpm => 3600, interleave => 1, trackskew => 0, cylskew => 0, headswitch => 0, trkseek => 0, bbsize => 8192, #- size of boot area, with label sbsize => 8192, #- max size of fs superblock }; } sub clear_raw { my ($hd) = @_; { raw => [ ({}) x $nb_primary ], info => info($hd) }; } sub first_usable_sector { 2048 } 1; 39'>39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   
      <title>Configuration Summary</title>
      <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
      <link rel="home" href="index.html" title="DrakX ile kurulum">
      <link rel="up" href="index.html" title="DrakX ile kurulum">
      <link rel="prev" href="setupBootloader.html" title="Bootloader">
      <link rel="next" href="locale.html" title="Locale"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
         <!--
      body { font-family: sans-serif; font-size: 13px }
      table { font-family: sans-serif; font-size: 13px }
    --></style></head>
   <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
      <div lang="tr" class="section" title="Configuration Summary">
         <div class="titlepage">
            <div>
               <div>
                  <h2 class="title"><a name="misc-params"></a>Configuration Summary
                  </h2>
               </div>
            </div>
         </div>
           
         
           
         
           
         
           
         
           
         
           
         
           
         
           
         
           
         <p><a name="misc-params-pa1"></a>DrakX presents a proposal for the configuration of your system depending on
            the choices you made and on the hardware detected. You can check the
            settings here and change them if you want by pressing
            <span class="emphasis"><em>Configure</em></span>.
         </p>
         
           
         <div class="note" title="Not" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
               <tr>
                  <td rowspan="2" align="center" valign="top" width="25"><img alt="[Not]" src="note.png"></td>
                  <th align="left"></th>
               </tr>
               <tr>
                  <td align="left" valign="top">
                         
                     <p>As a general rule, it is recommended that you accept the default settings
                        unless:
                     </p>
                     <div class="itemizedlist">
                        <ul class="itemizedlist">
                           <li class="listitem">
                                        
                              <p>&ouml;ntan&#305;ml&#305; bir ayarla ilgili bilinen sorunlar&#305; olmas&#305;</p>
                                      
                           </li>
                           <li class="listitem">
                                        
                              <p>&ouml;ntan&#305;ml&#305; ayar &ouml;nceden denenmi&#351; ve ba&#351;ar&#305;s&#305;z olmas&#305;</p>
                                      
                           </li>
                           <li class="listitem">
                                        
                              <p>some other factor mentioned in the detailed sections below is an issue</p>
                                      
                           </li>
                        </ul>
                     </div>
                       
                  </td>
               </tr>
            </table>
         </div>
         
           
         <div class="section" title="Sistem parametreleri">
            <div class="titlepage">
               <div>
                  <div>
                     <h3 class="title"><a name="misc-params-system"></a>Sistem parametreleri
                     </h3>
                  </div>
               </div>
            </div>
                
            
                
            <div class="itemizedlist">
               <ul class="itemizedlist">
                  <li class="listitem">
                             
                     <p><a name="misc-params-system-pa2"></a><span class="bold"><strong>Timezone</strong></span></p>
                     
                             
                     <p><a name="misc-params-system-pa2a"></a>DrakX selects a timezone for you, depending on your preferred language. You
                        can change it if needed. See also <a class="xref" href="locale.html#configureTimezoneUTC" title="Zaman Dilimini Yap&#305;land&#305;rma">Configure Timezone</a></p>
                           
                  </li>
                  <li class="listitem">
                             
                     <p><a name="misc-params-system-pa3"></a><span class="bold"><strong>Country / Region</strong></span></p>
                     
                             
                     <p><a name="misc-params-system-pa3a"></a>If the selected country is wrong, it is very important that you correct the
                        setting.  See <a class="xref" href="locale.html#selectCountry" title="&Uuml;lke/B&ouml;lge se&ccedil;in">Select Country</a></p>
                           
                  </li>
                  <li class="listitem">
                             
                     <p><a name="misc-params-system-pa4"></a><span class="bold"><strong>Bootloader</strong></span></p>
                     
                             
                     <p><a name="misc-params-system-pa4a"></a>DrakX proposal for the bootloader setting
                     </p>
                     
                             
                     <p><a name="misc-params-system-pa4b"></a>Do not change anything, unless you know how to configure GRUB2. For more
                        information, see <a class="xref" href="setupBootloader.html" title="Bootloader">Bootloader</a></p>
                     
                             
                           
                     
                  </li>
                  <li class="listitem">
                             
                     <p><a name="misc-params-system-pa5"></a><span class="bold"><strong>User management</strong></span></p>
                     
                             
                     <p><a name="misc-params-system-pa5a"></a>You can add extra users here. They will each be allocated their own
                        <code class="filename">/home</code> directories.
                     </p>
                           
                  </li>
                  <li class="listitem">
                             
                     <p><a name="misc-params-system-pa6"></a><span class="bold"><strong>Services</strong></span></p>
                     
                             
                     <p><a name="misc-params-system-pa6a"></a>System services refer to those small programs which run in the background
                        (daemons).  This tool allows you to enable or disable certain processes.
                     </p>
                     
                             
                     <p><a name="misc-params-system-pa6b"></a>You should check carefully before changing anything here - a mistake may
                        prevent your computer from operating correctly. For more information, see
                        <a class="xref" href="configureServices.html" title="Hizmetleri Yap&#305;land&#305;rma">Configure Services</a></p>
                           
                  </li>
               </ul>
            </div>
              
         </div>
         
           
         <div class="section" title="Donan&#305;m parametreleri">
            <div class="titlepage">
               <div>
                  <div>
                     <h3 class="title"><a name="misc-params-hardware"></a>Donan&#305;m parametreleri
                     </h3>
                  </div>
               </div>
            </div>
                
            
                
            <div class="itemizedlist">
               <ul class="itemizedlist">
                  <li class="listitem">
                             
                     <p><a name="misc-params-hardware-pa1"></a><span class="bold"><strong>Keyboard</strong></span></p>
                     
                             
                     <p><a name="misc-params-hardware-pa1a"></a>Configure your keyboard layout according to your location, language and type
                        of keyboard.
                     </p>
                     
                             
                     <div class="note" title="Not" style="margin-left: 0.5in; margin-right: 0.5in;">
                        <table border="0" summary="Note">
                           <tr>
                              <td rowspan="2" align="center" valign="top" width="25"><img alt="[Not]" src="note.png"></td>
                              <th align="left"></th>
                           </tr>
                           <tr>
                              <td align="left" valign="top">
                                           
                                 <p>Yanl&#305;&#351; klavye d&uuml;zeni ile kar&#351;&#305;la&#351;t&#305;n&#305;z ve de&#287;i&#351;tirmek istiyorsan&#305;z
                                    parolan&#305;z&#305;n da de&#287;i&#351;ece&#287;ini unutmay&#305;n.
                                 </p>
                                         
                              </td>
                           </tr>
                        </table>
                     </div>
                           
                  </li>
                  <li class="listitem">
                             
                     <p><a name="misc-params-hardware-pa2"></a><span class="bold"><strong>Mouse</strong></span></p>
                     
                             
                     <p><a name="misc-params-hardware-pa2a"></a>Burada di&#287;er i&#351;aretleme ara&ccedil;lar&#305;n&#305;, tabletleri, iztoplar&#305;n&#305;
                        v.b. ayarlayabilirsiniz.
                     </p>
                           
                  </li>
                  <li class="listitem">
                             
                     <p><a name="misc-params-hardware-pa3"></a><span class="bold"><strong>Sound card</strong></span></p>
                     
                             
                     <p><a name="misc-params-hardware-pa3a"></a>The installer will use the default driver if one is available.
                     </p>
                     
                             
                     <p>If there is no actual default driver for your sound card, there may be other
                        possible alternative drivers available to choose from. If this is the case,
                        but you think the installer has not made the most appropriate choice, you
                        can click on <span class="emphasis"><em>Advanced</em></span> to manually specify a driver.
                     </p>
                           
                  </li>
                  <li class="listitem">
                             
                     <p><a name="misc-params-hardware-pa4"></a><span class="bold"><strong>Graphical interface</strong></span></p>
                     
                             
                     <p><a name="misc-params-hardware-pa4a"></a>This section allows you to configure your graphics card(s) and displays. For