LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-12-2016, 08:03 AM   #1
Conch
LQ Newbie
 
Registered: Mar 2014
Location: Sweden.
Distribution: Linux Mint && Kali RR.
Posts: 2

Rep: Reputation: 0
Post Pressing 'e' on Grub to pass a command boots my Debian system, how to make it permanent?


Hello LQ.
I'm having some issues with Debian Testing 'Stretch'.
This only happened when I installed a 'PolicyKit' to get an application running.
I have Gnome3 and XFCE installed, but currently only use XFCE due to low RAM - for now.
Since I don't have Plymouth installed, I get past Grub and Disk check then a black screen, I've done some research and found a temporary fix, by adding "video=LVDS-1:d" to the command list with 'e' on Grub it boots and lets me log in, I'm not sure why? Something to do with Xorg?

I'm looking to add this command into a file, so it's permanent on Grub, I looked in /etc/default/grub but adding the command in there does nothing.
Please help me.

Kind regards,
Conch.
 
Old 11-12-2016, 08:06 AM   #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
40 custom is where you put custom menuitem stuff.
located
Code:
userx@voided1.what~>> ls /etc/grub.d
00_header  10_linux  20_linux_xen  30_os-prober  40_custom  41_custom  README
inside file can look like this
Code:
userx@voided1.what~>> cat /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry 'Slackware Linux (Slackware 14.2) (on /dev/sda1)' --class slackware --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-fa98942f-4219-4f0c-a9b1-0c3e2eda77e8' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  fa98942f-4219-4f0c-a9b1-0c3e2eda77e8
	else
	  search --no-floppy --fs-uuid --set=root fa98942f-4219-4f0c-a9b1-0c3e2eda77e8
	fi
	linux /boot/vmlinuz-huge-4.4.23 root=/dev/sda1 ro
}
 
1 members found this post helpful.
Old 11-12-2016, 08:18 AM   #3
Conch
LQ Newbie
 
Registered: Mar 2014
Location: Sweden.
Distribution: Linux Mint && Kali RR.
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you BW-userx!

Now I just need to figure out why the 'PolicyKit' is giving me a black screen, although it could be many other problems since I did a whole system upgrade and dist-upgrade as well, and I'm not sure how to output debug info on the screen, and the keyboard is non functioning so I can't drop to a login with Alt+F2
 
Old 11-12-2016, 08:57 AM   #4
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
Quote:
Originally Posted by Conch View Post
Thank you BW-userx!

Now I just need to figure out why the 'PolicyKit' is giving me a black screen, although it could be many other problems since I did a whole system upgrade and dist-upgrade as well, and I'm not sure how to output debug info on the screen, and the keyboard is non functioning so I can't drop to a login with Alt+F2
I have not played with policyKit in a long time. you have to look through it and look for user permissions user or root, hold on let me look into my archive. This is only an example taken from when I ran Debian. This was for automounting


Code:
#[Allow Automount]
#Identity=unix-group:plugdev
#Action=org.freedesktop.udisks2.filesystem-mount
#ResultAny=yes
#ResultInactive=yes
#ResultActive=yes

[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Eject]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.eject-media*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Mounting of fstab]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-fstab*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
you have to find the right pkla file or create your own in the proper directory. Sometimes you will even have to create the proper named directory first then put in it the properly named file with whatever needs to be inside it to get it to work.

search linux policykit and perhaps add words that describe what you're wanting to do with it.

NO KEYBOARD -
that maybe something else, kernel related.

Last edited by BW-userx; 11-12-2016 at 08:59 AM.
 
1 members found this post helpful.
Old 11-12-2016, 09:38 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Conch View Post
I'm having some issues with Debian Testing 'Stretch'.
it's called testing for a reason.
if you're not familiar with the debian updating process (from a cursory glance at your writing i'd say something went more than just a little wrong), and if you are not aware of the implications behind that 'testing', you shouldn't use it.
 
Old 11-12-2016, 09:47 AM   #6
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
The Debian way to do this would be to run dpkg-reconfigure

Code:
dpkg-reconfigure grub-efi
or grub-pc for older BIOS based PCs.

Add your kernel parameter when it prompts for the "Linux command line".

That will make sure it gets permanently added in the right place, and it will also update the grub configuration file for you.
 
1 members found this post helpful.
  


Reply


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
[SOLVED] How can I make a Raspbian shared HDD a permanent mount on Debian? nebelfrau Linux - Newbie 7 03-26-2014 11:06 AM
Make a change in Grub permanent? iwtbf Linux - Newbie 6 01-23-2010 08:19 AM
Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue wombat53 Linux - Software 9 09-04-2009 06:20 AM
grub can find grub.conf, how do i make it permanent? lankydenny Linux - Newbie 8 06-13-2006 06:47 PM
debian - make routes permanent codeape Debian 2 02-14-2004 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 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