I installed Ubuntu 20.04 on a fresh SSD. This motherboard has other harddrives with, for example, windows on them. My installation went fine and I was working all day yesterday on this install. I can’t recall for sure, but I believe I restarted a few times, for updates and the like, and booted back into Ubuntu 20.04 no problem. What I didn’t do was ever launch back into windows until the end of the night. I shut the system down after that, and this morning tried to launch back into Ubuntu 20.04. I mention this because some of my research indicated Windows can sometimes mess with boot filesystems.
Note that the below issues all occurred identically both before and after I ran fsck on the ssd from a temp Live Ubuntu thing, even though apparently fsck found a large volume of errors. Before fsck, the drive was unmountable in that Live Ubuntu, after, it was mountable, and I could grab some files I needed this morning.
If I try to select «Ubuntu» in my Grub menu, I get the error:
Error: Invalid Magic Number
Error: You need to load the kernel first
If I drop into the console, I can see my file system no problem.
ls (hd3,gpt2/)
lost+found/, boot/ ...etc
In my boot/, there is
efi/
grub/
System.map-5.4.0-26-generic
config-5.4.0-26-generic
initrd.img
initrd.img.old
memtest86+.bin
memtest86+elf
memtest86+_multiboot.bin
vmlinuz
vmlinuz.old
vmlinuz-5.4.0-26-generic
vmlinuz-5.4.0-48-generic <-- this is the one I'm trying to use
initrd.img-5.4.0-26-generic
config-5.4.0-48-generic
System.map-5.4.0-48-generic
initrd.img-5.4.0-48-generic
If I do file
on these, I get weird results:
file (hd3,gpt2)/boot/vmlinuz-5.4.0-48-generic
error: invalid arch-independent ELF magic
file (hd3,gpt2)/boot/initrd.img-5.4.0-48-generic
error: invalid arch-independent ELF magic
At this point my potential research points have branched enough to make me think I should ask on stackexchange what next steps I can try. For example, the two most common ubuntu stackoverflow answers get the «invalid arch-independent ELF magic» directly from grub (or grub-rescue?) it seems. Also, every other «invalid magic number» answer on reddit and stackexchange involve Live CD type things running directly off a flashdrive, and the solution is always «use a different flash drive / installation creation tool.»
Note that the above commands and responses were hand-typed so while I double checked I may have mis-typed something.
How can I boot into 20.04 again, ideally without re-installing or losing my files?
Experiments below:
I tried Live USB error «you need to load the kernel first» :
First answer doesn’t work, if I do
linux /boot/vmlinuz-5.4.0-48-generic root=/dev/sdb2
I get
error: invalid magic number
Second answer doesn’t work. I’m not in secure-boot mode.
The third answer didn’t work, I’ve tried disconnecting all USB devices to no avail.
I saw some things online about EFI mode. In my grub menu, I see UEFI Firmware Settings
as an option, I’m not sure if that indicates I’m in UEFI «mode» or not. Based on what I’m looking at in my bios menu, I believe I’m in UEFI mode.
I tried the most-given solution to invalid arch-independent ELF magic
error (across various Stackexchange questions)
sudo mount /dev/sdb2 /mnt
sudo grub-install --root-directory=/mnt /dev/sdb2
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.
grub-install: error: will not proceed with blocklists.
EDIT: I ran the oft-recommended boot repair tool, this is the output: http://paste.ubuntu.com/p/H86ZBpr9Sr/
Now the error is
error: invalid magic number
alloc magic is broken at 0xb7855240: b779dc00
Aborted. Press any key to exit.
Содержание
- Arch Linux
- #1 2021-06-02 18:43:41
- [SOLVED] Invalid magic number on boot
- #2 2021-06-02 20:06:13
- Re: [SOLVED] Invalid magic number on boot
- #3 2021-06-03 09:26:48
- Re: [SOLVED] Invalid magic number on boot
- #4 2021-06-03 13:42:56
- Re: [SOLVED] Invalid magic number on boot
- #5 2021-06-03 17:30:34
- Re: [SOLVED] Invalid magic number on boot
- #6 2021-06-03 18:37:26
- Re: [SOLVED] Invalid magic number on boot
- #7 2021-06-04 05:19:17
- Re: [SOLVED] Invalid magic number on boot
- #8 2021-06-04 14:48:33
- Re: [SOLVED] Invalid magic number on boot
- #9 2021-06-04 14:55:54
- Re: [SOLVED] Invalid magic number on boot
- #10 2021-06-04 17:48:05
- Re: [SOLVED] Invalid magic number on boot
- #11 2021-06-04 20:40:21
- Re: [SOLVED] Invalid magic number on boot
- #12 2021-06-05 20:23:24
- Re: [SOLVED] Invalid magic number on boot
- #13 2021-06-05 22:33:50
- Re: [SOLVED] Invalid magic number on boot
- #14 2021-06-06 12:13:21
- Re: [SOLVED] Invalid magic number on boot
- #15 2021-06-06 12:34:36
- Re: [SOLVED] Invalid magic number on boot
- #16 2021-06-06 21:57:33
- Re: [SOLVED] Invalid magic number on boot
- #17 2021-06-06 22:03:11
- Re: [SOLVED] Invalid magic number on boot
- #18 2021-06-07 19:45:18
- Re: [SOLVED] Invalid magic number on boot
- #19 2021-06-07 19:47:19
- Re: [SOLVED] Invalid magic number on boot
- #20 2021-06-07 19:49:57
- Re: [SOLVED] Invalid magic number on boot
- «Неверное магическое число, сначала необходимо загрузить ядро» в существующей и ранее работающей установке Ubuntu (не проблема с живым USB)
- System boot error : invalid magic number #505
- Comments
- Footer
Arch Linux
You are not logged in.
#1 2021-06-02 18:43:41
[SOLVED] Invalid magic number on boot
after a system upgrade including linux and linux-headers my system stopped working.
I’ve already tried to reinstall linux and linux-headers, tried `mkinitcpio -P`, to rebuild my grub config and to reinstall grub. Everything without error messages.
Some weeks ago I had the same issue, but here everything was fine again after I reinstalled linux and linux-headers.
I’ve used the grub command line. I’m not sure if I used it correctly or if it is a hint:
It is a btrfs filesystem and it works.
I hope someone has an idea.
EDIT: My solution was to upgrade grub to 2.06 RC1. Details are in the thread.
Last edited by bysom (2021-06-07 19:52:23)
#2 2021-06-02 20:06:13
Re: [SOLVED] Invalid magic number on boot
Suggests /boot/vmlinuz-linux is corrupt.
Is the boot partition full (no space left)?
What dow «file /boot/vmlinuz-linux» say and what is the md5 of the file?
If thereÄs enough space, can you isntall and boot the lts kernel?
#3 2021-06-03 09:26:48
Re: [SOLVED] Invalid magic number on boot
Hi, thanks for your answer.
There is enough space, since i have no extra /boot partition. I’ve encrypted my entire system including /boot. Therefore I have an extra efi partition with grub, that decrypts my btrfs and then boots the kernel. Mostly like it is described in the Wiki
I’ve also installed the lts kernel. Both aren’t working.
Here the md5 sums
I’ve also tried a `btrfs check` without errors.
Thanks for your help!
#4 2021-06-03 13:42:56
Re: [SOLVED] Invalid magic number on boot
It would seem that either the decryption fails or maybe is just too slow
Can you «ls» the partition after «insmod btrfs»?
#5 2021-06-03 17:30:34
Re: [SOLVED] Invalid magic number on boot
Okay, I have some results.
After the cryptomount command:
I have tried a `ls /@/boot` after the `echo ‘Loading Linux linux-lts . ‘` and it lists the files in my /boot directory. After that I have tried a `file —is-x86-linux /@/boot/vmlinuz-linux` and got no result (and also no error). Is there something else I should try?
#6 2021-06-03 18:37:26
Re: [SOLVED] Invalid magic number on boot
I’ve tried a `sleep 30` before loading the kernel, which hasn’t changed anything.
After that I have chrooted my arch again and reinstalled linux, linux-lts, and the headers and now something changed. If I try to boot the LTS kernel it passes the ‘Loading Linux linux-lts . ‘ section and then I get a kernel panic in the following ‘Loading initial ramdisk . ‘ section. The error message before the kernel panic is
The normal linux kernel still fails at the first section ‘Loading Linux linux . ‘
Last edited by bysom (2021-06-03 18:38:35)
#7 2021-06-04 05:19:17
Re: [SOLVED] Invalid magic number on boot
Re-cap:
This is a regression, the config used to work befoer?
The files end on the encrypted partition intact, ie. they’re perfectly accessible offline?
The error has a degree of randomness, eg. vmlinuz-linux-lts (now) loads, but the other files have bad header bytes?
What else was included in the breaking udpate? /var/log/pacman.log?
returns a boolean.
#8 2021-06-04 14:48:33
Re: [SOLVED] Invalid magic number on boot
Yes, your recap sounds correct. The config worked before, I can access my files and the error seems to have some kind of randomness.
Here is the pacman log from the last update before the crash: http://ix.io/3oJJ
#9 2021-06-04 14:55:54
Re: [SOLVED] Invalid magic number on boot
cryptsetup sticks out…
Downgrade that, re-install the kernels and see what happens.
BE PREPARED TO LOSE ACCESS TO THE … oh, wait: you can’t boot and will have to chroot anyway
#10 2021-06-04 17:48:05
Re: [SOLVED] Invalid magic number on boot
I’ve downgraded to cryptsetup 2.3.4 and the error is still the same.
Is this setup with an encrypted boot partition that rare, that it could be a bug in grub or somewhere else? The idea to reinstall my arch with a classical encryption setup gets more and more attractive for me. Unless you have still some good ideas. I’m still very happy with your help
#11 2021-06-04 20:40:21
Re: [SOLVED] Invalid magic number on boot
Did the kernel re-installation change anything about the randomness aspect of the kernel/initramfs «corruption»?
And otherwise, how the status is at the grub shell (ie. testing the file types there) in case this is -somehow- a time/race condition…
#12 2021-06-05 20:23:24
Re: [SOLVED] Invalid magic number on boot
Hi, I have some news.
To your questions: The kernel reinstallation made that the error occours at the ‘Loading Linux linux-lts . ‘ again for the lts kernel which made it to the initramfs loading. As far as I remember this state changed with the reinstallation of the kernel.
I have tried your ‘if file xy then’ example and it obviously returned a false value. I’ve got a ‘kernel is bad’ because I’ve added an else case. It should have been true, right?
After that I saw, that I can use md5sum with grub and checked the md5 sum of the kernel and got a different number than I get from my live system.
From a live linux
I have asked someone else with an arch linux for a hash sum as a reference and got the 8ed348f0125772a6ef0756b818199fc6 for the actual kernel.
(I’ve updated the kernel yesterday)
Then I’ve used cat with grub to view some text files which all looked normal to me. After that I’ve used md5sum on one of these files and got the same hash numbers with grub and with my live stick.
Last edited by bysom (2021-06-05 21:33:05)
#13 2021-06-05 22:33:50
Re: [SOLVED] Invalid magic number on boot
If you change the mkinitcpio compression (in doubt to «cat»), do the md5sums for those turn consistent?
https://wiki.archlinux.org/title/Mkinitcpio#COMPRESSION
#14 2021-06-06 12:13:21
Re: [SOLVED] Invalid magic number on boot
Hi, I have changed that compression to cat and reinstalled the kernels.
The md5 sums from my live linux (ubuntu 20.04, Kernel 5.8.0, cryptsetup 2.2.2, btrfs-progs v5.4.1). Those from my chrooted arch are the same.
The md5sums from grub
That ones from the initramfs are correct. And that one from the linux is different now.
Last edited by bysom (2021-06-06 12:18:59)
#15 2021-06-06 12:34:36
Re: [SOLVED] Invalid magic number on boot
Smells as if the grub btrfs module doesn’t like compressed files (at least not zstd)?
If you check a random zstd compressed file from the grub shell, does its md5 deviate?
Or do you maybe use https://wiki.archlinux.org/title/Btrfs#Compression ?
#16 2021-06-06 21:57:33
Re: [SOLVED] Invalid magic number on boot
Yes, I’m using btrfs compression with zstd.
I’ve checked the results with a normal file
Linux point of view
grub point of view
Both files are different here. There could be some randomness, I think.
Last edited by bysom (2021-06-06 22:27:06)
#17 2021-06-06 22:03:11
Re: [SOLVED] Invalid magic number on boot
What if you «chattr -c /boot» and update the kernel?
Edit: also notice the warning and to have grub-install post 2019-07-05
Last edited by seth (2021-06-06 22:06:14)
#18 2021-06-07 19:45:18
Re: [SOLVED] Invalid magic number on boot
Hi, I have tried that chattr -c /boot thing and it hasn’t changed anything. After that I have checked the md5sums with grub again and got for one file an error message containing ‘error: zstd data corrupted.’. After that I have repeated that btrfs check just in case without errors.
Since the error only occurred with grub and there is already a rc1 for the next grub release, which seems to be really rare, I thought that I could try grub-git from the aur (what if it is a grub bug and no one fixes it before the release, was my first thought). So I installed grub-git, then executed grub-install, restored the grub config and got a booting system. I’m a bit happy now. And I am very thankful for your help and your patience, seth! A very positive experience. Let me know if I can do something in reward.
#19 2021-06-07 19:47:19
Re: [SOLVED] Invalid magic number on boot
Let me know if I can do something in reward.
Please always remember to mark resolved threads by editing your initial posts subject — so others will know that there’s no task left, but maybe a solution to find.
Thanks.
#20 2021-06-07 19:49:57
Re: [SOLVED] Invalid magic number on boot
Of course
Last edited by bysom (2021-06-07 19:54:38)
Источник
«Неверное магическое число, сначала необходимо загрузить ядро» в существующей и ранее работающей установке Ubuntu (не проблема с живым USB)
Я установил Ubuntu 20.04 на новый SSD. На этой материнской плате есть и другие жесткие диски, например, с windows. Моя установка прошла нормально, и я вчера весь день работал над этой установкой. Я не могу вспомнить наверняка, но думаю, что перезапускал несколько раз, для обновлений и т.п., и без проблем загрузился обратно в Ubuntu 20.04. Чего я не делал, так это никогда не запускал обратно в окна до конца ночи. После этого я выключил систему и сегодня утром попытался снова запустить Ubuntu 20.04. Я упоминаю об этом, потому что некоторые из моих исследований показали, что Windows иногда может вмешиваться в загрузочные файловые системы.
Обратите внимание, что все перечисленные ниже проблемы возникли одинаково как до, так и после того, как я запустил fsck на ssd из временного Live Ubuntu, хотя, очевидно, fsck обнаружил большой объем ошибок. До fsck в Live Ubuntu диск был отключен, после этого он был монтируемым, и я мог получить некоторые файлы, которые мне понадобились сегодня утром.
Если я попытаюсь выбрать «Ubuntu» в меню Grub, я получаю сообщение об ошибке:
Если я захожу в консоль, я вижу свою файловую систему без проблем.
В моем boot/ есть
Если я сделаю file на них я получаю странные результаты:
На данный момент мои потенциальные точки исследования достаточно разветвились, чтобы заставить меня подумать, что я должен спросить у stackexchange, какие следующие шаги я могу попробовать. Например, два наиболее распространенных ответа на переполнение стека в ubuntu получают «недействительную магию ELF, независимую от архитектуры» непосредственно из grub (или grub-rescue?) Кажется. Кроме того, любой другой ответ «недействительный магический номер» на Reddit и stackexchange включает в себя вещи типа Live CD, работающие непосредственно с флэш-накопителя, и решение всегда «использовать другой флэш-накопитель / инструмент для создания установки».
Обратите внимание, что приведенные выше команды и ответы были набраны вручную, поэтому, пока я дважды проверял, я мог что-то напечатать неправильно.
Как я могу снова загрузиться в 20.04, в идеале без переустановки и потери файлов?
Первый ответ не сработает, если я сделаю
Второй ответ не работает. Я не в режиме безопасной загрузки.
Третий ответ не сработал, я безуспешно пытался отключить все USB-устройства.
Я видел кое-что в Интернете о режиме EFI. В моем меню личинок я вижу UEFI Firmware Settings как вариант, я не уверен, означает ли это, что я нахожусь в «режиме» UEFI или нет. Судя по тому, что я смотрю в меню BIOS, я считаю, что нахожусь в режиме UEFI.
Я попробовал наиболее подходящее решение для invalid arch-independent ELF magic ошибка (по различным вопросам Stackexchange)
Источник
System boot error : invalid magic number #505
Hi,
I am using ventoy 1.0.20, on a physical hard drive.
When I try to UEFI boot debian 10.5 (live+gnome), I choose the iso, then I have the grub boot menu, select default entry, and I have these errors :
I am still searching for more information on how to fix this (even with a bios config. ), but still no luck.
Does anyone have any idea ?
The text was updated successfully, but these errors were encountered:
- Only debian 10.5 has this error? Other iso files OK?
- Please make a checksum of the ISO file to make sure that it is not corrupted
- Please retry with the latest Ventoy version
I have the same.
ubuntu-21.04-desktop-amd64.iso and ventoy 1.0.53
This is an old issue. I will close it now.
If you still have problem with latest Ventoy release, you can reopen the issue.
Same problem, 1.1.0.64 release, trying bodhi linux, but no tried other images with no success.
Ventoy-1.070:
debian-live-11.2.0-amd64-kde+nonfree.iso (includes microcode for non-free hardware) does not work, while debian-live-11.2.0-amd64-kde+nonfree.iso works
No problems with ubuntu (kubuntu 20.04/21.10, neon-user, ubuntu 20.04/21.10)
Q: can this issue be reopened?
@abuGit did you do a checksum of it from in Ventoy (press M)?
Yes; I did a md5sum check on the usb device. The strange thing is that debian-live-11.2.0-amd64-kde+nonfree.iso is the only iso which dont work (and I use many
Ventoy version 1.0.70
Same problem, with isos of:
Debian, Slackware, Zorin OS, Kubuntu. Linux Mint
Did you press m when booted to Ventoy to check the hash value of all of the ISOs and check matches the published values?
Is the memory of your computer reliable (perform a memory test).
Did you press m when booted to Ventoy to check the hash value of all of the ISOs and check matches the published values? Is the memory of your computer reliable (perform a memory test).
The hash values changed when checking in ventoy with the built in tool, but the hash value of the iso matched the published one when I downloaded it (Tested with latest Ubuntu iso). My computer’s memory is definitely reliable.
Check the hash value of the files on the usb drive under Windows or Linux
If bad then usb file is corrupt.
If good then usb I/o reads may be the problem.
Report back which it is
Checked, the hash of the iso file is still correct when first pasting the iso into the ventoy usb, I’ll check if it changes after I try and boot it and report back.
Using m in Ventoy will use bios usb driver, using windows or Linux will use OS usb driver. That is why you need to check same file on usb drive using both m in Ventoy and using an os. Do not overwrite the file until you check with both methods.
Using m in Ventoy will use bios usb driver, using windows or Linux will use OS usb driver. That is why you need to check same file on usb drive using both m in Ventoy and using an os. Do not overwrite the file until you check with both methods.
Interestingly, some isos work and some don’t for example, Fedora KDE live iso worked but Ubuntu 21 did not. I currently have 2 isos on my ventoy USB, Ubuntu and Fedora, the sha256 of the Ubuntu image did change, I did not check the Fedora iso
Using m in Ventoy will use bios usb driver, using windows or Linux will use OS usb driver. That is why you need to check same file on usb drive using both m in Ventoy and using an os. Do not overwrite the file until you check with both methods.
Interestingly, some isos work and some don’t for example, Fedora KDE live iso worked but Ubuntu 21 did not. I currently have 2 isos on my ventoy USB, Ubuntu and Fedora, the sha256 of the Ubuntu image did change, I did not check the Fedora iso
Update: The hash for the ubuntu iso changed, but not the fedora iso
What do you mean ‘changed’?
How did you get the hash in first attempt and how did you get hash in second attempt?
Using m both times? Comparing with published values? Getting hash of downloaded file on system hard disk? Getting hash of file on usb drive?
Please can you be specific.
Final update:
The iso files were damaged due to not ejecting the USB stick properly, issue can now be considered as closed. Thank you for your help 😀
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
- Печать
Страницы: [1] 2 Все Вниз
Тема: После пропажи напряжения не грузится система (Прочитано 3434 раз)
0 Пользователей и 1 Гость просматривают эту тему.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
bobrovsky
Здравствуйте!
После пропажи напряжения система выдает ошибки(первая картинка) и появляется окно загрузчика. Нажимаю «е», заходит в меню(вторая картинка), удаляю вручную recordfail и нажимаю ctrl+x, система начинает снова грузиться и выдает ошибки, но всего две: «error:invalid magic number», «error:you need to load the kernel first».
Пробовал нажимать «с» и писать в консоле ls: пишет (hd0) (hd0,msdos1)
Помогите запустить систему без livecd, сижу почти без интернета.
Система Ubuntu 14.03lts
https://cloud.mail.ru/public/5spS/krpssGBPq
https://cloud.mail.ru/public/5Bs6/vX3guLdK4
UPD: Как я понял, то дело в какой-то неисправности ядро. Выход-установить новую систему или попробовать восстановиться через LiveCD.
« Последнее редактирование: 26 Ноября 2015, 12:37:14 от bobrovsky »
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
alecsartania
Ну как минимум надо грузится с Livecd и оттуда отчекать загрузочный раздел.
Дома Linux Mint 20.1 / 20.02
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
bobrovsky
Получается что-то потерялось на жестком
Как я понял загрузчик в порядке, навернулся образ. Вообще без вариантов livecd нужен?
Не сталкивался еще с загрузочным разделом, так и искать в поиске «восстановление загрузочного раздела»?
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Виктор Перестукин
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
bobrovsky
В качестве эксперимента пробовал. Система загрузилась. Хорошая статья:
http://www.lexpr.ru/node/413
Проходил раннее по ссылке, верхнюю часть статью выполнял, он показывает при вводе ls только:
(hd0) (hd0,msdos1)
Но это, думаю, ничего особо не означает(возможно, что у меня все на одном разделе?)
Потом попробовал так:
set root=(hd0,1)
(выбрав в строке linux табуляцией продолжение фразы vmlinuz)
linux /boot/vmlinuz root=/dev/sda1
и консоль сразу пишет invalid magic number
Что-то не нашел в сети какой смысл этой фразы в данном случае.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
БТР
bobrovsky, загрузись с LiveCD и проверь файловую систему, потом попробуй смонтировать и посмотреть, что на ней есть.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
bobrovsky
bobrovsky, загрузись с LiveCD и проверь файловую систему, потом попробуй смонтировать и посмотреть, что на ней есть.
Дело в том, что livecd нет, объект удаленный и интернета нет.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Sly_tom_cat
объект удаленный и интернета нет.
расшифруй.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
bobrovsky
объект удаленный и интернета нет.
расшифруй.
Физически банка(типа тонкий клиент) находится на севере, на объекте. Связь телефонная с коллегой, передача инструкций такая же, еще по смс. Там бывает интернет, но не всегда и плохой.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Виктор Перестукин
У меня всё загрузилось:
set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 ro
initrd /initrd.img
boot
Lubuntu 14.04 на Virtualbox
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
bobrovsky
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Виктор Перестукин
Оставьте просто vmlinuz — это ссылка.
PS
да ещё «ro» забыли.
alex_ander
а режим восстановления в груб работает?
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
bobrovsky
Оставьте просто vmlinuz — это ссылка.
PS
да ещё «ro» забыли.
Попробовал, не получается. При вводе второй строки и нажатии Enter появляется сообщение об ошибке
error: invalid magic number
а режим восстановления в груб работает?
Нет, не работает. При выборе его из меню появляются те же ошибки, но только со знаками вопроса на конце
alex_ander
с более старого ядра загрузиться? если есть конечно
- Печать
Страницы: [1] 2 Все Вверх
#1 2021-06-02 18:43:41
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
[SOLVED] Invalid magic number on boot
Hi,
after a system upgrade including linux and linux-headers my system stopped working.
Loading Linux core repo kernel...
error: invalid magic number.
Loading initial ramdisk...
error: you need to load the kernel first
I’ve already tried to reinstall linux and linux-headers, tried `mkinitcpio -P`, to rebuild my grub config and to reinstall grub. Everything without error messages.
Some weeks ago I had the same issue, but here everything was fine again after I reinstalled linux and linux-headers.
I’ve used the grub command line. I’m not sure if I used it correctly or if it is a hint:
grub> ls (hd1,gpt3)
Partition hd1,gpt3: No known filesystem detected - Partition start at 37315584KiB - Total size 3869702983.5KiB
It is a btrfs filesystem and it works.
I hope someone has an idea.
EDIT: My solution was to upgrade grub to 2.06 RC1. Details are in the thread.
Last edited by bysom (2021-06-07 19:52:23)
#2 2021-06-02 20:06:13
- seth
- Member
- Registered: 2012-09-03
- Posts: 35,309
Re: [SOLVED] Invalid magic number on boot
Suggests /boot/vmlinuz-linux is corrupt.
Is the boot partition full (no space left)?
What dow «file /boot/vmlinuz-linux» say and what is the md5 of the file?
If thereÄs enough space, can you isntall and boot the lts kernel?
#3 2021-06-03 09:26:48
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
Hi, thanks for your answer.
There is enough space, since i have no extra /boot partition. I’ve encrypted my entire system including /boot. Therefore I have an extra efi partition with grub, that decrypts my btrfs and then boots the kernel. Mostly like it is described in the Wiki
# df -h
...
/dev/mapper/cryptroot 3,7T 2,3T 1,4T 64% /mnt
/dev/mapper/cryptroot 3,7T 2,3T 1,4T 64% /mnt/home
/dev/mapper/cryptroot 3,7T 2,3T 1,4T 64% /mnt/.snapshots
/dev/sda1 599M 352K 599M 1% /mnt/efi
I’ve also installed the lts kernel. Both aren’t working.
# file /mnt/boot/vmlinuz-linux
/mnt/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 5.12.8-arch1-1 (linux@archlinux) #1 SMP PREEMPT Fri, 28 May 2021 15:10:20 +0000, RO-rootFS, swap_dev 0x8, Normal VGA
# file /mnt/boot/vmlinuz-linux-lts
/mnt/boot/vmlinuz-linux-lts: Linux kernel x86 boot executable bzImage, version 5.10.41-1-lts (linux-lts@archlinux) #1 SMP Fri, 28 May 2021 15:03:28 +0000, RO-rootFS, swap_dev 0x8, Normal VGA
Here the md5 sums
# md5sum /mnt/boot/vmlinuz-linux
04da1eb5b1d97e228936fbb613277406 /mnt/boot/vmlinuz-linux
# md5sum /mnt/boot/vmlinuz-linux-lts
f525237336ec905a8af0002ac457d1dc /mnt/boot/vmlinuz-linux-lts
I’ve also tried a `btrfs check` without errors.
Thanks for your help!
#4 2021-06-03 13:42:56
- seth
- Member
- Registered: 2012-09-03
- Posts: 35,309
Re: [SOLVED] Invalid magic number on boot
It would seem that either the decryption fails or maybe is just too slow
Can you «ls» the partition after «insmod btrfs»?
#5 2021-06-03 17:30:34
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
Okay, I have some results.
After the cryptomount command:
> ls (crypto0)
Device crypto0: Filesystem type btrfs - Label `cepa`, UUID <the uuid> - Sector size 512B - Total size 3869700935.5KiB
I have tried a `ls /@/boot` after the `echo ‘Loading Linux linux-lts …’` and it lists the files in my /boot directory. After that I have tried a `file —is-x86-linux /@/boot/vmlinuz-linux` and got no result (and also no error). Is there something else I should try?
#6 2021-06-03 18:37:26
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
I’ve tried a `sleep 30` before loading the kernel, which hasn’t changed anything.
After that I have chrooted my arch again and reinstalled linux, linux-lts, and the headers and now something changed. If I try to boot the LTS kernel it passes the ‘Loading Linux linux-lts …’ section and then I get a kernel panic in the following ‘Loading initial ramdisk …’ section. The error message before the kernel panic is
Initramfs unpacking failed: invalid magic at start of compressed
The normal linux kernel still fails at the first section ‘Loading Linux linux …’
Last edited by bysom (2021-06-03 18:38:35)
#7 2021-06-04 05:19:17
- seth
- Member
- Registered: 2012-09-03
- Posts: 35,309
Re: [SOLVED] Invalid magic number on boot
Re-cap:
This is a regression, the config used to work befoer?
The files end on the encrypted partition intact, ie. they’re perfectly accessible offline?
The error has a degree of randomness, eg. vmlinuz-linux-lts (now) loads, but the other files have bad header bytes?
What else was included in the breaking udpate? /var/log/pacman.log?
file --is-x86-linux /@/boot/vmlinuz-linux
returns a boolean.
if file --is-x86-linux /@/boot/vmlinuz-linux; then echo 'kernel is good'; fi
#8 2021-06-04 14:48:33
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
Yes, your recap sounds correct. The config worked before, I can access my files and the error seems to have some kind of randomness.
Here is the pacman log from the last update before the crash: http://ix.io/3oJJ
#9 2021-06-04 14:55:54
- seth
- Member
- Registered: 2012-09-03
- Posts: 35,309
Re: [SOLVED] Invalid magic number on boot
cryptsetup sticks out…
Downgrade that, re-install the kernels and see what happens.
BE PREPARED TO LOSE ACCESS TO THE … oh, wait: you can’t boot and will have to chroot anyway
#10 2021-06-04 17:48:05
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
I’ve downgraded to cryptsetup 2.3.4 and the error is still the same.
Is this setup with an encrypted boot partition that rare, that it could be a bug in grub or somewhere else? The idea to reinstall my arch with a classical encryption setup gets more and more attractive for me. Unless you have still some good ideas. I’m still very happy with your help
#11 2021-06-04 20:40:21
- seth
- Member
- Registered: 2012-09-03
- Posts: 35,309
Re: [SOLVED] Invalid magic number on boot
Did the kernel re-installation change anything about the randomness aspect of the kernel/initramfs «corruption»?
And otherwise, how the status is at the grub shell (ie. testing the file types there) in case this is -somehow- a time/race condition…
#12 2021-06-05 20:23:24
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
Hi, I have some news.
To your questions: The kernel reinstallation made that the error occours at the ‘Loading Linux linux-lts …’ again for the lts kernel which made it to the initramfs loading. As far as I remember this state changed with the reinstallation of the kernel.
I have tried your ‘if file xy then’ example and it obviously returned a false value. I’ve got a ‘kernel is bad’ because I’ve added an else case. It should have been true, right?
After that I saw, that I can use md5sum with grub and checked the md5 sum of the kernel and got a different number than I get from my live system.
From grub
> md5sum /@/boot/vmlinuz-linux
546c...145ce /@/boot/vmlinuz-linux
From a live linux
# md5sum /mnt/boot/vmlinuz-linux
8ed348f0125772a6ef0756b818199fc6 /mnt/boot/vmlinuz-linux
I have asked someone else with an arch linux for a hash sum as a reference and got the 8ed348f0125772a6ef0756b818199fc6 for the actual kernel.
(I’ve updated the kernel yesterday)
Then I’ve used cat with grub to view some text files which all looked normal to me. After that I’ve used md5sum on one of these files and got the same hash numbers with grub and with my live stick.
Last edited by bysom (2021-06-05 21:33:05)
#14 2021-06-06 12:13:21
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
Hi, I have changed that compression to cat and reinstalled the kernels.
The md5 sums from my live linux (ubuntu 20.04, Kernel 5.8.0, cryptsetup 2.2.2, btrfs-progs v5.4.1). Those from my chrooted arch are the same.
f14f10d20670a7638af02f4ae11b8c2e /mnt/boot/initramfs-linux.img
2cda8759540127bf587869679441188b /mnt/boot/initramfs-linux-lts.img
8ed348f0125772a6ef0756b818199fc6 /mnt/boot/vmlinuz-linux
afe5da8d09ed00335cea004e1ed79f65 /mnt/boot/vmlinuz-linux-lts
The md5sums from grub
f14f10d20670a7638af02f4ae11b8c2e /@/boot/initramfs-linux.img
2cda8759540127bf587869679441188b /@/boot/initramfs-linux-lts.img
e36e627...3a053 /@/boot/vmlinuz-linux
7727430...f441de /@/boot/vmlinuz-linux-lts
That ones from the initramfs are correct. And that one from the linux is different now.
Last edited by bysom (2021-06-06 12:18:59)
#15 2021-06-06 12:34:36
- seth
- Member
- Registered: 2012-09-03
- Posts: 35,309
Re: [SOLVED] Invalid magic number on boot
Smells as if the grub btrfs module doesn’t like compressed files (at least not zstd)?
If you check a random zstd compressed file from the grub shell, does its md5 deviate?
Or do you maybe use https://wiki.archlinux.org/title/Btrfs#Compression ?
#16 2021-06-06 21:57:33
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
Yes, I’m using btrfs compression with zstd.
I’ve checked the results with a normal file
Linux point of view
c3b6db02c809b04751fa5c7c0f430df4 /mnt/root/Testfile.mp4
0a02ed72843d8893bd5616cf58dd8737 /mnt/root/Testfile.mp4.zst
grub point of view
41bf8909...cdc8da /@/root/Testfile.mp4
3283ab1ac...281f11e /@/root/Testfile.mp4.zst
Both files are different here. There could be some randomness, I think.
Last edited by bysom (2021-06-06 22:27:06)
#17 2021-06-06 22:03:11
- seth
- Member
- Registered: 2012-09-03
- Posts: 35,309
Re: [SOLVED] Invalid magic number on boot
What if you «chattr -c /boot» and update the kernel?
Edit: also notice the warning and to have grub-install post 2019-07-05
Last edited by seth (2021-06-06 22:06:14)
#18 2021-06-07 19:45:18
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
Hi, I have tried that chattr -c /boot thing and it hasn’t changed anything. After that I have checked the md5sums with grub again and got for one file an error message containing ‘error: zstd data corrupted.’. After that I have repeated that btrfs check just in case without errors.
Since the error only occurred with grub and there is already a rc1 for the next grub release, which seems to be really rare, I thought that I could try grub-git from the aur (what if it is a grub bug and no one fixes it before the release, was my first thought). So I installed grub-git, then executed grub-install, restored the grub config and got a booting system. I’m a bit happy now. And I am very thankful for your help and your patience, seth! A very positive experience. Let me know if I can do something in reward.
#19 2021-06-07 19:47:19
- seth
- Member
- Registered: 2012-09-03
- Posts: 35,309
Re: [SOLVED] Invalid magic number on boot
Let me know if I can do something in reward.
Please always remember to mark resolved threads by editing your initial posts subject — so others will know that there’s no task left, but maybe a solution to find.
Thanks.
#20 2021-06-07 19:49:57
- bysom
- Member
- Registered: 2021-06-02
- Posts: 13
Re: [SOLVED] Invalid magic number on boot
Of course
Last edited by bysom (2021-06-07 19:54:38)
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
maitredede opened this issue
Oct 4, 2020
· 17 comments
Comments
Hi,
I am using ventoy 1.0.20, on a physical hard drive.
When I try to UEFI boot debian 10.5 (live+gnome), I choose the iso, then I have the grub boot menu, select default entry, and I have these errors :
error: invalid magic number.
error: you need to load the kernel first.
Press any key to continue...
I am still searching for more information on how to fix this (even with a bios config…), but still no luck.
Does anyone have any idea ?
- Only debian 10.5 has this error? Other iso files OK?
- Please make a checksum of the ISO file to make sure that it is not corrupted
- Please retry with the latest Ventoy version
I have the same.
ubuntu-21.04-desktop-amd64.iso and ventoy 1.0.53
This is an old issue. I will close it now.
If you still have problem with latest Ventoy release, you can reopen the issue.
Same problem, 1.1.0.64 release, trying bodhi linux, but no tried other images with no success.
Ventoy-1.070:
debian-live-11.2.0-amd64-kde+nonfree.iso (includes microcode for non-free hardware) does not work, while debian-live-11.2.0-amd64-kde+nonfree.iso works
No problems with ubuntu (kubuntu 20.04/21.10, neon-user, ubuntu 20.04/21.10)
Q: can this issue be reopened?
@abuGit did you do a checksum of it from in Ventoy (press M)?
Yes; I did a md5sum check on the usb device. The strange thing is that debian-live-11.2.0-amd64-kde+nonfree.iso is the only iso which dont work (and I use many ~ 12).
Here the link of the iso:
debian-live-11.2_nonfree.iso
Ventoy version 1.0.70
Same problem, with isos of:
Debian, Slackware, Zorin OS, Kubuntu. Linux Mint
Did you press m when booted to Ventoy to check the hash value of all of the ISOs and check matches the published values?
Is the memory of your computer reliable (perform a memory test).
Did you press m when booted to Ventoy to check the hash value of all of the ISOs and check matches the published values? Is the memory of your computer reliable (perform a memory test).
The hash values changed when checking in ventoy with the built in tool, but the hash value of the iso matched the published one when I downloaded it (Tested with latest Ubuntu iso). My computer’s memory is definitely reliable.
Check the hash value of the files on the usb drive under Windows or Linux
If bad then usb file is corrupt.
If good then usb I/o reads may be the problem.
Report back which it is
Checked, the hash of the iso file is still correct when first pasting the iso into the ventoy usb, I’ll check if it changes after I try and boot it and report back.
Using m in Ventoy will use bios usb driver, using windows or Linux will use OS usb driver. That is why you need to check same file on usb drive using both m in Ventoy and using an os. Do not overwrite the file until you check with both methods.
Using m in Ventoy will use bios usb driver, using windows or Linux will use OS usb driver. That is why you need to check same file on usb drive using both m in Ventoy and using an os. Do not overwrite the file until you check with both methods.
Interestingly, some isos work and some don’t for example, Fedora KDE live iso worked but Ubuntu 21 did not. I currently have 2 isos on my ventoy USB, Ubuntu and Fedora, the sha256 of the Ubuntu image did change, I did not check the Fedora iso
Using m in Ventoy will use bios usb driver, using windows or Linux will use OS usb driver. That is why you need to check same file on usb drive using both m in Ventoy and using an os. Do not overwrite the file until you check with both methods.
Interestingly, some isos work and some don’t for example, Fedora KDE live iso worked but Ubuntu 21 did not. I currently have 2 isos on my ventoy USB, Ubuntu and Fedora, the sha256 of the Ubuntu image did change, I did not check the Fedora iso
Update: The hash for the ubuntu iso changed, but not the fedora iso
What do you mean ‘changed’?
How did you get the hash in first attempt and how did you get hash in second attempt?
Using m both times? Comparing with published values? Getting hash of downloaded file on system hard disk? Getting hash of file on usb drive?
Please can you be specific.
Final update:
The iso files were damaged due to not ejecting the USB stick properly, issue can now be considered as closed. Thank you for your help
Actually I doubt this has anything to do with kernel modules. As it seems the kernel itself is being refered to as a module. It is possible the kernel got built incorrectly or is being loaded incorrectly possibly from the grub commandline.
http://forums.gentoo.org/viewtopic-t-932358-start-0.html try that.
It is possible that some file in the kernel build didn’t get cleaned up properly an so has incorrect data in it since any changes you made in a previous attempt at building it.
Also do note that the x86 images will end up at arch/x86_64/boot/bzImage or arch/x86/boot/bzImage inside the kernel source make sure you actually have copied the kernel itself and not some other incorrect file.
If that fails try grub 1.x as its simpler to use than grub 2.x just note that alot of things are different and you should read tutorials for the correct version of grub. Often grub 1.x will be in a grub-legacy or similar package depending on the distro.
Edit: If you are building your kernel for your hardware only… do not use an initramfs its overkill. There are places you would want to do this is if your system is incapable of loading a kernel large enough for essential drivers (sparc for instance is very limited in kernel image size). another being booting over network possibly but by and large it isn’t needed. If you must use an initramfs get your kernel build working without it first.
Also personally I build my kernel with essential drivers included (disk and filesystem basically) and build it with.
make mrproper (save/backup your .config first) ;
make menuconfig ;
make -j8 ;
make modules_install ;
cp arch/x86_64/boot/bzImage /boot/linux-3.7.1 ;
(modify grub to boot the new kernel) and im done and ready to reboot.
Any chance you could attach a screenshot of the failure?
Re: invalid magic number when i try «linux» command to boot after an upgrade
Thanks! I downloaded liveCD and booted from USB. Ran the script, here’s the results:
Code:
Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ============================== => Windows is installed in the MBR of /dev/sda => Syslinux is installed in the MBR of /dev/sdb sda1: _________________________________________________________________________ File system: vfat Boot sector type: Dell Utility: Fat16 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files/dirs: /COMMAND.COM sda2: _________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Windows Vista Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe /wubildr.mbr /ubuntu/winboot/wubildr.mbr /wubildr /ubuntu/winboot/wubildr /ubuntu/disks/root.disk /ubuntu/disks/swap.disk sda2/Wubi: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Ubuntu 9.10 Boot files/dirs: /boot/grub/grub.cfg /etc/fstab sda3: _________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files/dirs: sda4: _________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files/dirs: sdb1: _________________________________________________________________________ File system: vfat Boot sector type: Fat32 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files/dirs: =========================== Drive/Partition Info: ============================= Drive: sda ___________________ _____________________________________________________ Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start End Size Id System /dev/sda1 63 224,909 224,847 de Dell Utility /dev/sda2 * 224,910 312,689,159 312,464,250 7 HPFS/NTFS /dev/sda3 312,689,160 468,921,284 156,232,125 7 HPFS/NTFS /dev/sda4 468,921,285 625,137,344 156,216,060 7 HPFS/NTFS Drive: sdb ___________________ _____________________________________________________ Disk /dev/sdb: 16.1 GB, 16131293184 bytes 25 heads, 25 sectors/track, 50410 cylinders, total 31506432 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start End Size Id System /dev/sdb1 * 2,048 31,506,431 31,504,384 b W95 FAT32 blkid -c /dev/null: ____________________________________________________________ Device UUID TYPE LABEL /dev/loop0 squashfs /dev/loop1 f9e0ecaf-c1d9-4f2e-a288-15354c9edb07 ext4 /dev/sda1 07D7-0A11 vfat DellUtility /dev/sda2 BE387A9E387A54FD ntfs /dev/sda3 A8BC87AEBC87761A ntfs /dev/sda4 5A5CA9CC5CA9A2ED ntfs /dev/sda: PTTYPE="dos" /dev/sdb1 3433-3231 vfat PENDRIVE /dev/sdb: PTTYPE="dos" ============================ "mount | grep ^/dev output: =========================== Device Mount_Point Type Options aufs / aufs (rw) /dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) /dev/loop0 /rofs squashfs (ro,noatime) /dev/sda4 /media/5A5CA9CC5CA9A2ED fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions) /dev/sda3 /media/A8BC87AEBC87761A fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions) ======================== sda2/Wubi/boot/grub/grub.cfg: ======================== # # DO NOT EDIT THIS FILE # # It is automatically generated by /usr/sbin/grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s /boot/grub/grubenv ]; then have_grubenv=true load_env fi set default="0" if [ ${prev_saved_entry} ]; then saved_entry=${prev_saved_entry} save_env saved_entry prev_saved_entry= save_env prev_saved_entry fi if [ ${recordfail} = 1 ]; then set timeout=-1 else set timeout=10 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/white ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_lupin ### menuentry "Ubuntu, Linux 2.6.31-22-generic" { insmod ntfs set root=(hd0,2) search --no-floppy --fs-uuid --set be387a9e387a54fd loopback loop0 /ubuntu/disks/root.disk set root=(loop0) linux /boot/vmlinuz-2.6.31-22-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro quiet splash initrd /boot/initrd.img-2.6.31-22-generic } menuentry "Ubuntu, Linux 2.6.31-22-generic (recovery mode)" { insmod ntfs set root=(hd0,2) search --no-floppy --fs-uuid --set be387a9e387a54fd loopback loop0 /ubuntu/disks/root.disk set root=(loop0) linux /boot/vmlinuz-2.6.31-22-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single initrd /boot/initrd.img-2.6.31-22-generic } menuentry "Ubuntu, Linux 2.6.31-14-generic" { insmod ntfs set root=(hd0,2) search --no-floppy --fs-uuid --set be387a9e387a54fd loopback loop0 /ubuntu/disks/root.disk set root=(loop0) linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic } menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" { insmod ntfs set root=(hd0,2) search --no-floppy --fs-uuid --set be387a9e387a54fd loopback loop0 /ubuntu/disks/root.disk set root=(loop0) linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk ro single initrd /boot/initrd.img-2.6.31-14-generic } ### END /etc/grub.d/10_lupin ### ### BEGIN /etc/grub.d/20_memtest86+ ### ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Windows Vista (loader) (on /dev/sda2)" { insmod ntfs set root=(hd0,2) search --no-floppy --fs-uuid --set be387a9e387a54fd chainloader +1 } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ============================= sda2/Wubi/etc/fstab: ============================= # /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1 /host/ubuntu/disks/swap.disk none swap loop,sw 0 0 /dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0 ================= sda2/Wubi: Location of files loaded by Grub: ================= 5.0GB: boot/grub/grub.cfg 1.6GB: boot/initrd.img-2.6.31-14-generic 5.1GB: boot/initrd.img-2.6.31-22-generic 1.5GB: boot/vmlinuz-2.6.31-14-generic 4.6GB: boot/vmlinuz-2.6.31-22-generic 5.1GB: initrd.img 1.6GB: initrd.img.old 4.6GB: vmlinuz 1.5GB: vmlinuz.old