LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-03-2010, 09:38 PM   #1
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
[ubuntu] how to input stuff from the boot screen?


Hi,

I just installed truecrypt and I think it's a great encryption tool, so I encrypted everything (except a seperate /boot partition) and added a few lines to read my password in during boot time.

The problem is, I can't type anything during boot time, so the whole system is waiting for my password, but I can't type anything, what I type doesn't even echo to the screen. This is when initrd is trying to mount the root partition, right before that. But initrd will not let me type anything! so the whole system hangs at "enter password".

So I am now kicked out of my own system because of this password prompt. Of course I could remove with a live cd, but I do want to figure out how I could make this work, i'm sure i'm not the first one to think of this.



thank you,
rabbit2345
 
Old 09-04-2010, 10:42 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
add a suitable boot-time kernel option

or just remove splash quiet splash
 
Old 09-04-2010, 10:10 PM   #3
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Original Poster
Rep: Reputation: 41
What do you mean by boot-time kernel option? Like a kernel argument? What would I put?

And I already removed quiet splash from my config thing, and I still can't type anything, heres my grub.cfg:

Code:
##useless stuff like themes and crap
##skip to menu entry

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set 1a06f2b7-6eec-41ae-b5ad-dd31de449f21
	linux	/boot/vmlinuz-2.6.32-24-generic root=UUID=1a06f2b7-6eec-41ae-b5ad-dd31de449f21 ro pci=irqroute irqpoll pci=noacpi noacpi acpi=off 
	initrd	/boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set 1a06f2b7-6eec-41ae-b5ad-dd31de449f21
	echo	'Loading Linux 2.6.32-24-generic ...'
	linux	/boot/vmlinuz-2.6.32-24-generic root=UUID=1a06f2b7-6eec-41ae-b5ad-dd31de449f21 ro single pci=irqroute irqpoll pci=noacpi noacpi acpi=off
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod ext2
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set 1a06f2b7-6eec-41ae-b5ad-dd31de449f21
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod ext2
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set 1a06f2b7-6eec-41ae-b5ad-dd31de449f21
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
	insmod ntfs
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 5ea8e8aaa8e881bf
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###


thanks,
rabbit2345
 
Old 07-11-2011, 09:47 AM   #4
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Original Poster
Rep: Reputation: 41
Hi,

I realize this thread is a bit old, but I did find a solution. So I removed the password before, but I found out the boot splash is controlled by plymouth, so it was as simple as plymouth ask-for-password. Just for anyone potentially reading this. Again, sorry for bumping this old thread.


thanks,
rabbit2345
 
  


Reply



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
Ubuntu 10.04 - black screen on boot giammy Ubuntu 8 05-06-2010 07:09 AM
How to scan user's input and output some stuff to the console at the same time? whepin Programming 4 06-05-2009 03:18 AM
how to change boot screen,splash screen,login themes while custmzing ubuntu cd project_sap Linux - Newbie 1 04-07-2008 07:12 AM
ubuntu boot screen jahanzeb1982 Linux - Newbie 2 03-19-2008 04:14 AM
Booting CentOS 5, logo screen appears, stuff initializes, then screen goes black ctman Linux - Newbie 6 09-22-2007 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

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