← Back to team overview

kernel-packages team mailing list archive

[Bug 1288564] Re: [beta1] tool fdisk do not support disks with more than 65535 cylinders

 

Please mark this High.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1288564

Title:
  [beta1] tool fdisk do not support disks with more than 65535 cylinders

Status in “linux” package in Ubuntu:
  Incomplete

Bug description:
  Description:
  ==========
  Installed Ubuntu beta1 build ISO on a Power 8 machine as a KVM guest

  Trying to create partition on a 1 tera byte scsi disk using fdisk, but
  could not create as the cylinders are not shown if it is more than
  65535.

  also,

  uname -a
  ========
  Linux ubuntu 3.13.0-14-generic #34-Ubuntu SMP Thu Feb 27 22:35:16 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux

  Detail logs
  ========

  user@ubuntu:~$ lsblk
  NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  sda      8:0    0     1T  0 disk  
  vda    253:0    0    80G  0 disk 
  ├─vda1 253:1    0     7M  0 part 
  ├─vda2 253:2    0  76.7G  0 part /
  └─vda3 253:3    0   3.3G  0 part 

  ====> create parition on sda using fdisk

  root@ubuntu:~# fdisk /dev/sda
  The number of cylinders for this disk is set to 65535.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)
  Warning: invalid flag 7300 of partition table 4 will be corrected by w(rite)

  Command (m for help): p

  Disk /dev/sda: 255 heads, 63 sectors, 65535 cylinders
  Units = cylinders of 16065 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System

  Command (m for help): n
  Command action
     e   extended
     p   primary partition (1-4)
  p
  Partition number (1-4): 1
  First cylinder (1-65535): 1
  Last cylinder or +size or +sizeM or +sizeK ([1]-65535): 65535           =====>  cannot select more than 65535 as I want to create more partition using all cylinders of the disk

  Command (m for help): p

  Disk /dev/sda: 255 heads, 63 sectors, 65535 cylinders
  Units = cylinders of 16065 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  /dev/sda1            1        1    65535526409856   83  Linux native

  Command (m for help): w
  The partition table has been altered!

  Calling ioctl() to re-read partition table.
  (Reboot to ensure the partition table has been updated.)
  Syncing disks.

  WARNING: If you have created or modified any DOS 6.x
  partitions, please see the fdisk manual page for additional
  information.

  =======>  check if the parition is created
  root@ubuntu:~# lsblk
  NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  sda      8:0    0     1T  0 disk 
  ├─sda1   8:1    0   502G  0 part 
  ├─sda2   8:2    0   208G  0 part 
  ├─sda3   8:3    0   176G  0 part 
  └─sda4   8:4    0   144G  0 part 

  ====> dmesg logs:
  [  104.576752] type=1006 audit(1394083820.277:27): pid=844 uid=0 old auid=4294967295 new auid=1000 old ses=4294967295 new ses=1 res=1
  [  246.220015]  sda: sda1 sda2 sda3 sda4
  [  246.220772] sda: p2 size 1811966464 extends beyond EOD, enabling native capacity
  [  246.222415]  sda: sda1 sda2 sda3 sda4
  [  246.222541] sda: p2 size 1811966464 extends beyond EOD, truncated
  [  246.222619] sda: p3 size 1879076352 extends beyond EOD, truncated
  [  246.222673] sda: p4 size 1946186240 extends beyond EOD, truncated
  [  248.252926]  sda: sda1 sda2 sda3 sda4
  [  248.253858] sda: p2 size 1811966464 extends beyond EOD, truncated
  [  248.253930] sda: p3 size 1879076352 extends beyond EOD, truncated
  [  248.253995] sda: p4 size 1946186240 extends beyond EOD, truncated
  [  456.215618] type=1006 audit(1394084171.917:28): pid=914 uid=0 old auid=4294967295 new auid=1000 old ses=4294967295 new ses=2 res=1
  [  560.438928] kjournald starting.  Commit interval 5 seconds

  
  ====> Problem : I did not create the last 3 partition and they are not in size as I need, so fdisk tool needs support for the large disk

  ====> my guest xml

  <domain type='kvm' id='93'>
    <name>spartan_b1_disktest</name>
    <uuid>4b1d8ea3-5674-c98c-dd21-a42172b46070</uuid>
    <memory unit='KiB'>2097152</memory>
    <currentMemory unit='KiB'>2097152</currentMemory>
    <vcpu placement='static'>1</vcpu>
    <resource>
      <partition>/machine</partition>
    </resource>
    <os>
      <type arch='ppc64' machine='pseries'>hvm</type>
      <boot dev='hd'/>
    </os>
    <features>
      <acpi/>
      <apic/>
      <pae/>
    </features>
    <clock offset='utc'/>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>restart</on_crash>
    <devices>
      <emulator>/usr/bin/qemu-kvm</emulator>
      <disk type='file' device='disk'>
        <driver name='qemu' type='qcow2' cache='none'/>
        <source file='/var/lib/libvirt/images/abdul/ubuntu_b1_disktest.qcow2'/>
        <target dev='vda' bus='virtio'/>
        <alias name='virtio-disk0'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
      </disk>
      <disk type='block' device='disk'>
        <driver name='qemu' type='raw' cache='none'/>
        <source dev='/dev/sdf'/>
        <target dev='sdf' bus='scsi'/>
        <alias name='scsi0-0-0-1'/>
        <address type='drive' controller='0' bus='0' target='0' unit='1'/>
      </disk>
      <controller type='usb' index='0'>
        <alias name='usb0'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
      </controller>
      <controller type='pci' index='0' model='pci-root'>
        <alias name='pci.0'/>
      </controller>
      <controller type='scsi' index='0'>
        <alias name='scsi0'/>
        <address type='spapr-vio' reg='0x2000'/>
      </controller>
      <interface type='network'>
        <mac address='52:54:c0:a8:7a:18'/>
        <source network='default'/>
        <target dev='vnet21'/>
        <model type='e1000'/>
        <alias name='net0'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
      </interface>
      <serial type='pty'>
        <source path='/dev/pts/7'/>
        <target port='0'/>
        <alias name='serial0'/>
        <address type='spapr-vio' reg='0x30000000'/>
      </serial>
      <console type='pty' tty='/dev/pts/7'>
        <source path='/dev/pts/7'/>
        <target type='serial' port='0'/>
        <alias name='serial0'/>
        <address type='spapr-vio' reg='0x30000000'/>
      </console>
    </devices>
    <seclabel type='dynamic' model='selinux' relabel='yes'>
      <label>system_u:system_r:svirt_t:s0:c51,c857</label>
      <imagelabel>system_u:object_r:svirt_image_t:s0:c51,c857</imagelabel>
    </seclabel>
  </domain>

  Please let me know if you need more information

  Thanks
  --- 
  AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access /dev/snd/: No such file or directory
  AplayDevices: Error: [Errno 2] No such file or directory
  ApportVersion: 2.13.2-0ubuntu5
  Architecture: ppc64el
  ArecordDevices: Error: [Errno 2] No such file or directory
  CRDA: Error: [Errno 2] No such file or directory
  DistroRelease: Ubuntu 14.04
  HibernationDevice: RESUME=UUID=fcb8ad5e-d41d-412c-ba0c-3d07ed0a3ea5
  InstallationDate: Installed on 2014-03-05 (1 days ago)
  InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Alpha ppc64el (20140302)
  IwConfig: Error: [Errno 2] No such file or directory
  Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   LANGUAGE=en_IN:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_IN
   SHELL=/bin/bash
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinux-3.13.0-14-generic root=UUID=b91ab1b1-7661-4c7c-907e-05822ce8077f ro splash quiet vt.handoff=7
  ProcModules:
   pseries_rng 3309 0 - Live 0xd0000000007c2000
   rtc_generic 2711 0 - Live 0xd0000000007ce000
  ProcVersionSignature: Ubuntu 3.13.0-14.34-generic 3.13.5
  RelatedPackageVersions:
   linux-restricted-modules-3.13.0-14-generic N/A
   linux-backports-modules-3.13.0-14-generic  N/A
   linux-firmware                             1.125
  RfKill: Error: [Errno 2] No such file or directory
  Tags:  trusty
  Uname: Linux 3.13.0-14-generic ppc64le
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:
   
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1288564/+subscriptions


References