Bug 2617

Summary: kernel-desktop-2.6.38.8-5 (error message during installation)
Product: Mageia Reporter: David GEIGER <geiger.david68210>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, mageia
Version: 1   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: screenshot of GParted

Description David GEIGER 2011-09-04 12:16:24 CEST
Hello,

Mageia release 1 (Official) for x86_64 ,kde 4.6.5

I installed the latest kernel (kernel-desktop-2.6.38.8-5),and during installation there is an error:

# urpmi --auto-update
le média « Core Release (distrib1) » est à jour
le média « Core Updates (distrib3) » est à jour
le média « Core Updates Testing (distrib5) » est à jour
le média « Nonfree Release (distrib11) » est à jour
le média « Nonfree Updates (distrib13) » est à jour
le média « Nonfree Updates Testing (distrib15) » est à jour
le média « Tainted Release (distrib21) » est à jour
le média « Tainted Updates (distrib23) » est à jour
le média « Tainted Updates Testing (distrib25) » est à jour
le média « Core 32bit Release (distrib31) » est à jour
le média « Core 32bit Updates (distrib33) » est à jour
le média « Core 32bit Updates Testing (distrib35) » est à jour
Pour satisfaire les dépendances, les paquetages suivants vont être installés :
   Paquetage                      Version      Révision      Arch   
(média « Core Updates Testing (distrib5) »)
  kernel-desktop-2.6.38.8-5.mga  1            1.mga1        x86_64  
  kernel-desktop-devel-2.6.38.8> 1            1.mga1        x86_64  
  kernel-desktop-devel-latest    2.6.38.8     5.mga1        x86_64  
  kernel-desktop-latest          2.6.38.8     5.mga1        x86_64  
un espace additionnel de 65Mo sera utilisé.
44Mo de paquets seront récupérés.
Procéder à l'installation des 4 paquetages ? (O/n) O


    $MIRRORLIST: media/core/updates_testing/kernel-desktop-latest-2.6.38.8-5.mga1.x86_64.rpm
    $MIRRORLIST: media/core/updates_testing/kernel-desktop-devel-2.6.38.8-5.mga-1-1.mga1.x86_64.rpm
    $MIRRORLIST: media/core/updates_testing/kernel-desktop-2.6.38.8-5.mga-1-1.mga1.x86_64.rpm
    $MIRRORLIST: media/core/updates_testing/kernel-desktop-devel-latest-2.6.38.8-5.mga1.x86_64.rpm
installation de kernel-desktop-devel-2.6.38.8-5.mga-1-1.mga1.x86_64.rpm kernel-desktop-latest-2.6.38.8-5.mga1.x86_64.rpm kernel-desktop-2.6.38.8-5.mga-1-1.mga1.x86_64.rpm kernel-desktop-devel-latest-2.6.38.8-5.mga1.x86_64.rpm depuis /var/cache/urpmi/rpms
Préparation ...                  ##############################################
      1/4: kernel-desktop-2.6.38.8-5.mga
                                 ##############################################
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
defaulting background resolution to 1024x768
      2/4: kernel-desktop-devel-2.6.38.8-5.mga
                                 ##############################################
      3/4: kernel-desktop-devel-latest
                                 ##############################################
      4/4: kernel-desktop-latest ##############################################
Vous devriez relancer votre ordinateur pour kernel-desktop-2.6.38.8-5.mga
writing /var/lib/rpm/installed-through-deps.list

Le paquetage suivant :
  kernel-desktop-devel-2.6.38.7-1.mga-1-1.mga1.x86_64
est désormais orphelin, si vous voulez le désinstaller, vous pouvez utiliser « urpme --auto-orphans »

And here's the return of the command "fdisk-l / dev / sda":

# fdisk -l /dev/sda

Disque /dev/sda: 320.1 Go, 320072933376 octets
255 têtes, 63 secteurs/piste, 38913 cylindres, total 625142448 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0x59c29e1c

Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sda1              63    16916444     8458191   27  Inconnu
/dev/sda2   *    16916445   163718414    73400985    7  HPFS/NTFS
/dev/sda3       163718415   625135615   230708600+   5  Etendue
/dev/sda5       163718478   197294264    16787893+  83  Linux
/dev/sda6       197294328   205680194     4192933+  82  Linux swap / Solaris
/dev/sda7       205680258   247625909    20972826   83  Linux
/dev/sda8       247625973   279097244    15735636   83  Linux
/dev/sda9       279097308   321026894    20964793+  83  Linux
/dev/sda10      321032192   625135615   152051712    7  HPFS/NTFS

