bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem 1.8.0 read images


From: Heiko Lehmann
Subject: Problem 1.8.0 read images
Date: Sat, 2 Dec 2006 22:12:28 +0100 (CET)

Hallo!

I have a problem.
Parted 1.8.0 can not read images.
Parted 1.7.1 can read images.
Details see attachment.

Whats going wrong?

regards Heiko


-------------------------------------------------------------------
- Problem:
  - after install Parted 1.8.0
    images cannot read.
    Error: Unable to open /mnt/cdtmp/xen/wxp.hda.img - unrecognised disk
label.


- Details:
  - orginal debian stable:

  # /sbin/parted wxp.hda.img
# /sbin/parted   $hdimg
GNU Parted 1.7.1
Using /mnt/cdtmp/xen/w2k.hda.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p

Disk /mnt/cdtmp/xen/w2k.hda.img: 2202MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

(parted)


  - self-compiled 1.8.0
# /usr/local/sbin/parted $hdimg
GNU Parted 1.8.0
Using /mnt/cdtmp/xen/w2k.hda.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: Unable to open /mnt/cdtmp/xen/w2k.hda.img - unrecognised disk
label.
(parted)


  - fdisk -l
  # echo fdisk -l  -H $H -S $S -C $Cimg  $hdimg
  fdisk -l -H 255 -S 63 -C 256
  # fdisk -l  -H $H -S $S -C $Cimg  $hdimg
   Disk w2k.hda.img: 0 MB, 0 bytes
   255 heads, 63 sectors/track, 256 cylinders
   Units = cylinders of 16065 * 512 = 8225280 bytes

      Device Boot      Start         End      Blocks   Id  System
      w2k.hda.img1   *           1         256     2056319+   7  HPFS/NTFS

    -> PT seen Ok.

  - compare 1.7.1 1.8.0
    - funktions ped_disk_new(),ped_device_open(),ped_disk_probe()
      seen not to be changed.


  - strace 1.8.0
  ## - p (print parttable):
  ....
  G_DFL}, 8) = 0
  write(1, "(parted) ", 9(parted) )                = 9
  rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
  read(0, "p", 1)                         = 1
  write(1, "p", 1p)                        = 1
  rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
  read(0, "\r", 1)                        = 1
  write(1, "\n", 1
  )                       = 1
  ....
  _llseek(3, 7168, [7168], SEEK_SET)      = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 7680, [7680], SEEK_SET)      = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 0, [0], SEEK_SET)            = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 0, [0], SEEK_SET)            = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 512, [512], SEEK_SET)        = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 1572863488, [1572863488], SEEK_SET) = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 0, [0], SEEK_SET)            = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 0, [0], SEEK_SET)            = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 0, [0], SEEK_SET)            = 0
  read(3, 0x8068200, 1024)                = -1 EINVAL (Invalid argument)
  _llseek(3, 0, [0], SEEK_SET)            = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  _llseek(3, 0, [0], SEEK_SET)            = 0
  read(3, 0x8068200, 512)                 = -1 EINVAL (Invalid argument)
  Error: Unable to open /mnt/cdtmp/xen/w2k.hda.img - unrecognised disk
label.
  ) = 152
  rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0

  - ldd 1.8.0
  # ldd /usr/local/sbin/parted
        libparted-1.8.so.0 => /usr/local/lib/libparted-1.8.so.0
(0x40026000)
        libreadline.so.5 => /lib/libreadline.so.5 (0x400a2000)
        libdl.so.2 => /lib/libdl.so.2 (0x400d2000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x400d7000)
        libc.so.6 => /lib/libc.so.6 (0x40119000)
        /lib/ld-linux.so.2 (0x40000000)

  - ldd 1.7.1 (debian)
  # ldd /sbin/parted
        libparted-1.7.so.1 => /lib/libparted-1.7.so.1 (0x40026000)
        libreadline.so.5 => /lib/libreadline.so.5 (0x40089000)
        libdl.so.2 => /lib/libdl.so.2 (0x400b9000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x400be000)
        libc.so.6 => /lib/libc.so.6 (0x40100000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x40222000)
        /lib/ld-linux.so.2 (0x40000000)
#

  - ldd 1.7.1 self compiled
  $ ldd /tmp/parted-1.7.1/parted/parted
  /usr/bin/ldd: line 161: /lib64/ld-linux-x86-64.so.2: cannot execute
binary file
    not a dynamic executable
    ->  must "make install" to using ldd

  # make install
  $ ldd /usr/local/sbin/parted
        libparted-1.7.so.1 => /lib/libparted-1.7.so.1 (0x40026000)
        libreadline.so.5 => /lib/libreadline.so.5 (0x40089000)
        libdl.so.2 => /lib/libdl.so.2 (0x400b9000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x400be000)
        libc.so.6 => /lib/libc.so.6 (0x40100000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x40222000)
        /lib/ld-linux.so.2 (0x40000000)

    - seen not to be use another libs.

    -> self compiled 1.7.1 cam read images
       -> compile-options,gcc seen ok.
------------------------------------------------------------------------




   +----------------------------------------------------------------+
   |  Name:      Heiko Lehmann                                      |
   |  Anschrift: FHL-HRZ, Groszenhainer Str. 57, 01968 Senftenberg  |
   |  Telephon:  03573/85/358                            \\|//      |
   |  E-Mail:    address@hidden                  (o^o)      |
   +--------------------------------------------------oo0-(_)-0oo---+





reply via email to

[Prev in Thread] Current Thread [Next in Thread]