Ubuntu :: Grub2 Waits For Keypress After Failed Boot?
Jan 6, 2010
Last week I installed minimal Ubuntu Karmic with XBMC live on my HTPC. I'm connecting to my fileserver thru a wireless interface and although that works like a charm most of the time, every once in a while the interface doesn't come up during boot and the PC 'hangs'.
I then press ctrl+alt+del and the pc reboots and the Grub2 boot menu appears, I suppose because the previous boot didn't go well. However, the boot menu doesn't have a timeout, I have to press <enter> to continue booting. My wireless USB-keyboard isn't working at that stage yet, so I'm unable to continue.
I have a directory that contains a bunch of sound directories containing WAV files.I want to make a script that plays one, waits 500ms, plays one, waits, etc.i tried cat `find . -name *.wav && sleep 1` > /dev/dsp.It plays them but with no delay between.
Dual boot PC, boot disk and WIN XP are on good disk, Ubuntu was installed on failed disk. (I prefer separate disks for each OS).
I know I will need to reinstall Ubuntu later, and of course, GRUB2 now crashes without the Ubuntu disk.
Confirm that the only thing I need to do when I get the new drive installed and partitioned is to boot my XP disk in Recovery Mode and type "fixmbr", (then reboot to confirm clean WIN operation on the existing disk) then install Ubuntu as normal on the new disk.
I am wondering if there is a way to manually trigger a file system check during boot by pressing/holding a key. Maybe there is already a keyboard shortcut built in to do this?I know that using tune2fs you can modify the number of boots (mounts) between file system checks, or even use "shutdown -rF" to reboot the system and force a file system checkAlso, I do not want to force the user to choose to run/skip the file system check during boot. For example, prompting the user with, "Do you want to run a file system check [y/n]?" each boot (or even each time the system thinks it should run a file system check),s not desirable
I decided to install Ubuntu on my desktop after the setup went well on my laptop and I liked the OS. I already had Windows 7 and Backtrack 9 installed on my HDD, so when I was in setup I took the 200gb partition for BT9 and formatted SDA5 to ext3 with "/" as the root. Then checked "format" and selected SDA5 from dropdown list and continued to install.Everything went smooth in the installation and I was prompted to reboot which I did assuming I would soon see a GRUB screen. Instead I got an error saying
and then the computer just freezes. I've tried to boot from CD but I just get "CD-ROM Boot Priority ...Boot Ready" and then after about 30 seconds it tries to boot from the HDD and I get the same error.I've read that I need to configure GRUB somehow but I have no idea how to do that and I can't boot anything from a CD because it just waits and then jumps to the HDD. I guess what i'm asking is if there is a way to configure GRUB from the BIOS menu or make it possible to be able to boot from a CD.
I have a very strange problem with Fedora 13 on my home PC. When booting it just hangs at random points in the boot process. When it happend the first time, I thought the PC probably is completed frozen, but then I discovered that hitting the return button got the boot process going on again, but just step by step. That means on every boot I have to keep hitting the return button until gnome starts up, that's very annoying. So for any reason the boot process seems to switch to interactive mode somehow...
I already removed the kernel boot options rhgb and quiet to see, where exactly this happens in the boot process. But as I said, it seems to be completely random. Sometimes it's when "Starting udev", sometimes, when setting up eth card, when starting atd, and so on. It's different every time.
By the way, a similar thing happens when shutting down. It can take up to half an hour until the PC really shuts down. But it's usually going faster if I just keep hitting return after issueing the shutdown command (which actually looks a bit dull). But the PC finally shuts down at some point. That's not the case when booting up. I thought, maybe there's some kind of timeout problem. But even waiting for two hours, the PC does not startup without keeping hammering the return button
i initilally installed ubuntu 9.10 then installed windows 7 ,then i recovered grub2 using livecd as told in the post [URL] i did "sudo update-grub" and got windows 7 menu entry but when i select that entry windows 7 does not load but the grub2 is reloaded again. i cant boot to windows 7.
Windows 7 have 100 mb partition "System Reserved" the grub2 points to that partition but still windows 7 not loaded.
sudo fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x3c3a81f5
I went through so many post but I haven't found the proper answer yet hope you have an Idea1. Grub2 saves only Linux OS as last selected no Windows OS2.It is possible to boot into a cdrom (drive)?
I just did a new install of Ubuntu 10.04 (64 bit) on a system with multiple older versions of Ubuntu already installed. There was a dpkg error during the install with no useful information provided, otherwise the install completed normally. When I rebooted, the old grub2 ran and presented my old boot menu. When I mounted the 10.04 partition to see what was there, I found that /boot/grub/ was empty and /boot/initrd.img was missing. The other boot files were present.
I recently got a netbook and setup as dual boot between win7 starter and 9.10 (64bit). Win 7 starter is not impressive so i want to nuke it and give the space all to my /USR partion. I am comfortable working with Gparted and assume that i can launch using my gparted live usb and delete the windows partion and then resize the /usr partion.
what changes do i need to make w/ Grub2? I would prefer not to see the Grub menu at all and have it load right the main kernel if possible. Also, if this is possible is there a way to get to the Grub menu during boot should i need to select a different kernel?
After installing karmic with Grub2 I am unable to boot into Archlinux partition. Grub2 has removed the last line of the Archlinux boot stanza! It used to read:-
[Code]....
Following the Grub2 tutorials I have tried editing /etc/grub.d/40_custom as follows:-
[Code]....
But no luck. Only way into Archlinux is to get into the edit shell and manually add the missing line and remove other stuff not needed. I have spent hours trying to resolve this issue and I am fairly p----d off
I have multiple windows open. I select one window, and press a key. This causes something to occur in said window. This keypress only works for the one window I have selected. I would like this keypress to work for all the windows open on my desktop, which total to 9.
Is there any way to map a shell script to run when you press a certain set of keys? For instance, I may want to execute the following by pressing CTRL+ALT+R (if that key combination is not already taken)
Code:
compiz --replace --loose-binding ccp
Or perhaps I want to open the System Monitor by pressing CTRL+ALT+DEL (a la Windows)
I was yesterday evening experimenting inserting a script into /boot/grub/grub.cfg. Well I broke grub.cfg and had to try to boot from a grub2 prompt.I have separate /boot and / partitions on /dev/sda1 and /dev/sda2 respectively.Working out the correct syntax for the boot to work was a little complicated, so I thought it would be useful to post the correct procedure here, in case anyone else has the same set up that I do (separate /boot and / partitions)At the grub prompt code:
grub> set prefix=(hd0,1)/grub grub> insmod linux grub> set root=(hd0,2)
We have implemented a Ubuntu with Squid (2.7) & Dansguardian, Webmin and the webmin modules for these services. Server was running fine for about 6 months then suddenly there are hundreds of TIME_WAIT's when using: Code: netstat -antup
This causes the clients to get this error on their browser: Code: commBind: Cannot bind socket FD 10 to *:0 (98) Address already in use Even 1 single client working will fill 3 pages of TIME_WAIT
Clients are Mac's bound to OD & AD (magic triangle). We reverted the vm image to a snapshot back when was working fine but problem remains. We created a server from scratch and same issue. We use ldap_auth to the active directory for authentication: Server is 2008 R2
I'm as big a fan of Linux as Linus Torvalds himself but it's things like this that help to keep Linux from becoming mainstream. I mean, how would I ever explain the need for the following procedure to a non-techie type, recent or prospective Ubuntu convert? The following is not a question, as I have finally resolved the issue but is more of a rant, I guess you could say. The reasons that I decided to post it are:
1) To hopefully help someone else experiencing this issue.
2) To point out the need for significant improvement in the area of editing partitions under Ubuntu Linux. 3) To vent my spleen.
I have a G15v1. After going through hoops and loops to get it working only to discover that you only needed to install g15daemon through the Ubuntu Software Center, I found myself with one big problem. I migrated from windows just now, and there, I had my macro keys(the extra ones) bound to CTRL+W, CTRL+T and to a simulated mouse-wheel scroll so I could navigate the web more easily. How would I go about doing that? I figured, if I used the System->Preferences->Keyboard Shortcuts thingy and bound my key, in my case XF86Launch5, to a command similar to "simulate keypress CTRL+W"(I know it's totally wrong, just to give you an idea), I might be able to get it working again. Only problem is, I can't find anything like that. Any of you has any clue about it? I googled but I only find C++/Java/coding related results, which are not exactly what I need to do.
I'm on Fedora 14, and OpenOffice 3.3.0 takes a long time to open (about 30 seconds, sometimes less). It isn't a CPU or disk performance issue, it's just simply a very long delay before the program opens. It appears to be a frivolous network connection timing out. According to Wireshark, it tries to look up:
dulcimer.(none) which fails, after which it tries to look up: dulcimer.(none).mylitestream.com (dulcimer is my hostname, and LiteStream is my ISP) Is there a way to work around this bug in OpenOffice?
Firefox can't detect any keypresses from the programs I make. I use Macromedia Flash 8. Make a text box and give it the instance name"txt_test" add this actionscript code.
I've set up a triple boot system (Ubuntu Karmic, Windows Vista and OSX86 -- a patched OS X which works on a PC) on a Dell 9200 (C2D 2.13 GHz, 4GB RAM, nVidia G210). I sue Grub2 as the bootloader and update-grub picks up OS X and it boots without any problem.
However, although when booting OS X using its own Darwin bootloader, I can apply the boot option "Graphics Mode"="1680x1050x32" to ensure that I get the screen resolution that I want, when OS X boots from Grub2, the only resolution available is 1024x768 which is disappointing. I have tried adding gfxmode=1650x1050x32 to the OS X section of /boot/grub/grub.cfg in Ubuntu but this does nothing.
I'm witting a piece of code that needs to read key presses. However I cannot use them as stream, but rather need discrete reads. The code is to simulate an io board interface. So When I press say "d" I need to read it in instantly, not wait for return. I've tried sdl, but no luck (I'm reading in a thread and it causes some problems) I'm using linux so can't use conio.h functions, I've tired gatch from cureses but this still waits for return.So in C/c++ is there a way I can read instant key presses.
It then says an automatic fsck failed and a manual fsck must be performed, then the system restarted. I have done a manual fsck and it did nothing. I booted up the system with knoppix and did it, nothing.
I have a problem with a simple client/server socket program. the connection is done through 2 connections a udp connection and a tcp connection. the flow is that the client sends a udp packet to the server and the server returns it through a tcp connection. this is done in a loop. my code works fine on an ubuntu server, when I try to use it on redhat it sometimes get stuck. the server is stuck on recvfrom and the client waits on the recv. if i add a delay in the server or run the client through strace everything works fine.
my fedora 10 booting stops at starting udev for 5-6 minutes.when i pressed 'i' for interactive , i see ata3(i think its my DVD-R/W) responding too slow. so, booting stops there till it responds.o/p of
OS: Centos 5.4 VNC Viewer Free Edition 4.1.2 for X
Switching between two instances of VNC viewer in full-screen mode takes three key presses and two mouse clicks. How can the viewer be configured to pass a special key combination to the host operating system instead of the remote OS, so it's possible to switch between full-screen viewers in one key press?
e.g. With the default configuration, if I put the viewers in adjascent workspaces, then the sequence to switch is: F8 MouseClick Ctrl+Alt+Left F8 MouseClick If the key combination Ctrl+Alt+Left was passed to the host then it would be possible to switch workspaces (and therefore viewers) in one key press. When working on multiple remote machines, both physical and virtual, it's often necessary to switch between them frequently. I must switch over 100 times some days. Simplifying the key sequence would be both quicker and more intuitive.
Mu understanding of RFC 1122 (Fast Retransmit) is that upon receipt of the 3rd duplicate ACK, the sender should react by starting to retransmit the lost packets.
In my case, looking at the Wireshark trace, I see the sender receiving hundreds of DUP ACKS from the receiver and doing nothing about it until 200 ms pass by. Only then does the sender finally starts to retransmit. That's killing performance.
The sender is running Red Hat 5.3 (which is Linux 2.6.18). Is this an indication that the sender does not support Fast Retransmit? Is there a config param that I need to turn on?
I've been given one of these ubiquitous usb-sleep buttons which is basically a supersimple usb-keyboard. It's a big button that sends a SLEEP keypress to the computer when you slam it. But that is pretty boring. I'd love to remap it to do something more fun but I can't figure out how to bind to only the sleep press from the button and not from my ordinary keyboard.
The button identifies as
Bus 001 Device 035: ID 1130:600d Tenx Technology, Inc.
I'd like to know if there's either
a way of mapping a key from a specific keyboard to an action OR a way of remapping the sleep key from a specific keyboard to a new key-code or something like that.
I ran a yum update this morning on my Fedora 10 box (i386), which updated the 'nfs-utils' package from 1.1.4-4.fc10 to 1.1.4-6.fc10. Before the update I was able to connect to the fedora NFS exports just fine from my Macbook Pro running latest version of Leopard on a simple home network. After the update, when I try to connect to the NFS export it waits for a while at leopard's "Connecting to Server" dialog box, and after about a minute I get a message saying "Could not connect to the server because the name or password is not correct" (though my UID's are the same on both systems). My /etc/exports and /etc/sysconfig/nfs files were unchanged by the update. I tried restarting the nfs services as well as shutting down iptables and setting SELinux to permissive, etc. with no success.
I get the following in /var/log/messages (192.168.1.102 is the address of my macbook):
I was able to download the RPM for the older version of nfs-utils and then do a 'yum localinstall' to revert to the older version. This fixed my issues completely and my setup works as it did before. However I am curious to know why the latest version of nfs-utils breaks my setup, and whether it is a problem with my setup or if I should just wait for the next version to come out and see if the same thing happens.
Here is my /etc/exports file. If I understand this correctly it should allow connections from anyone with an IP address on my local network.