For additional info:(The problems may be related)

https://bugs.mageia.org/show_bug.cgi?id=1525
https://bugs.mageia.org/show_bug.cgi?id=1954
Comment 1 Sander Lepik 2011-09-04 12:20:09 CEST
Just a suggestion: next time when coping output of commands add LC_ALL=C before them (ie LC_ALL=C fdisk -l /dev/sda). This will print the output in english.

CC: (none) => sander.lepik

Comment 2 David GEIGER 2011-09-04 12:53:41 CEST
OK, sorry. Thank you for the suggestion

# LC_ALL=C fdisk -l /dev/sda

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x59c29e1c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63    16916444     8458191   27  Unknown
/dev/sda2   *    16916445   163718414    73400985    7  HPFS/NTFS
/dev/sda3       163718415   625135615   230708600+   5  Extended
/dev/sda5       163718478   197294264    16787893+  83  Linux
/dev/sda6       197294328   205680194     4192933+  82  Linux swap / Solaris
/dev/sda7       205680258   247625909    20972826   83  Linux
/dev/sda8       247625973   279097244    15735636   83  Linux
/dev/sda9       279097308   321026894    20964793+  83  Linux
/dev/sda10      321032192   625135615   152051712    7  HPFS/NTFS
Comment 3 David GEIGER 2011-09-04 20:31:18 CEST
Created attachment 756 [details]
screenshot of GParted

I just made ââa discovery thanks GParted,

When I run it in console as root:

# LC_ALL=C gparted
======================
libparted : 2.3
======================
Can't have a partition outside the disk!


The partition in question is my external USB hard drive (/ dev / sdb),GParted displays this message and diskdrake also:

LC_ALL=C diskdrake
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!

Here is a screenshot of GParted:
Comment 4 David GEIGER 2011-09-04 20:34:43 CEST
The USB hard drive "/ dev / sdb" works perfectly, so why this error?
Comment 5 Dave Hodgins 2011-09-05 23:56:36 CEST
I'm guessing here, but it looks to me like you've done the equivalent of
"mkfs.ext? /dev/sdb" instead of creating a partition, and then using
"mkfs.ext? /dev/sdb1".

I.E. there is a file system using the entire device, instead of having
a partition table in the first sector.

I've done that in the past, and while it does work, it's risky.  When
I did that once with a usb flash device, I made the mistake of rebooting
into windows, with the usb flash device still connected.  Windows
overwrote the first sector with an empty partition table, without any
indication that it was doing so.

You can ignore the error messages, but do so accepting the risk, and
you have to be very careful what software you use with the device.

In my opinion, libparted should be printing something like
"Warning: No partition table found on device /dev/sdb", instead
of the error message that is being shown.

The srpm package libparted0 comes from is
parted-2.3-1.mga1.src.rpm

CC: (none) => davidwhodgins

Comment 6 David GEIGER 2011-09-06 17:50:46 CEST
Hello Dave,

It's very strange all this:)

Yes surely, Windows as overwrote the first sector with an empty partition table.
The device "sdb" is always connected, and it is never disconnect on Windows or on Mageia also.

It is a hard disk for data storage only.No system and no software is present on the partition.
I think a format will make him a great good.what do you think? or to have there another solution?

# LC_ALL=C fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xeb44d994

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   976784129   488391041    7  HPFS/NTFS
Comment 7 Dave Hodgins 2011-09-06 20:56:23 CEST
(In reply to comment #6)
> # LC_ALL=C fdisk -l /dev/sdb
> 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors

>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1            2048   976784129   488391041    7  HPFS/NTFS

I was wrong in my speculation.

Total disk   sectors 976773168
Partition end sector 976784129

According to the partition table, the end of the partition is beyond the
end of the drive, so the error message from libparted is correct.

Just fixing the partition table may be dangerous, as the internal ntfs
structure probably also thinks the partition is larger than it really
is.

I'd back up the data, delete the partition, and recreate with proper
sizes, then restore the data.
Comment 8 David GEIGER 2011-09-06 21:01:34 CEST
Ok,thanks Dave 

I will try as soon as possible.
Comment 9 David GEIGER 2011-09-25 11:42:25 CEST
So , I can close this bug because the problem is with my USB external hard drive 500Go. 

This message is correct: "Error: Can't have a partition outside the disk!"

Status: NEW => RESOLVED
Resolution: (none) => FIXED