You are not logged in.

#1 2015-05-07 06:01:56

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

GRUB won't save any change made

I'm trying to config GRUB to always load the latest kernel version [I have both latest and LTS installed] but for some reason any change I made trough /etc/default/grub or using Grub Customizer won't be saved and everytime y boot it goes back to the LTS [which I have just in case something goes wrong with the latest kernel]. I've tried all the methods in the Archwiki and nothing seemes to work, I also looked up on the forum but the topics that had somethign to do point in the same direction.

Am I missing something, did something change in the way you select your default kernel... or anybody knows why I can choose the one that I want?

thks in advance


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#2 2015-05-07 06:41:57

dcdriving
Member
From: United Kingdom
Registered: 2015-01-20
Posts: 70

Re: GRUB won't save any change made

If you are following the wiki it should be quite straight forward. I used this but I am not sure what you actually tried.  Perhaps you didn't remember to regenerate the new grub.cfg file after you made the changes to /etc/default/grub?

Offline

#3 2015-05-07 09:49:43

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: GRUB won't save any change made

You need to post the contents of /etc/default/grub & /boot/grub/grub.cfg

Did you use `grub-mkconfig` after changing /etc/default/grub?
EDIT: Sorry dcdriving, you already asked that...

Please explicitly list all the "methods in the ArchWiki" you have tried.

Last edited by Head_on_a_Stick (2015-05-07 09:50:33)


Jin, Jîyan, Azadî

Offline

#4 2015-05-08 01:45:18

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

Head_on_a_Stick, I used both the number option and the name title but no one is working.

I have an 'Arch Linux' option which loads the LTS and then a submenu ordered like this:

1. LTS
2. LTS [Fallback]
3. Latest
4. Latest [Fallback]

