I have had this issue before, solved it, and had it again.
Let’s say you plug in a USB drive into a Linux machine, and try to access it (mount it, partition it with fdisk/parted, or format it), and you get the error
Error opening /dev/sda: No medium found Naturally the first thing you will do is ensure that it appeared when you plugged it in, so you run ‘dmesg’ and get:
Read Error opening /dev/sda: No medium foundMy first trip to Kathmandu is now over, so there are some lessons learned I should scribe. Some of these are obvious rules I usually abide by whenever travelling, and some I simply forgot in my (very) impromptu trip to Nepal.
When agreeing on a price, make 100% sure the other person states the price back to you. I thought a price had been agreed to when the other person responded “ok ok, you are a lucky man”, but this does not count. As they say, reconfirm, reconfirm, reconfirm. When arriving at the airport, make sure you have small bills, too. I had 3x 100RS, 1x 10RS, and then a few 500RS. The price I negotiated was 440RS, and it would have been nice to have paid the exact amount. During my visit, …
Read Lessons Learned from KathmanduNow that my Europe trip has ended, I need to leave a note of things I wish I had done better, both travel-wise, and the stuff I brought along.
I like to travel light, and find it a little comical when I see people struggling with giant 70L backpacks; I always do carry-on, no matter for a two week trip, or two months. (This means my packs have to weigh less than 7KG). Even in winter it is possible to pack light. The trick seems to be only packing what one will use regularly, with no duplicates, of appropriate size, and hopefully reusable for other purposes. Don’t pack anything you would be gutted if it broke.
Read Lessons Learned for Lightweight Travel to EuropeRecently I tried editing my Cisco’s ACL at home on the train. It went something like this:
I logged in I started updating the ACL I hit a blackspot in my 3g coverage My command stops at “router(config)#access-” I get an alert saying my home internet was down Although it is simple enough to just ask her to “flip the switch on the black box”, I still don’t like doing it. Plus, if she’s not home, I’m stuck. This accident immediately reminded me of one of a trait of the ‘reload’ command: it can be scheduled.
Read Reload a Cisco Router WIthout WorryI’m not impressed too often with much software, especially the closed source kind. I find a leaning preference to all things FOSS. If I had a million dollars, I’d likely spend all day contributing to all the projects I wish I had time to contribute to. Regardless, there are a select few closed-source products that I believe are truly excellent. I mean, the type of software where you aren’t asking “I wish this could do this” and start asking “I wonder what else this can do.”
Read Beginning Scripting ESXiI found VMWare Server to have very slow I/O, and sought to improve it. Below are a list of tests I performed, the change, and the results.
### Host OS ### /dev/sdb1: Timing buffered disk reads: 220 MB in 3.05 seconds = 72.17 MB/sec kelvin@gorilla:~$ sudo hdparm -t /dev/sdb1 /dev/sdb1: Timing buffered disk reads: 266 MB in 3.01 seconds = 88.33 MB/sec kelvin@gorilla:~$ sudo hdparm -t /dev/sdb1 /dev/sdb1: Timing buffered disk reads: 310 MB in 3.01 seconds = 102.99 MB/sec ### Before Changes ### /dev/mapper/openfiler-data: Timing buffered disk reads: 8 MB in 3.36 seconds = 2.38 MB/sec [root@files etc]# hdparm -t /dev/mapper/openfiler-data /dev/mapper/openfiler-data: Timing buffered disk reads: 24 MB in 3.63 seconds …
Read Speeding Up VMWare ServerThis will be my last post from Taiwan, and I’m placing it in my tech section. Shortly I will be flying to Hong Kong, and then traveling into China. I’m not bringing my laptop with me. I’m always a little wary of using public computers, especially in many of the poorly run internet cafes. Often the logged in user is the administrator, and we all know the computers are obviously crawling with worms and keyloggers. What can I do?
Read My Portable Travel StickI generally like Firefox, and generally like Google. But having Google suggest enabled when I search for things is annoying, at least on my rather small laptop screen. Mostly it is because my internet right now is pretty average, so I try to cut down on any extra traffic. Anyhow, I didn’t even both Googling how to do this:
Type in ‘about:config’ into your address bar and type ‘search’ in the top filter bar. Look about half-way down for this:
Read Turn Off Google Suggest in FirefoxLogs spiraling crazy, we run out of disk space all the time. A nifty trick to find where the disk went is to issue:
du -cks * |sort -rn |head -11 This returns where the disk usage is, and makes finding the bloated log a lot easier.
Read Where the heck is my DiskspaceHere’s a tip for Firefox. An extension called BugMeNot enables you to right click on “general” forms and say “Login with BugMeNot.” Firefox will call the BugMeNot extension which looks up in an external database login information. For instance, www.nytimes.com requires a login, which is a great place to test it out.
http://extensionroom.mozdev.org/more-info/bugmenot
Read Firefox + BugMeNot