Thursday, 1 December 2011

grub-install and update-grub ?

grub-install and update-grub ?

I have partition my harddrive into about 15 different partitions using an extended partition.

I installed many different linux distro's on this harddrive each of the 15 partitions has one os installed on it. I am able to boot into any one of them
At bootup. (i.e grubs menu displays them all and I am able to select any one as I wanted)

My question is each partition has a /boot/grub directory with a menu.lst file
Which file does update-grub write. And if I did a grub-install /dev/sda on that drive where would it look for the menu.lst (i.e in sda1 ,5,6,7,8,...)???

Basically I want to beable to tell grub to boot a specific file on a specific partition. (i.e add it to the menu.lst with out effecting any of the other menu options.....)

What?! A linux foundation Visa Card???

What?! A linux foundation Visa Card???

My wife just found this and well, I was surprised I didn't already know about it. If anyone's looking for a new credit card, who knows, maybe a possibility. Not advertising, just thought it was a cool idea. Unfortunately I have no need/want for a credit card right now but it's being bookmarked for potential future needs.


Linux Credit Card | The Linux Foundation

Is it possible to monitor NTP through SNMP in Linux

Is it possible to monitor NTP through SNMP in Linux

Is it possible to monitor the NTP drift value ( I mean measuring the time difference between the NTP server and the server that I am trying to monitor) using SNMP.

Appreciate any help in this regard.

FC 16 Hang After

FC 16 Hang After

Hi All,

I just installed Fedora Core 16, it s a fantastic look.

but i found a problem every time i leave my computer for more than 5 minutes,
the system stop responding when i back to my computer. the solution i made is to press shutdown button on my cpu.

i have tried using gnome and Kde desktop but the problem still come.

can you help me for this.


thank you so much.

grep has no effect - does not grep anything in this for loop

grep has no effect - does not grep anything in this for loop

#!/bin/bash

for ip in $(seq 200 255); do
nc -vvz 192.168.15.$ip 25 |grep "open" &
done



Thats the code I have, I basically just want to find all the smtp servers in the range, I'm successfully doing it but want to see only the lines that have the word 'open' in it.

When I run the above script, it just shoots out everything as if the grep wasnt there. Not sure what is going on, I'm sure grep probably isn't broken..

partition problem

partition problem

I accidently zeroed out the first sector of the sda drive I had
was going to wipe grub but forgot about the partition table needing to stay!

I had an extended partition and 15 logical partitions in the drive (/dev/sda)
Now my drive shows up as unallocated.

I want to beable to recover this drive.
I have tried part and gpart -W /dev/sda /dev/sda
But it didn't help (it does show the extended partition but when I tried to recover it did not work).

I am sure that nothing else other then the first sector was damaged/written to before I use these tools.

I am in the process of trying testdisk and searching deep.
The extended and all it's logical drives are ext4.

If these tools don't work is their any way to manual search for the beginng of an ext4 partition. For example ntfs filesystems you can
dd if=/dev/sdx/ | grep -a "NTFS" because each ntfs drive starts with the label NTFS on it's first partition sector (begining of filesystem).

Not sure if their is a delimiter for ext2,3,4
Also not sure if these software utilities like part , gpart , testdisk ,..etc support recovering ext4? (I know they say ext2/3 but 4?)

Thanks for any help
At the very least I would like to recover the 10th partition in the extended partition file /var/lib/tomcat6/webapps

StartX fails on Dell Precision M6600 AMD Radeon HD 9600 series card

StartX fails on Dell Precision M6600 AMD Radeon HD 9600 series card

I can't get startx to work on my laptop. below is what it is telling me.

Code:

(II) [KMS] drm report modesetting isn't supported.
(EE) RADEON(0): Chipset: "AMD Radeon HD 6900 Series" (ChipID = 0x6720) requires KMS
(EE) Screens(s) found, but none have a usable configuration.

my laptop has a 17 inch screen.. Any ideas?