LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-15-2019, 10:40 AM   #1
SoumyaMahunt
LQ Newbie
 
Registered: Apr 2018
Posts: 20

Rep: Reputation: Disabled
Exclamation Create boot entry for Tails in GRUB


I installed Tails on my hard disk, and then installed Ubuntu using the Tails partition as the EFI partition. Now I want to create GRUB entry to boot directly into Tails. So far I have comeup with something like this:

set root='(hd1,1)'
search --no-floppy --fs-uuid --set 4796-6AA0
set linux_gfx_mode=
export linux_gfx_mode
load_video
insmod syslinuxcfg
insmod cpuid
syslinux_configfile /efi/boot/syslinux.cfg

but this shows the Tails boot menu where i have to choose between Tails and Tails(Troubleshoot), I want to know if i can modify it to boot into Tails directly(without having to choose once again).
 
Old 07-15-2019, 03:03 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I donno about UEFI per se` but in default grub you can add a line(s) to have it boot last (one used last time).

Code:
[userx@arcomeo ~]$ cat /etc/default/grub
# GRUB boot loader configuration

GRUB_DEFAULT="saved"
# Uncomment to make GRUB remember the last selection. This requires to
# set 'GRUB_DEFAULT=saved' above.
GRUB_SAVEDEFAULT="true"

GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="ArcoLinux"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="audit=0"
...................
 
Old 07-15-2019, 08:29 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
you will have to take clues from your syslinux.cfg to make a grub menuentry it will be something like this

menuentry 'tail'
set root='(hd1,1)'(assuming tails boot files are on this parition)
linux /<directory/that kernel is in> <boot paramters found in your syslinux.config
initrd /<directory/that initrdfs.img is in>

without knowing what is in syslinux.cfg it is just a guessing game

Last edited by colorpurple21859; 07-15-2019 at 08:31 PM.
 
1 members found this post helpful.
Old 07-16-2019, 10:02 AM   #4
SoumyaMahunt
LQ Newbie
 
Registered: Apr 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by colorpurple21859 View Post
you will have to take clues from your syslinux.cfg to make a grub menuentry it will be something like this

menuentry 'tail'
set root='(hd1,1)'(assuming tails boot files are on this parition)
linux /<directory/that kernel is in> <boot paramters found in your syslinux.config
initrd /<directory/that initrdfs.img is in>

without knowing what is in syslinux.cfg it is just a guessing game
Adding the boot parameters directly helped, although they aren't in syslinux.cfg. Tails does a chainloading of multiple cfgs and the last one is live*.cfg. Copying the boot parameters from it worked.

Now boot entry for Tails:

set root='(hd1,1)'
search --no-floppy --fs-uuid --set=root 4796-6AA0
set linux_gfx_mode=
export linux_gfx_mode
load_video
insmod syslinuxcfg
insmod cpuid
linux /live/vmlinuz boot=live config nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 mds=full,nosmt union=aufs quiet sysappend 0x40000
initrd /live/initrd.img

and for Tails(failsafe)

set root='(hd1,1)'
search --no-floppy --fs-uuid --set=root 4796-6AA0
set linux_gfx_mode=
export linux_gfx_mode
load_video
insmod syslinuxcfg
insmod cpuid
linux /live/vmlinuz boot=live config nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 mds=full,nosmt union=aufs noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal sysappend 0x40000
initrd /live/initrd.img

Last edited by SoumyaMahunt; 07-16-2019 at 10:03 AM.
 
  


Reply

Tags
tails usb problem



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
Just starting in linux from windows 10. Have a tails USB version I'm running on my PC. Tails won't recognize or start using my A6100 Netgear Rhix59 Linux - Newbie 3 07-08-2019 03:48 AM
Tails Site is 'Port Scanning' Computers that download 'Tails.iso' !!! ??? SethJ Incognito 8 09-03-2016 02:55 AM
LXer: Tails 2.3 Anonymous Live CD Gets Tor Browser 5.5.5, Tails 2.4 Coming June 7 LXer Syndicated Linux News 0 04-27-2016 05:12 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
LXer: The Tails Project's The Amnesic Incognito Live System (Tails) LXer Syndicated Linux News 0 09-17-2011 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:00 PM.

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