Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151247 - gentoo installer deletes all existing partitions
Summary: gentoo installer deletes all existing partitions
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 17:50 UTC by dr. nikolaus klepp
Modified: 2006-12-16 20:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
installprofile.xml (installprofile.xml,3.92 KB, text/plain)
2006-10-13 17:51 UTC, dr. nikolaus klepp
Details
/log/dmesg (dmesg,12.61 KB, text/plain)
2006-10-13 17:52 UTC, dr. nikolaus klepp
Details
/log/installer.log.failed (installer.log.failed,3.85 KB, text/plain)
2006-10-13 17:52 UTC, dr. nikolaus klepp
Details
/log/lastlog (lastlog,285.44 KB, text/plain)
2006-10-13 17:53 UTC, dr. nikolaus klepp
Details
/log/messages (messages,28.37 KB, text/plain)
2006-10-13 17:53 UTC, dr. nikolaus klepp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dr. nikolaus klepp 2006-10-13 17:50:34 UTC
the genztoo installer deletes all existing partitions and then tries to recreate all partitions, even when you dont change any partitions.,and that procedure fails sometimes. 

fdisk output:

Platte /dev/hda: 40.0 GByte, 40007761920 Byte
255 heads, 63 sectors/track, 4864 cylinders, zusammen 78140160 Sektoren
Einheiten = Sektoren von 1 
Comment 1 dr. nikolaus klepp 2006-10-13 17:50:34 UTC
the genztoo installer deletes all existing partitions and then tries to recreate all partitions, even when you dont change any partitions.,and that procedure fails sometimes. 

fdisk output:

Platte /dev/hda: 40.0 GByte, 40007761920 Byte
255 heads, 63 sectors/track, 4864 cylinders, zusammen 78140160 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/hda1              63    17494785     8747361+   7  HPFS/NTFS
/dev/hda2        34073865    55038689    10482412+  83  Linux
/dev/hda3        55038690    78140159    11550735    5  Erweiterte
/dev/hda4        17510850    34073864     8281507+  83  Linux
/dev/hda5        55038753    57127139     1044193+  82  Linux Swap / Solaris
/dev/hda6        57127203    67617584     5245191   83  Linux
/dev/hda7        67617648    78140159     5261256    c  W95 FAT32 (LBA)

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge




/var/log/installer.log.failed:

GLI: October 14 2006 00:37:02 - Gentoo Linux Installer version 0.4.1
GLI: October 14 2006 00:37:02 - Setting root password.
GLI: October 14 2006 00:37:02 - Livecd root password set.
GLI: October 14 2006 00:37:04 - Portmap started.
GLI: October 14 2006 00:37:04 - Completed pre_install steps
GLI: October 14 2006 00:50:59 - partition(): Processing /dev/hda...
GLI: October 14 2006 00:50:59 -   Partition 1 has origminor 1...saving start sector 63 and end sector 17494785
GLI: October 14 2006 00:50:59 -   Partition 4 has origminor 4...saving start sector 17510850 and end sector 34073864
GLI: October 14 2006 00:50:59 -   Partition 2 has origminor 2...saving start sector 34073865 and end sector 55038689
GLI: October 14 2006 00:50:59 -   Partition 3 has origminor 3...saving start sector 55038690 and end sector 78140159
GLI: October 14 2006 00:50:59 -   Partition 5 has origminor 5...saving start sector 55038753 and end sector 57127139
GLI: October 14 2006 00:50:59 -   Partition 7 has origminor 7...saving start sector 67617648 and end sector 78140159
GLI: October 14 2006 00:50:59 - _partition_delete_step(): Deleting partitions that aren't being resized
GLI: October 14 2006 00:50:59 -   Deleting old minor 7 to be recreated later
GLI: October 14 2006 00:50:59 -   No match in new layout for old minor 6...deleting
GLI: October 14 2006 00:50:59 -   Deleting old minor 5 to be recreated later
GLI: October 14 2006 00:50:59 - _partition_delete_step(): logicals for extended part 3: [5, 6, 7]
GLI: October 14 2006 00:50:59 - _partition_delete_step(): newminor is 5
GLI: October 14 2006 00:50:59 - _partition_delete_step(): newminor is 6
GLI: October 14 2006 00:50:59 - _partition_delete_step(): newminor is 7
GLI: October 14 2006 00:50:59 -   No logical partitions are being resized...deleting extended
GLI: October 14 2006 00:50:59 -   Deleting old minor 2 to be recreated later
GLI: October 14 2006 00:50:59 -   Deleting old minor 4 to be recreated later
GLI: October 14 2006 00:50:59 -   Deleting old minor 1 to be recreated later
GLI: October 14 2006 00:50:59 - _partition_resize_step(): Resizing partitions
GLI: October 14 2006 00:50:59 - _partition_recreate_step(): Recreating partitions
GLI: October 14 2006 00:50:59 -   Drive has 78140160 sectors
GLI: October 14 2006 00:50:59 -   Partition 1 has 8542MB
GLI: October 14 2006 00:50:59 -     Old start sector 63 retrieved
GLI: October 14 2006 00:50:59 -     Retrieved start sector is not the same as the calculated next start sector (usually not an issue)
GLI: October 14 2006 00:50:59 -     Old end sector 17494785 retrieved
GLI: October 14 2006 00:50:59 -   Adding primary partition 1 from 63 to 17494785
GLI: October 14 2006 00:50:59 -   Partition 1.03125 has 7MB
GLI: October 14 2006 00:50:59 -     Old start sector 17494786 retrieved
GLI: October 14 2006 00:50:59 -     Old end sector 17510849 retrieved
GLI: October 14 2006 00:50:59 -   Partition 4 has 8087MB
GLI: October 14 2006 00:50:59 -     Old start sector 17510850 retrieved
GLI: October 14 2006 00:50:59 -     Old end sector 34073864 retrieved
GLI: October 14 2006 00:50:59 -   Adding primary partition 4 from 17510850 to 34073864
GLI: October 14 2006 00:50:59 - This is a bad thing. An exception occured outside of the normal install errors. The error was: 'partition not found'
GLI: October 14 2006 00:50:59 - Traceback (most recent call last):
GLI: October 14 2006 00:50:59 - File "/opt/installer/GLIClientController.py", line 197, in run
    self._install_steps[self._install_step]['function']()
GLI: October 14 2006 00:50:59 - File "/opt/installer/templates/x86ArchitectureTemplate.py", line 461, in partition
    self._partition_recreate_step(parted_disk, newparts)
GLI: October 14 2006 00:50:59 - File "/opt/installer/templates/x86ArchitectureTemplate.py", line 324, in _partition_recreate_step
    if parted_disk.get_partition(part).is_flag_available(flag):
GLI: October 14 2006 00:50:59 - error: partition not found
Comment 2 dr. nikolaus klepp 2006-10-13 17:51:40 UTC
Created attachment 99612 [details]
installprofile.xml
Comment 3 dr. nikolaus klepp 2006-10-13 17:52:10 UTC
Created attachment 99613 [details]
/log/dmesg
Comment 4 dr. nikolaus klepp 2006-10-13 17:52:31 UTC
Created attachment 99614 [details]
/log/installer.log.failed
Comment 5 dr. nikolaus klepp 2006-10-13 17:53:07 UTC
Created attachment 99615 [details]
/log/lastlog
Comment 6 dr. nikolaus klepp 2006-10-13 17:53:29 UTC
Created attachment 99616 [details]
/log/messages
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2006-10-13 19:08:15 UTC
Of all the fscked up partitioning schemes I've encountered, having only partitions 1 and 4 was not among them. I'm not sure *how* I can support this.
Comment 8 dr. nikolaus klepp 2006-10-14 02:51:46 UTC
Additions & clearifications:

The fdsik output I added is the exact layout before the installer deleted the partitions. I could recreate all partitions from the installer errorlog using fdisk.
After the failed recreation only partition 1 was in the prartition table, all other entries were cleared.
As you see, the partion numbers do not follow the physical ordering on the disk. sorted by starting sector the ordering is:
hda1 hda4 hda2 hda3 <hda5 hda6 hda7>
the gentoo installer presented the partitions sorted by name, that is:
hda1 hda2 hda3 <hda5 hda6 hda7> hda4
It looks like that this is the point where the instaler has slight problems.
Comment 9 Andrew Gaffney (RETIRED) gentoo-dev 2006-12-16 20:11:33 UTC
I'm not sure how to actually fix this problem, so I'm not going to. I've added a big warning message that displays when the partitioning screen loads.