#572762 Check if there're any bootable partition and warn if not

#572762#5
Date:
2010-03-06 12:39:53 UTC
From:
To:
Package: installation-reports

Boot method: CDROM
Image version: http://cdimage.debian.org/cdimage/squeeze_di_alpha1/amd64/iso-cd/debian-testing-amd64-netinst.iso
Date: Sat,  6 Mar 2010 23:31:44 +1100

Machine: HP ELitebook 6930p
Processor: Intel Core 2 Duo T9600
Memory: 4Gig
Partitions: installer hangs before partitioning step

Output of lspci -knn (or lspci -nn):

This lspci output was obtain booting into ubuntu 9.10 which came
pre-installed on this machine.

00:00.0 Host bridge [0600]: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub [8086:2a40] (rev 07)
	Kernel driver in use: agpgart-intel
	Kernel modules: intel-agp
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07)
	Kernel driver in use: i915
	Kernel modules: i915
00:02.1 Display controller [0380]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a43] (rev 07)
00:03.0 Communication controller [0780]: Intel Corporation Mobile 4 Series Chipset MEI Controller [8086:2a44] (rev 07)
	Kernel driver in use: heci
	Kernel modules: heci
00:03.2 IDE interface [0101]: Intel Corporation Mobile 4 Series Chipset PT IDER Controller [8086:2a46] (rev 07)
00:03.3 Serial controller [0700]: Intel Corporation Mobile 4 Series Chipset AMT SOL Redirection [8086:2a47] (rev 07)
	Kernel driver in use: serial
00:19.0 Ethernet controller [0200]: Intel Corporation 82567LM Gigabit Network Connection [8086:10f5] (rev 03)
	Kernel driver in use: e1000e
	Kernel modules: e1000e
00:1a.0 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 [8086:2937] (rev 03)
	Kernel driver in use: uhci_hcd
00:1a.1 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 [8086:2938] (rev 03)
	Kernel driver in use: uhci_hcd
00:1a.2 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 [8086:2939] (rev 03)
	Kernel driver in use: uhci_hcd
00:1a.7 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 [8086:293c] (rev 03)
	Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel
00:1c.0 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 [8086:2940] (rev 03)
	Kernel driver in use: pcieport-driver
	Kernel modules: shpchp
00:1c.1 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 [8086:2942] (rev 03)
	Kernel driver in use: pcieport-driver
	Kernel modules: shpchp
00:1c.2 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 [8086:2944] (rev 03)
	Kernel driver in use: pcieport-driver
	Kernel modules: shpchp
00:1c.4 PCI bridge [0604]: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 [8086:2948] (rev 03)
	Kernel driver in use: pcieport-driver
	Kernel modules: shpchp
00:1d.0 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 [8086:2934] (rev 03)
	Kernel driver in use: uhci_hcd
00:1d.1 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 [8086:2935] (rev 03)
	Kernel driver in use: uhci_hcd
00:1d.2 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 [8086:2936] (rev 03)
	Kernel driver in use: uhci_hcd
00:1d.7 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 [8086:293a] (rev 03)
	Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev 93)
00:1f.0 ISA bridge [0601]: Intel Corporation ICH9M-E LPC Interface Controller [8086:2917] (rev 03)
	Kernel modules: iTCO_wdt
00:1f.2 SATA controller [0106]: Intel Corporation ICH9M/M-E SATA AHCI Controller [8086:2929] (rev 03)
	Kernel driver in use: ahci
02:00.0 Network controller [0280]: Intel Corporation Wireless WiFi Link 5300 [8086:4236]
	Kernel driver in use: iwlagn
	Kernel modules: iwlagn
85:09.0 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 06)
	Kernel driver in use: ohci1394
	Kernel modules: firewire-ohci, ohci1394
85:09.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 25)
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci-pci
85:09.2 System peripheral [0880]: Ricoh Co Ltd R5C843 MMC Host Controller [1180:0843] (rev bb)
	Kernel driver in use: ricoh-mmc
	Kernel modules: yenta_socket, ricoh_mmc
85:09.3 CardBus bridge [0607]: Ricoh Co Ltd RL5c476 II [1180:0476] (rev ff)
	Kernel driver in use: yenta_cardbus

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:              [O]
Load installer modules: [O]
Detect hard drives:     [O]
Partition hard drives:  [O]
Install base system:    [O]
Clock/timezone setup:   [O]
User/password setup:    [O]
Install tasks:          [O]
Install boot loader:    [E]
Overall install:        [ ]

Comments/Problems:

The installer said it installed  grub, but on reboot I got a "Non-system
disk"  error.

Tried to boot to the rescue option with as shell on /dev/sda1 and rejig
grub but so far no good. When I  run mount, I notice this:

    tmpfs on /dev type tmpfs  (rw, relatime, mode=755)

which seems a little weird.

System still not booting properly.

Erik

#572762#10
Date:
2010-03-06 13:09:29 UTC
From:
To:
Erik de Castro Lopo wrote:

After booting to the rescue option, mounting /dev/sda1 and
running a shell I  do:

    root@debian:/# grub-install /dev/sda
    Installation finished. No error reported.

    root@debian:/# update-grub
    Generating grub.cfg
    Found background image: moreblue-orbit-grub.png
    Found linux image: /boot/vmlinuz-2.6.32-trunk-amd64
    Found initrd image: /boot/initrd.img-2.6.32-trunk-amd64
    done

On reboot I  still get the "Non system disk" error and have to
boot to the iso again.

Erik

#572762#15
Date:
2010-03-07 00:39:15 UTC
From:
To:
Erik de Castro Lopo wrote:

Fixed it!

It turned out that /dev/sda1 did not have the bootable flag set.

Going into fdisk, setting the bootable flag for the first partition
and then running grub-install and update-grub resulted in a system
that boots.

I  think what happened was the following. During installation I

  - Did the suggested partitioning and then decided that a 7G /
    was too small.
  - Manually partitioned to 20G root, 12G swap and remaining as
    /home.

At this stage, I must have forgotten to make / bootable and ended
up with a non-booting system.

It would be nice if debian installer detected that there was no
bootable partition and at least warned  about it.

Erik

#572762#20
Date:
2010-08-23 00:55:11 UTC
From:
To:
reassign 572762 partman-basicmethods
retitle 572762 Check if there're any bootable partition and warn if not
thanks

Hello Erik,

I am reassigning this to the partman-basicmethods package that I
believe is the package involved in this checking.

Colin, if I am wrong, please reassign it to the right package.