Bug 758433

Summary: YAST online update package not installed. Linux-LVM-partition hidden after installation.
Product: [openSUSE] openSUSE 12.1 Reporter: Udo Reumschuessel <ureumsc>
Component: YaST2Assignee: Thomas Fehr <fehr>
Status: VERIFIED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jsuchome
Version: Final   
Target Milestone: ---   
Hardware: PC   
OS: openSUSE 12.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: the requested YAST logs exept y2log-1.gz
This should be the requested file y2log-1.gz
description of disk with diskpart / GParted / fdisk

Description Udo Reumschuessel 2012-04-22 12:10:50 UTC
Created attachment 487334 [details]
the requested YAST logs exept y2log-1.gz

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)

Message during installation: 
Installation of some packages failed: perl-LWP-MediaTypes, perl-HTTP-Date, perl-HTML-Tagset, perl-Error, perl-Encode-Locale, xsp, yast2-theme-openSUSE, xerces-j2, words, vim-data, yast2-kerberos-client, yast2-online-update, yast2-metapackage-handler, yast2-iscsi-client, yast2-ldap-client, yast2-mail, yast2-inetd, yast2-backup, yast2-add-on.

Next significant message:
Calling the YaST module inst_you has failed. More information can be found near the end of the /var/log/YaST2/y2log file. This is worth reporting a bug at http://bugzilla.novell.com/. Please attach also all YaST logs stored in the /var/log/YaST2/ directory. See http://en.opensuse.org/Bugs/YaST for more information about YaST logs.

After that sign on to the system during installation worked, but online update did not.

Fortunately I saved the requested logs immediately to an USB-stick. Because after reboot Linux did not come up. It showed the splash screen and that was it.

With a Knoppix-CD and QTParted I found out that the Linux-LVM-partition is now hidden. And the extended partition (in which the linux partition lies) is the active partition. So I had to change that to my Windows partition. But unfortunately QTParted is not able to remove the hidden flag. So I cannot even restore an image of the previous openSUSE 11.4 system.

Then I booted from the openSUSE 12.1 installation-DVD again to repair the system. But there is no linux system because of the hidden partition.

By the way - the SHA1 signature of the downloaded iso image openSUSE-12.1-DVD-i586.iso is correct (verified with jacksum).

Reproducible: Didn't try

Steps to Reproduce:
1.
2.
3.
Comment 1 Jiří Suchomel 2012-04-24 11:22:50 UTC
Hm. First try: because of broken LVM, some packages (e.g. yast2-online-update) were not instaled... ?
Comment 2 Thomas Fehr 2012-04-24 11:40:01 UTC
I would need file y2log-1 to see what was going on.
The logs attached do not contain any information about
disk layout.

I do not know of any code where we set a partition to hidden.
I would expect something simply overwrote data on your disk
and everything in the extended partition could be simply lost.
Since LVM does not care about partition id (I just tried creating
and using an LVM VG on a hidden partition and this worked fine),
I also would not expect that setting the partition id would help.

One can set the partition from hidden to normal with fdisk.
start "fdisk /dev/sda" enter letter 't', and the type partition
number and enter hex value for partition id '8E' for lvm partition.
Afterwards type letter 'w' to write changed partition table to disk.

But at first it would be helpful to get info about current partition
table. This can be done by "fdisk -l /dev/sda" of 
"parted /dev/sda unit s print unit cyl print"
Comment 3 Udo Reumschuessel 2012-04-24 15:11:23 UTC
Created attachment 487761 [details]
This should be the requested file y2log-1.gz
Comment 4 Thomas Fehr 2012-04-24 15:41:28 UTC
I cannot find anything problematic regarding partitioning in the log file.
There are hidden partitions (/dev/sda1 and /dev/sda4) but these are normal
on a Dell system. /dev/sda1 is the Dell Utility partition, /dev/sda4 Dell Restore
partition. LVM ion /dev/sda9 and is detected fine. Installation is also fine 
until there is a read error from install media:

/bin/cp: failed to extend `/mnt/var/tmp/var/tmp/TmpDir.bG9Ooo/images/x11-meta-i386.tar.xz': Input/output error

and numerous other error when copying data from DVD drive.

I would advise to retry installation from scratch with a different install medium.
If this also fails with media error maybe your DVD drive is at fault.
Comment 5 Udo Reumschuessel 2012-04-24 20:45:41 UTC
Created attachment 487824 [details]
description of disk with diskpart / GParted / fdisk
Comment 6 Udo Reumschuessel 2012-04-24 20:53:45 UTC
Thank you for digging into the details. I created the DVD with half the 
possible velocity in order to avoid problems. But I will try again.

In between I created lists of the content of the disk with diskpart (Microsoft),
GParted and fdisk. I created an attachment with these lists because of the
fact, that the LVM partition is not accessible any more. An older version of
QtParted claimed the partition to be hidden.
All these tools don't allow to change the type of the partition.

So I tried to use the hex editor HxD under Microsoft Windows.
But unfortunately it looks like I don't understand the LBA
addresses in the partition table in the MBR. Why? The extended
partition is shown as

00 00 C1 FF 0F E2 FD FF C7 F0 41 06 39 1F 9C 1E

with 0F = extended partition (LBA)

LBA for start of partition is    C7 F0 41 06
number of sectors is             39 1F 9C 1E

As far as I know the LBA has only 28 bits.
If I take 7 F0 41 06 than this is 133185798 decimal.
But there I don't find a partition table to get to the next logical partition.

Otherwise I just have to create a new partition in the "free" area and install
openSUSE 11.4 from fresh.

Have a good day.


(In reply to comment #4)
> I cannot find anything problematic regarding partitioning in the log file.
> There are hidden partitions (/dev/sda1 and /dev/sda4) but these are normal
> on a Dell system. /dev/sda1 is the Dell Utility partition, /dev/sda4 Dell
> Restore
> partition. LVM ion /dev/sda9 and is detected fine. Installation is also fine 
> until there is a read error from install media:
> /bin/cp: failed to extend
> `/mnt/var/tmp/var/tmp/TmpDir.bG9Ooo/images/x11-meta-i386.tar.xz': Input/output
> error
> and numerous other error when copying data from DVD drive.
> I would advise to retry installation from scratch with a different install
> medium.
> If this also fails with media error maybe your DVD drive is at fault.
Comment 7 Thomas Fehr 2012-04-25 10:03:34 UTC
It seems as if something removed /dev/sda10. 
This must have happened after what I saw in the yast2 logs since
the ssh logs still show sda10 as being present and containing LVM. 

It is on the following cylinders according to parted output from logs:

10      33832cyl  38501cyl  4669cyl   logical                lvm, type=8e

alternately the sectors are also showed:

10      543512576s  618532863s  75020288s   logical                lvm, type=8e

If you use parted to create the partition at the same place your LVM data
should show up again.