Re: bash q

2013-04-24 Thread Constantine Shulyupin
The log form is more readable and self documented. I prefer to use long form in scripts and short in command line. Verbose mode: set -o verbose set -v bash -v script.sh http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html On Wed, Apr 24, 2013 at 10:19 PM, Nadav Har'El wrote: > On Mon,

Re: bash q

2013-04-24 Thread Nadav Har'El
On Mon, Apr 08, 2013, Constantine Shulyupin wrote about "Re: bash q": > For debugging bash scripts I use > > set -o xtrace # long form of -x > set -o pipefail > set -o errexit The last one also has a short form: "set -e". You might also want to look at "set -v" - it also lists the commands it ru

Re: Output to block device in linux kernel

2013-04-24 Thread Baruch Even
On Wed, Apr 24, 2013 at 7:33 PM, Elazar Leibovich wrote: > I'm trying to understand in more depth the handling of physical harddrive > io in the linux kernel (from pdflush to the actual filesystem driver). > > When reading about the matter, I found out I'm missing some information at > a more bas

Re: Output to block device in linux kernel

2013-04-24 Thread guy keren
1. the seek occures whenever you perform random I/O, or when you "jump" between different areas of the disk when doing sequential I/O (i.e. you read from sector X to sector X+1000, and then you want to read from sector Z to sector Z+1000 - this "switch" will require a seek). 2. experience sh

Output to block device in linux kernel

2013-04-24 Thread Elazar Leibovich
I'm trying to understand in more depth the handling of physical harddrive io in the linux kernel (from pdflush to the actual filesystem driver). When reading about the matter, I found out I'm missing some information at a more basic level. How a regular hard drive behaves? How is it implemented i

Re: power failure - no keyboard in grub menu

2013-04-24 Thread Gabor Szabo
Thanks for all the responses. In the BIOS in the "Integrted Peripherials" menu I found an entry called "USB Keyboard function" which was "Disabled". I enabled it and rebooted. This did the trick and now I am a happy user again :) I have no idea if that was enabled or disabled before the power fai

Re: power failure - no keyboard in grub menu

2013-04-24 Thread Amichai Rotman
Another trick: 1. Turn off the computer. 2. Disconnect the power cable. 3. Press the power button a few times to discharge any built up electricity. 4. Disconnect the keyboard. 5. Connect the power cable. 6. Turn on the PC and wait until it passes the BIOS screens and into

Re: power failure - no keyboard in grub menu

2013-04-24 Thread Omer Zak
Missing information/Things to try: - How is the keyboard connected to the PC - USB, legacy, builtin(as in a laptop)? - If it is a laptop, did you try to connect another keyboard via USB? - What happens when you try to boot from a LiveCD or DiskOnKey? (Note to myself: is it possible to boot a Secure

Re: power failure - no keyboard in grub menu

2013-04-24 Thread shimi
On Wed, Apr 24, 2013 at 10:03 AM, Gabor Szabo wrote: > hi > > after a power failure when I try to boot my Ubuntu 12.04 machine it > displays the Grub menu but it > does not react to any keyboard combination I tried. > > > If I press Del earlier, it does get in the BIOS and there I can use > the k

power failure - no keyboard in grub menu

2013-04-24 Thread Gabor Szabo
hi after a power failure when I try to boot my Ubuntu 12.04 machine it displays the Grub menu but it does not react to any keyboard combination I tried. If I press Del earlier, it does get in the BIOS and there I can use the keyboard, so it does not seem to be a hardware issue, but in the GRUB m