Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-04-2017, 09:47 AM   #61
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195

Original Poster
Rep: Reputation: Disabled

It didn't work. I did update-grub /dev/sda and it seemed to work but I still get the boot options that don't work. What if I copied the grub.cfg file to /dev/sda after editing the boot options? I know there has to be a way to do this.
Old 05-04-2017, 10:15 PM   #62
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
If you put custom grub menu items into /etc/grub.d/40_custom it will get included when you run update-grub. Depending on your grub version or distro grub.cfg might default to /dev/ names that are not always reliable. Using LABELS or UUIDs tends to be more reliable IMO, since /dev/ names shift when you start adding more devices on more types of buses.

$ sudo blkid

file: /etc/fstab
/dev/sda1                                 / ext4 defaults,noatime 0 1
LABEL=11111111                            / ext4 defaults,noatime 0 1
UUID=11111111-1111-1111-1111-111111111111 / ext4 defaults,noatime 0 1
Just different ways to say the same thing.

file: /etc/grub.d/40_custom
exec tail -n +3 $0
# previous two lines from debian's default / original version of the file.
        menuentry '40_custom, Linux 3.16.0-4-amd64' {
                insmod part_msdos
                insmod ext2
                linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=11111111-1111-1111-1111-111111111111
                initrd /boot/initrd.img-3.16.0-4-amd64
Although I haven't tested that entry. It's basically cut and past and simplified from what update-grub creates. All the things you would enter from grubs command line mode to boot the kernel.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kubuntu Won't Boot on USB Hard Drive Tyro65 Linux - Newbie 3 05-15-2011 09:31 AM
Kubuntu 10.10 Dual Boot W/ Win 7 Pro: No Option To Boot Kubuntu FrostBot Ubuntu 2 01-26-2011 09:17 PM
Dual Boot drive share with kubuntu/win2000 nardz Linux - Newbie 10 02-27-2007 09:18 PM
Drive Sharing on a dual boot (kubuntu/win2000) nardz Ubuntu 2 02-27-2007 10:50 AM
when fedora machine is connected to the internet via network windiws machines cannot purbeck Linux - Networking 1 01-24-2004 08:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration