LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Problem editing grub.cfg (https://www.linuxquestions.org/questions/linux-mint-84/problem-editing-grub-cfg-4175431607/)

Vocay2 10-11-2012 01:38 AM

Problem editing grub.cfg
 
I I am moving to Linux Mint from Ubuntu. (Probably just one of thousands).
I want to edit the grub.cfg file. You know, the one that says, "do not edit this file".
With Ubuntu, I simply opened a terminal, typed in
Code:

gksudo nautilus
, navigated to the grub.cfg file and edited it.
But now, with Linux Mint, I type in gksudo nautilus, and a window opens with the desktop folder in it. I select file system, and boot folder, then select the grub folder. I open grub.cfg and edit the sections I want but cannot save it. I get the following outputs in the terminal:

Quote:

$ gksudo nautilus

(pluma:2316): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.4P19LW': No such file or directory

(pluma:2316): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(pluma:2316): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.I4KULW': No such file or directory

(pluma:2316): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(pluma:2316): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.OMBZLW': No such file or directory

(pluma:2316): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(nautilus:2289): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.6QLWLW': No such file or directory

(nautilus:2289): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
I could use a little help here.
Thanks

acid_kewpie 10-11-2012 02:43 AM

This is just GTK noise. Don't do this. Learn to edit files properly in a console. stop using noddy junk like nautilus through hacks.

sudo vi /boot/grub/grub.conf

etc.

eSelix 10-11-2012 04:33 AM

"Do not edit this file" means that your changes will be lost after some update. This file is created automatically from files in /etc/grub.d and these files should be modified or configuration file /etc/default/grub.

m.a.l.'s pa 10-11-2012 04:57 AM

Quote:

Originally Posted by eSelix (Post 4802816)
"Do not edit this file" means that your changes will be lost after some update. This file is created automatically from files in /etc/grub.d and these files should be modified or configuration file /etc/default/grub.

+1

As for the error messages, try doing a web search using "Failed to create file '/root/.local/share/recently-used.xbel"; it seems that you can create the file /root/.local/share/recently-used.xbel to get rid of those error messages:

Code:

su
mkdir -p /root/.local/share/
touch /root/.local/share/recently-used.xbel

In your case (in Linux Mint), try sudo followed by those commands.

Vocay2 10-11-2012 06:26 AM

I appreciate the advice. Thank you very much. I'll post back when I get some results.


All times are GMT -5. The time now is 07:29 PM.