grub folder disappeared, caused update to fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-image-
This update failed to install because it said it couldn't find the /boot/grub folder. When I looked the folder wasn't there either. The only thing I have ever done in the grub folder is to update the menu.lst file more to my liking.
I am unsure who or what deleted the /boot/grub folder, could this package have done that? If not then something else did because I would never have done this. I've been using GNU/linux for more than 10 years (i.e., I know what I'm doing).
I then had to reinstall grub with:
sudo grub-install /dev/sda
Then I had to reinstall that package:
sudo apt-get install -f
During the package install it asked if it could generate a menu.lst for grub and I stated yes. It put the menu.lst file back but it did not add the Win XP back automatically.
So the 'bug' is: what happened to the /boot/grub folder and what deleted it? I checked the logs and it doesn't show anything except for when I upgraded from 8.10 to 9.04. And it showed when I modified the menu.lst a week ago. Actually it was 7 days and 4 hours ago. My current uptime is 7 days and 23 hours. So something happened to the grub folder and it wasn't me.
1) uname -a
Linux tuvok 2.6.28-15-generic #51-Ubuntu SMP Mon Aug 31 13:33:16 UTC 2009 i686 GNU/Linux
2) cat /proc/version_
Ubuntu 2.6.28-
3) dmesg (See attachment)
4) lspci -vnvn
00:00.0 Host bridge [0600]: Intel Corporation 82855PM Processor to I/O Controller [8086:3340] (rev 03)
Subsystem: IBM Device [1014:0529]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Region 0: Memory at d0000000 (32-bit, prefetchable) [size=256M]
Capabilities: <access denied>
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 PCI bridge [0604]: Intel Corporation 82855PM Processor to AGP Controller [8086:3341] (rev 03)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 96
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 00003000-00003fff
Memory behind bridge: c0100000-c01fffff
Prefetchable memory behind bridge: e0000000-e7ffffff
Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Kernel modules: shpchp
00:1d.0 USB Controller [0c03]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-
Subsystem: IBM Device [1014:052d]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 4: I/O ports at 1800 [size=32]
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller [0c03]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-
Subsystem: IBM Device [1014:052d]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 11
Region 4: I/O ports at 1820 [size=32]
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller [0c03]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-
Subsystem: IBM Device [1014:052d]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 11
Region 4: I/O ports at 1840 [size=32]
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller [0c03]: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller [8086:24cd] (rev 01) (prog-if 20)
Subsystem: IBM Device [1014:052e]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin D routed to IRQ 11
Region 0: Memory at c0000000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev 81)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR+ INTx-
Latency: 0
Bus: primary=00, secondary=02, subordinate=08, sec-latency=168
I/O behind bridge: 00004000-00008fff
Memory behind bridge: c0200000-cfffffff
Prefetchable memory behind bridge: e8000000-efffffff
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge [8086:24cc] (rev 01)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Kernel modules: iTCO_wdt, intel-rng
00:1f.1 IDE interface [0101]: Intel Corporation 82801DBM (ICH4-M) IDE Controller [8086:24ca] (rev 01) (prog-if 8a [Master SecP PriP])
Subsystem: IBM Device [1014:052d]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at 01f0 [size=8]
Region 1: I/O ports at 03f4 [size=1]
Region 2: I/O ports at 0170 [size=8]
Region 3: I/O ports at 0374 [size=1]
Region 4: I/O ports at 1860 [size=16]
Region 5: Memory at 70000000 (32-bit, non-prefetchable) [size=1K]
Kernel driver in use: ata_piix
00:1f.3 SMBus [0c05]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-
Subsystem: IBM Device [1014:052d]
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin B routed to IRQ 11
Region 4: I/O ports at 1880 [size=32]
Kernel modules: i2c-i801
00:1f.5 Multimedia audio controller [0401]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-
Subsystem: IBM Device [1014:0554]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 11
Region 0: I/O ports at 1c00 [size=256]
Region 1: I/O ports at 18c0 [size=64]
Region 2: Memory at c0000c00 (32-bit, non-prefetchable) [size=512]
Region 3: Memory at c0000800 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
00:1f.6 Modem [0703]: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-
Subsystem: IBM Device [1014:0525]
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin B routed to IRQ 11
Region 0: I/O ports at 2400 [size=256]
Region 1: I/O ports at 2000 [size=128]
Capabilities: <access denied>
Kernel modules: snd-intel8x0m
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] [1002:4e50]
Subsystem: IBM Device [1014:0550]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B+ DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 66 (2000ns min), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=128M]
Region 1: I/O ports at 3000 [size=256]
Region 2: Memory at c0100000 (32-bit, non-prefetchable) [size=64K]
[virtual] Expansion ROM at c0120000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel modules: radeonfb
02:00.0 CardBus bridge [0607]: Texas Instruments PCI4520 PC card Cardbus Controller [104c:ac46] (rev 01)
Subsystem: IBM Device [1014:0552]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 168, Cache Line Size: 128 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at b0000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
Memory window 0: e8000000-ebfff000 (prefetchable)
Memory window 1: c4000000-c7fff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
16-bit legacy interface ports at 0001
Kernel driver in use: yenta_cardbus
Kernel modules: yenta_socket
02:00.1 CardBus bridge [0607]: Texas Instruments PCI4520 PC card Cardbus Controller [104c:ac46] (rev 01)
Subsystem: IBM Device [1014:0552]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 168, Cache Line Size: 128 bytes
Interrupt: pin B routed to IRQ 11
Region 0: Memory at b1000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=07, subordinate=07, sec-latency=176
Memory window 0: ec000000-effff000 (prefetchable)
Memory window 1: c8000000-cbfff000
I/O window 0: 00004800-000048ff
I/O window 1: 00004c00-00004cff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
16-bit legacy interface ports at 0001
Kernel driver in use: yenta_cardbus
Kernel modules: yenta_socket
02:01.0 Ethernet controller [0200]: Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile) [8086:101e] (rev 03)
Subsystem: IBM Device [1014:0549]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64 (63750ns min), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at c0240000 (32-bit, non-prefetchable) [size=128K]
Region 1: Memory at c0200000 (32-bit, non-prefetchable) [size=64K]
Region 2: I/O ports at 8000 [size=64]
[virtual] Expansion ROM at c0220000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: e1000
Kernel modules: e1000
02:02.0 Ethernet controller [0200]: Atheros Communications Inc. AR5212 802.11abg NIC [168c:1014] (rev 01)
Subsystem: Phillips Components Device [17ab:8331]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at c0210000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath5k_pci
Kernel modules: ath5k
5) /var/log/
Log started: 2009-09-11 11:11:41
(Reading database ... 169479 files and directories currently installed.)
Preparing to replace qt4-qtconfig 4.5.0-0ubuntu4.1 (using .../qt4-
Unpacking replacement qt4-qtconfig ...
Preparing to replace libqt4-qt3support 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-qt3support ...
Preparing to replace libqt4-designer 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-designer ...
Preparing to replace libqt4-script 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-script ...
Preparing to replace libqt4-dbus 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-dbus ...
Preparing to replace libqt4-xml 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-xml ...
Preparing to replace libqt4-webkit 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-webkit ...
Preparing to replace libqt4-network 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-network ...
Preparing to replace libqt4-svg 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-svg ...
Preparing to replace libqt4-opengl 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-opengl ...
Preparing to replace libqtgui4 4.5.0-0ubuntu4.1 (using .../libqtgui4_
Unpacking replacement libqtgui4 ...
Preparing to replace libqt4-sql-mysql 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-sql-mysql ...
Preparing to replace libqt4-sql 4.5.0-0ubuntu4.1 (using .../libqt4-
Unpacking replacement libqt4-sql ...
Preparing to replace libqtcore4 4.5.0-0ubuntu4.1 (using .../libqtcore4_
Unpacking replacement libqtcore4 ...
Preparing to replace linux-image-
Done.
Unpacking replacement linux-image-
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
User postrm hook script [/sbin/update-grub] exited with value 1
Preparing to replace firefox-
Unpacking replacement firefox-
Preparing to replace xulrunner-
Unpacking replacement xulrunner-
Preparing to replace xulrunner-1.9 1.9.0.13+
Removing obsolete conffile /etc/gre.
Unpacking replacement xulrunner-1.9 ...
Preparing to replace firefox-
Unpacking replacement firefox-
Preparing to replace firefox-3.0 3.0.13+
Unpacking replacement firefox-3.0 ...
Preparing to replace firefox 3.0.13+
Unpacking replacement firefox ...
Preparing to replace firefox-
Unpacking replacement firefox-
Preparing to replace linux-headers-
Unpacking replacement linux-headers-
Preparing to replace linux-headers-
Unpacking replacement linux-headers-
Preparing to replace linux-libc-dev 2.6.28-15.51 (using .../linux-
Unpacking replacement linux-libc-dev ...
Processing triggers for man-db ...
Setting up libqtcore4 (4.5.0-0ubuntu4.2) ...
Setting up libqt4-xml (4.5.0-0ubuntu4.2) ...
Setting up libqt4-dbus (4.5.0-0ubuntu4.2) ...
Setting up libqt4-script (4.5.0-0ubuntu4.2) ...
Setting up libqtgui4 (4.5.0-0ubuntu4.2) ...
Setting up libqt4-designer (4.5.0-0ubuntu4.2) ...
Setting up libqt4-network (4.5.0-0ubuntu4.2) ...
Setting up libqt4-sql (4.5.0-0ubuntu4.2) ...
Setting up libqt4-qt3support (4.5.0-0ubuntu4.2) ...
Setting up qt4-qtconfig (4.5.0-0ubuntu4.2) ...
Setting up libqt4-webkit (4.5.0-0ubuntu4.2) ...
Setting up libqt4-svg (4.5.0-0ubuntu4.2) ...
Setting up libqt4-opengl (4.5.0-0ubuntu4.2) ...
Setting up libqt4-sql-mysql (4.5.0-0ubuntu4.2) ...
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.28-15.51 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.28-15.51 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
User postinst hook script [/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-
subprocess post-installation script returned error exit status 1
Setting up xulrunner-1.9 (1.9.0.
Setting up xulrunner-
Setting up linux-headers-
Setting up linux-headers-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Setting up linux-libc-dev (2.6.28-15.52) ...
Setting up firefox-
Setting up firefox-3.0 (3.0.14+
Please restart all running instances of firefox-3.0, or you will experience problems.
Setting up firefox-
Setting up firefox (3.0.14+
Setting up firefox-
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
linux-
Log ended: 2009-09-11 11:13:37
Log started: 2009-09-11 14:37:17
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.28-15.51 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.28-15.51 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-
Updating /boot/grub/menu.lst ... done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Log ended: 2009-09-11 14:44:13
ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
HibernationDevice: RESUME=
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 1668:0441 Actiontec Electronics, Inc. [hex] IBM Integrated Bluetooth II
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: IBM 183223U
Package: linux-image-
ProcCmdLine: root=UUID=
ProcVersionSign
SourcePackage: linux
Title: package linux-image-
Hi Kory,
It seems this should be fixed with bug 363465 if you used update-manager. Did you use update-manager to do the update? If so, which version? I don't believe the kernel package would have removed grub, it actually recommends a bootloader be installed - "Recommends: grub-pc | grub | lilo (>= 19.1)" .