Thursday, September 07, 2006

Cannot access websites

Today I cannot access websites like google, yahoo and lycos with firefox. However when I ping www.google.com, there is 0% packet loss. I did notice though that the website being pinged is www.l.google.com. (notice the extra 'l'?) So I entered this web address in firefox, and I can access google again. Strange, isn't it? The same with yahoo. Address entered is www.yahoo.com, but address being pinged is www.yahoo-ht2.akadns.net. And again, I can use yahoo by entering the second address in firefox.

Wednesday, September 06, 2006

Eject works only with root

Had a strange problem. Couldn't eject my Ipod. Got this error:

$ eject /mnt/ipod
$ eject: unable to open `/dev/ipod'

The same thing happened with my usb flash drive. I know, some people say that we don't have to eject a flash drive; umount will do. But ejecting a flash drive makes the LED light switch off. I like seeing that... hehe

Anyway, this has never happened before and I don't know why I suddenly cannot eject as a normal user. With root, I get this message:

$ eject -v /mnt/ipod
eject: device name is `/mnt/ipod'
eject: expanded name is `/mnt/ipod'
eject: `/mnt/ipod' is not mounted
eject: `/dev/ipod' can be mounted at `/mnt/ipod'
eject: `/dev/ipod' is not a multipartition device
eject: trying to eject `/dev/ipod' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/ipod' using SCSI commands
eject: SCSI eject succeeded

I solved the problem temporarily by doing chmod +s /usr/bin/eject

I read this in this bug website:

That's an eject bug because it opens for read-only.

From "strace eject -s /dev/sdb1":
open("/dev/sdb1", O_RDONLY|O_NONBLOCK) = 3

EDIT: I searched through my old posts, and found the post titled 'Ipod Works Under Gentoo' where I have already encountered this problem with eject! Why do I even note down these things if I'm not going to look through them first?!