so I have to change GRUB_DEFAULT = to 2, which should be tle latest kernel, or do I have to take the options out of the submenu to make it work?
[EDIT: I tried to disable the submenu using GRUB_DISABLE_SUBMENU=y but it didn't disable it, also I tried all numbers from 0 to 5 but it always boot LTS] 

dcdriving, I did re-generate the grub.cfg file. something weird happened by the way, yesterday I tried to configure the default kernel and also uncomment the 2 lines that make grub blue, re-generate the file and nothing happened, in the morning I booted again and all was the same: white kernel and LTS kernel, I just booted five minutes ago and the kernel menú was blue but the default was still LTS.

Last edited by MGu3l (2015-05-08 02:35:09)


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#5 2015-05-08 04:05:55

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: GRUB won't save any change made

So instead of fixing your issue, lets all put blindfolds on and play marco polo!

Now what does your /etc/default/grub and /boot/grub/grub.cfg look like?  hmm


Knute

Offline

#6 2015-05-08 05:50:41

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

Hi Knute, this is my grub file: http://pastebin.com/JpJxV2JG

And this is my grub.cfg: http://pastebin.com/UKt5H5g0


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#7 2015-05-08 06:49:08

dcdriving
Member
From: United Kingdom
Registered: 2015-01-20
Posts: 70

Re: GRUB won't save any change made

It's best to tackle one problem at a time.  If you tried to disable submenus and it didn't work, then you have to ask why.  Theres not much point in trying all different things if a change in /etc/default/grub is not being reflected after you generate the new grub.cfg.  Did you use

# grub-mkconfig -o /boot/grub/grub.cfg

Offline

#8 2015-05-09 17:16:02

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

dcdriving wrote:

It's best to tackle one problem at a time.  If you tried to disable submenus and it didn't work, then you have to ask why.  Theres not much point in trying all different things if a change in /etc/default/grub is not being reflected after you generate the new grub.cfg.  Did you use

# grub-mkconfig -o /boot/grub/grub.cfg

yes, in fact first I tried to disable the submenú witouth changing the default partition but it didn't worked, and yes, that's the line I used to re-generate the grub file.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#9 2015-05-09 18:32:38

dcdriving
Member
From: United Kingdom
Registered: 2015-01-20
Posts: 70

Re: GRUB won't save any change made

Can see from config that grub-customizer has made changes but never used that so can't help.  Sorry!  What I would try next is to output grub-mkconfig to screen and check that it is the same as what is being written to /boot/grub/grub.cfg but from the /etc/default/grub you posted I don't think it will be as it looks ok to me.  You could also check the date and time stamp on /boot/grub/grub.cfg after regenerating it to check if it actually was written?

Offline

#10 2015-05-10 13:04:00

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: GRUB won't save any change made

Please post the output of:

lsblk

Jin, Jîyan, Azadî

Offline

#11 2015-05-10 17:39:36

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

Head_on_a_Stick, this is it:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 298,1G  0 disk 
├─sda1   8:1    0   200M  0 part /boot
├─sda2   8:2    0  46,8G  0 part 
├─sda3   8:3    0 619,9M  0 part 
└─sda4   8:4    0 250,5G  0 part /
sr0     11:0    1  1024M  0 rom  

sda2 is the OSX partition, and sda3 is the OSX Recovery partition.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#12 2015-05-10 18:15:18

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: GRUB won't save any change made

Is this an EFI system?

If so, post the output of:

# efibootmgr -v

Jin, Jîyan, Azadî

Offline

#13 2015-05-11 00:54:10

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

Indeed it is, is a MacBook Unibody.

This is the output:

BootCurrent: 0000
BootOrder: 0000,0080
Boot0000* arch_grub	HD(1,28,64000,0a1c9398-6216-4be4-8638-5fa151c1a427)File(\EFI\arch_grub\grubx64.efi)
Boot0080* Mac OS X	ACPI(a0341d0,0)PCI(a,0)SATA(0,0,0)HD(2,64028,5d9d120,5f563a0a-82b6-4260-838f-682505f80a11)
Boot0081* Mac OS X	ACPI(a0341d0,0)PCI(a,0)SATA(0,0,0)HD(2,64028,5d9d120,5f563a0a-82b6-4260-838f-682505f80a11)
BootFFFF* 	ACPI(a0341d0,0)PCI(a,0)SATA(0,0,0)HD(2,64028,5d9d120,5f563a0a-82b6-4260-838f-682505f80a11)File(\System\Library\CoreServices\boot.efi)

"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#14 2015-05-11 07:11:19

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: GRUB won't save any change made

MGu3l wrote:
File(\EFI\arch_grub\grubx64.efi)

Your GRUB bootloader is in a non-standard location, do you know why?

You can try re-installing GRUB:

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck

https://wiki.archlinux.org/index.php/GR … allation_2

If that doesn't work, post the output of:

ls /boot
ls /boot/EFI

Jin, Jîyan, Azadî

Offline

#15 2015-05-12 02:27:28

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

I don't know why, I think I remember something about "Grub 2 wouldn't work if not installed in the EFI partition" or something like that.

this is the output of ls /boot:

 EFI                           initramfs-linux.img               vmlinuz-linux
grub                          initramfs-linux-lts-fallback.img  vmlinuz-linux-lts
initramfs-linux-fallback.img  initramfs-linux-lts.img 

and this is the output of ls /boot/EFI:

 APPLE  arch_grub  boot 

Is there a possibility that something goes wrong if I try to reinstall GRUB?I have the idea that Linux in general and Apple don't get along very well, and I don't want to mess up my system since I finally manage to install it.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#16 2015-05-12 07:38:37

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: GRUB won't save any change made

MGu3l wrote:

I don't know why, I think I remember something about "Grub 2 wouldn't work if not installed in the EFI partition" or something like that.

Your EFI system partition is mounted to /boot so the standard installation command is fine.

However, I am allergic to macs so I know *nothing* about them.

I think you will be fine re-installing GRUB (there would be notes in the ArchWiki otherwise, surely?), but perhaps you should wait for a fellow mac-user to offer reassurance on this point.


Jin, Jîyan, Azadî

Offline

#17 2015-05-13 18:25:43

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

Quick update:

I decided to uninstall the LTS kernel due to a problem with Chromium [each time my Mac went to sleep and came back Chromium wouldn't work until I restarted all the system], re-generated the grub file and when I booted I no longer had the submenú enabled [remember I tried to disabled it before but the line didn't worked] so I deleted the line on the grub file, re-generate the grub.cfg and the submenu was enabled once again.

So it seems that somehow the LTS Kernel is the one that won't allow me to make changes to the GRUB file.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#18 2015-05-13 19:27:35

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: GRUB won't save any change made

What is the content of /etc/grub.d/43_linux_proxy & /etc/grub.d/46_custom?


Jin, Jîyan, Azadî

Offline

#19 2015-05-13 19:47:11

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

43_linux_proxy:

 #!/bin/sh
#THIS IS A GRUB PROXY SCRIPT
'/etc/grub.d/proxifiedScripts/linux' | /etc/grub.d/bin/grubcfg_proxy "+'Arch Linux'~b$
-*
-#text
+'SUBMENU' as 'Opciones avanzadas para Arch Linux'{+'Opciones avanzadas para Arch Lin$
"

46_custom:

 #!/bin/sh
cat <<EOF
if [ -f  \${config_directory}/custom.cfg ]; then
  source \${config_directory}/custom.cfg
elif [ -z "\${config_directory}" -a -f  \$prefix/custom.cfg ]; then
  source \$prefix/custom.cfg;
fi
EOF

"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#20 2015-05-13 19:59:56

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: GRUB won't save any change made

Where did those files come from and why are they there?

Have you used GRUB-customizer [sic]?

If you move them to $HOME, does `grub-mkconfig` work as it should?


Jin, Jîyan, Azadî

Offline

#21 2015-05-14 01:44:34

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

I don't know where those files came from but as you said I used GRUB-customizer as a desperate measure to try to configure GRUB.

I moved both files to $home and 'grub-mkconfig' works fine.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#22 2015-05-14 02:01:16

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: GRUB won't save any change made

Actually grub-mkconfig said it 'done' but after I booted I dont hace any option on my grub so I can't access my system.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#23 2015-05-14 06:51:42

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: GRUB won't save any change made

You could try chrooting into your system & re-installing GRUB then.

I have never used GRUB-customizer [sic] so I know nothing about it but it is clear that it has b0rked your set up...

Last edited by Head_on_a_Stick (2015-05-14 06:51:57)


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB