Bug#684293: installation-reports: Installer hangs at iso-scan step while mounting an extended partition

2012-08-08 Thread M H
Package: installation-reports
Severity: important

The Wheezy hd-media installer (daily from 08-08) hangs at the 

step Searching drives for an installer ISO image, 
while mounting the extended partition /dev/sda4.
This partition should never be mounted.

The ouptut of ps w is given below:

1291 root  5728 S    udpkg --configure --force-configure iso-scan
 1292 root  3980 S    {iso-scan.postin} /bin/sh /var/lib/dpkg/info/iso-
scan.postinst configure
 1379 root  8432 S    udevd --daemon --resolve-names=never
 1380 root  8264 S    udevd --daemon --resolve-names=never
 1898 root 0 SW   [jbd2/sda3-8]
 1899 root 0 SW  [ext4-dio-unwrit]
 1904 root 0 SW  [loop0]
 1941 root 0 SW  [loop1]
 1960 root  3980 R    mount -t auto -o ro /dev/sda4 /hd-media
 1969 root  3980 R    ps w

As a workaround the process 1291 can be killed to continue with the
installation.
The hang is caused by the script iso-scan.postinst (package: iso-scan), where
the extended partition is not omitted from the device list.
This bug has the same cause as the mountmedia bug #683849.

The following untested patch should solve this issue:

--- a/iso-scan-1.40/debian/iso-scan.postinst
+++ b/iso-scan-1.40/debian/iso-scan.postinst
@@ -274,7 +274,16 @@ while :; do
    mkdir /cdrom 2/dev/null || true
    mkdir /hd-media 2/dev/null || true

-   DEVS=$(list-devices partition; list-devices disk; list-devices 
maybe-usb-floppy)
+   tmpdevs=$(list-devices partition; list-devices disk; 
list-devices maybe-usb-floppy)
+   DEVS=
+   # Remove extended partitions
+   for tmpdev in $tmpdevs; do
+   PARTITION_TYPE=$(blkid -p -s PART_ENTRY_TYPE $tmpdev | 
cut -d ' ' -f 2 | cut -d \ -f 2)
+   if [ $PARTITION_TYPE != 0x5 ]  [ 
$PARTITION_TYPE != 0xf ]; then
+   DEVS=${DEVS:+$DEVS\\n}$tmpdev
+   fi
+   done
+
    log devices found: '$DEVS'
    STATE=10
    continue



-- Package-specific info:

Boot method: USB disk
Image version: Daily installer from 08-08
Date: 08-08-2012
Machine: Lenovo Thinkpad T61p
Partitions: df -Tl will do; the raw partition table is preferred


Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:   [O ]
Detect network card:    []
Configure network:  [ ]
Detect CD:  [ ]
Load installer modules: [ ]
Detect hard drives: [ ]
Partition hard drives:  [ ]
Install base system:    [ ]
Clock/timezone setup:   [ ]
User/password setup:    [ ]
Install tasks:  [ ]
Install boot loader:    [ ]
Overall install:    [ ]

Comments/Problems:



--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1344434120.57774.yahoomail...@web141105.mail.bf1.yahoo.com



Bug#684309: installation-reports: Wheezy installer hangs at partition hard drives

2012-08-08 Thread M H
Package: installation-reports
Severity: important


The Wheezy installation  hangs while loading the 

partitioner (hd-media daily from 08-08).

 
The ps w output:

6865 root  6304 S    udpkg --configure --force-configure partman-base
 6866 root  4420 S    {partman-base.po} /bin/sh 
/var/lib/dpkg/info/partman-base.postinst configure
 6867 root  4556 S    {partman} /bin/sh /bin/partman
 7101 root 0 SW   [jfsIO]
 7102 root 0 SW   [jfsCommit]
 7103 root 0 SW   [jfsCommit]
 7104 root 0 SW   [jfsSync]
 7118 root 0 SW  [xfs_mru_cache]
 7119 root 0 SW  [xfslogd]
 7120 root 0 SW  [xfsdatad]
 7121 root 0 SW  [xfsconvertd]
 7138 root  4556 S    {25md-devices} /bin/sh 
/lib/partman/init.d/25md-devices
 7142 root 0 SW  [md]
 7144 root  6156 S    log-output -t md-devices --pass-stdout mdadm 
--examine --scan --config=partitions
 7145 root  4600 D    mdadm --examine --scan --config=partitions
 7151 root  4424 R    ps w

The mdadm process hangs, which also occured in the bug report  #683849.

I could continue with the installation after adding exit 0 at the 

beginning of the file /lib/partman/init.d/25md-devices 

(package: partman-md).

On the same machine the Squeeze mdadm command 

exits  successfully:

# mdadm --examine --scan --config=partitions
#

# cat /proc/mdstat 
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] 
[raid10] 
unused devices: none



-- Package-specific info:

Boot method: USB disk
Image version: Daily installer from 08-08-2012
Date: 08-08-2012

Machine: Lenovo Thinkpad T61p
Partitions: 
fdisk -lu /dev/sda

  Device Boot  Start End  Blocks   Id  System
/dev/sda1   *    2048  206847  102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2  206848   262320127   131056640    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3   262320128   496695295   117187584   83  Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4   496697342   976771071   240036865    5  Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5   496697344   527945727    15624192   82  Linux swap / Solaris
/dev/sda6   527947776   762320895   117186560   83  Linux
/dev/sda7   762322944   976771071   107224064   83  Linux


Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:   [O ]
Detect network card:    [O ]
Configure network:  [O ]
Detect CD:  [ ]
Load installer modules: [O ]
Detect hard drives: [ O]
Partition hard drives:  [ E]
Install base system:    [ ]
Clock/timezone setup:   [ ]
User/password setup:    [ ]
Install tasks:  [ ]
Install boot loader:    [ ]
Overall install:    [ ]


--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/130678.66011.yahoomail...@web141104.mail.bf1.yahoo.com



Bug#684293: root cause of mount hang in installer [kernel bug]

2012-08-08 Thread M H
After some googling I found out that the root cause of the recent mount 
problems with extended partitions (maybe also mounting disks like sda)
are related to the infinite loop kernel bug in __getblk_slow. 

(see the explanation: https://patchwork.kernel.org/patch/1189121/)
The affected debian kernels should get fixed with the patch offered in kernel 
3.2.24 (http://lwn.net/Articles/508225/).

 

--
Michael Hofbauer



--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1344454480.77013.yahoomail...@web141104.mail.bf1.yahoo.com