<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>11805</bug_id>
          
          <creation_ts>2007-05-18 16:16:25 +0400</creation_ts>
          <short_desc>fat partitios made by mkdosfs cannot be resized</short_desc>
          <delta_ts>2020-02-03 17:27:05 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>fatresize</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Bolshakov">sbolshakov</reporter>
          <assigned_to name="Олег Соловьев">mcpain</assigned_to>
          <cc>mcpain</cc>
    
    <cc>mouse</cc>
    
    <cc>real.altlinux.org</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50367</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2007-05-18 16:16:25 +0400</bug_when>
    <thetext>root@qlinux ~ # file -s /dev/hdb1
/dev/hdb1: x86 boot sector, mkdosfs boot message display, code offset
0x3c, OEM-ID &quot; mkdosfs&quot;, sectors/cluster 32, root entries 512, Media
descriptor 0xf8, sectors/FAT 200, sectors 1638566 (volumes &gt; 32 MB) ,
serial number 0x464d8d86, label: &quot;           &quot;, FAT (16 bit)

root@qlinux ~ # fatresize -i -v /dev/hdb1
fatresize 1.0.2 (03/25/07)
Error: The file system&apos;s CHS geometry is (0, 0, 0), which is invalid.
The partition table&apos;s CHS geometry is (130, 255, 63).  If you select
Ignore, the file system&apos;s CHS geometry will be left unchanged.  If you
select Fix, the file system&apos;s CHS geometry will be set to match the
partition table&apos;s CHS geometry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50368</commentid>
    <comment_count>1</comment_count>
    <who name="Anton V. Boyarshinov">boyarsh</who>
    <bug_when>2007-05-18 16:25:18 +0400</bug_when>
    <thetext>Относится ли это также к разделам, созданным средствами dos/windows?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50369</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2007-05-18 16:47:30 +0400</bug_when>
    <thetext>не могу сказать, за неимением оных.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50370</commentid>
    <comment_count>3</comment_count>
    <who name="">led</who>
    <bug_when>2007-05-18 17:00:45 +0400</bug_when>
    <thetext>(In reply to comment #0)

Какой командой создавалась FS?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50374</commentid>
    <comment_count>4</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2007-05-18 17:36:03 +0400</bug_when>
    <thetext>mkdosfs /dev/hdb1, mkdosfs /dev/evms/hdb1
В первом случае всё работает нормально, во втором -- нет.
Раньше работало в обоих случаях.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95008</commentid>
    <comment_count>5</comment_count>
    <who name="Kachalov Anton">mouse</who>
    <bug_when>2009-07-21 16:04:40 +0400</bug_when>
    <thetext>$ ls -l /dev/hdb1
# fatresize -i -vvv /dev/hdb1

CHS геометрия не зависит от ФС... она зависит от того, что libparted(!) получает от ядра, вызывая сисколл для получения размера блочного устройства. Специальный хак (strncmp(dev,&quot;/dev/evms/&quot;,..)) никто не убирал. Если в данном случае /dev/hdb1 - это тот же /dev/evms/hdb1, то... нужно пропатчить fatresize, чтобы он дёргал stat и получал major для устройства. Но сначала нужно подвердить предположение.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110174</commentid>
    <comment_count>6</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-06-28 10:32:45 +0400</bug_when>
    <thetext>В сизифе уже 1.0.3. Кто-нибудь проверял в работе? Ошибка осталась?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187463</commentid>
    <comment_count>7</comment_count>
    <who name="Slava Aseev">ptrnine</who>
    <bug_when>2020-02-03 17:27:05 +0300</bug_when>
    <thetext>mkdosfs, как я понял, уже нет, а после mkfs.fat все уже давно работает нормально. Поэтому, закрываю баг.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>