Sorry for the delayed reply, but as you will see below I had many things to do.
I tried to change
GRUB_CMDLINE_LINUX_DEFAULT parameters, but after that
upgrade-grub reported e syntax error.(although I checked and rechecked - there was no error, I typed parameters correctly). Against any logic, I ignored the syntax error reported by
update-grub and rebooted the system (big mistake, I know). Of course the system was unbootable...
So I booted from Slackel 17.3 USB, mounted and chroot'ed my file system. Then I reverted
/etc/default/grub to its previous version, and tried to
update-grub in the
chroot environment, trying to at least make the system as it was before.
update-grub reported a lot of missing directories (including
/proc, for example), and it didn't see my old Window$ XP partition (I keep it there because some old programs run in that environment only). Despite all that,
update-grub actually managed to create a
/boot/grub/grub.conf file without syntax errors. I shut down the system and started again. The grub screen is dark with two oprtions to boot (both entitled Slackel 17.2, not 17.3) but the system boots normally, and everything works - except rebooting and
update-grub.
I tried to reboot, the original problem is still there: shutdown then boot the system works, rebooting doesn't.
upgrade-grub doesn't work either. This is what I get by trying it:
Code: Select all
Generating grub configuration file ...
Found background: /boot/grub/slackel.png
Found linux image: /boot/vmlinuz-huge-smp-4.4.38-smp
Found linux image: /boot/vmlinuz-huge-smp
Found linux image: /boot/vmlinuz-huge-4.4.38
Found linux image: /boot/vmlinuz-huge
Found linux image: /boot/vmlinuz-huge-smp-4.4.38-smp
Found linux image: /boot/vmlinuz-huge-smp
Found linux image: /boot/vmlinuz-huge-4.4.38
Found linux image: /boot/vmlinuz-huge
Found Windows Recovery Environment on /dev/sda1
Found Microsoft Windows XP Home Edition on /dev/sda2
Found 'Slackel Linux 4.4.38-smp' (7.3) on /dev/sda3
Found linux image: /boot/vmlinuz-huge-smp-4.4.38-smp
Found linux image: /boot/vmlinuz-huge-smp
Found linux image: /boot/vmlinuz-huge-4.4.38
Found linux image: /boot/vmlinuz-huge
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 319
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
As you can see it reports a syntax error at line 319. This is the contents of
/boot/grub/grub.cfg.new around line 319:
Code: Select all
308 menuentry "\"'Slackel Linux 4.4.38-smp'\'' (7.3) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-smp-4.4.38-smp--a4debc3b-282b-470a-b859-c5139904b959' {
309 insmod part_msdos
310 insmod ext2
311 set root='hd0,msdos3'
312 if [ x$feature_platform_search_hint = xy ]; then
313 search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 a4debc3b-282b-470a-b859-c5139904b959
314 else
315 search --no-floppy --fs-uuid --set=root a4debc3b-282b-470a-b859-c5139904b959
316 fi
317 linux /boot/vmlinuz-huge-smp-4.4.38-smp root=/dev/sda3
318 }
319 }
320 ### END /etc/grub.d/22_os-prober_proxy ###
Line 319 seems to contain an orphaned close curly bracket indeed. I know that file is automated and you should not mess with it, but since t doesn't work anyway I deleted line 319 manually, renamed that file
/boot/grub/grub.cfg and tried to boot the system... of course that dirty trick didn't work: I see the first 2 lines of a normal grub boot then screen flashes and it starts over again and again. So I had to boot via USB to make the system bootabe as described earlier.
So now I somehow messed up grub... I am still able to boot by running
update-grub in a
chroot environment but I cannot really
update-grub properly, and I have no way to boot the old Window$ XP partition (I need it very rarely, but it still needs to be there).
If it wasn't for the kernel problem that messes my screen, I would have re-install Slackel from scratch. Last time I did that on this machine was about two years ago, maybe the kernel won't mess up the screen now since the kernel changed in those two years. And reinstalling is not really a big deal, Slackel itself takes 5 minutes to be installed, configuring everything as it was before (my own libraries etc) takes way more (several hours). I will actually try that, unless there is something else I should try before.