Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Reinstall Linux Grub Bootloader After Windows Wipes it Out

If you run a dual-boot system with Linux and Windows, this has happened to you. You had to do your monthly reinstall of Windows, and now you don’t see the linux bootloader anymore, so you can’t boot into Ubuntu, Fedor or whatever flavor of linux you prefer.
Here’s the quick and easy way to re-enable Grub.
1) Boot with a Linux LiveCD
2) Open a Terminal and type in the following commands, noting that the first 2 commands will acquire permission to configure grub and put you into the grub “prompt”, and the next 3 commands will be executed there. Also note that hd0,0 implies the first hard drive and the first partition on that drive, which is where you probably installed grub to during installation. If not, then adjust accordingly.To do this easily, go “Computer Icon” on your desktop of “fedora” for example and count drives from 0 until reach the drive where installed grub.

Is there is a way to call assembly instructions from perl on Linux?!!!

I wonder if there is a way to call assembly instructions from Perl on Linux
like calling assembly from c or c++.
I put this question on yahoo answers and I got two "NO" answers.
I know that the first question will jump to your mind is "Why the hell you want to do this?!!".
OK, here is the answer. Suppose you succeeded to get a non root Linux shell and unfortunately
there is no c or c++ compiler installed but luckily Perl is available. I think it would be very helpful if
you could write assembly in Perl !!!

I found this code which is very close of what we'r talking about.
This code work well on windows and of course doesn't work at all on Linux.
This is because it depends on win32 API.