[SOLVED] [ubuntu] how to input stuff from the boot screen?
Linux - DistributionsThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 ###
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.