Should you keep unionfs on your Eee PC?
May 10, 2008
Introduction
When I announced to the other Ubuntu Forums staff members I was getting an Eee PC and planning to stick with Xandros (as opposed to installing Ubuntu on it), one of the first pieces of advice I got was to remove unionfs from the Eee to free up space.
What’s the deal with unionfs anyway?
Just a quick primer on unionfs (as well as I can understand it): one of the great features the Eee has is the ability to restore factory settings with the press of a couple of buttons at bootup (tap F9 quickly and then select the restore option from the menu). One person made a YouTube video of the process and clocked the restore at two minutes. I did the restore myself and it took about ten seconds (not kidding).
This works because the Eee has two major hard drive partitions (and two random smaller partitions at the end—I don’t know what those are for). The first is mounted at boot as read-only and contains the factory settings. The second is mounted as read-write and is the user partition you modify after you start using the Eee. While having those two partitions makes restoring (in case you mess up something) easy and quick, it also sucks up a lot of hard drive space on a drive that is already pretty small (4 GB on the 701 version).
My experience with unionfs and reasons for removing it
Even though the advice I got turned out to be good advice, at first I was hesitant to remove unionfs for two reasons:
- I knew I’d be tweaking Xandros a lot and wanted an easy way to restore the default installation in case I messed things up.
- I didn’t have an external DVD-ROM drive to use for the restore DVD that came with the Eee, and I was intimidated by the tutorials about making USBs into bootable live “CDs.”
Well, after a lot of tweaks, I did manage to mess up the Eee badly enough that I could fix it by undoing all the tweaks, but I was glad to have the option to quickly restore it. And, more importantly—too cheap to buy an external DVD-ROM drive—I rolled up my sleeves and actually followed a tutorial on making a USB device into a live “CD.” It wasn’t as difficult as I thought it would be.
So, with the ability to back up my installation (I used the dd command to back up the entire Eee PC hard drive to a .img file on an external hard drive), I had fewer qualms about removing unionfs. I also realized through regular use with unionfs that a little less than 2 GB is not a lot to work with after you have applications installed. I don’t want to store my entire music and photo collections on the Eee, but I’d like to have some selection available there.
The removal process
Emboldened by how much easier the make-a-USB-live-”CD” process was, I went ahead and tried the Removing UnionFS/aufs tutorial on the EeeUser Wiki, and the process could have been a lot smoother. I basically ended up following the instructions, messing everything up, and then having to restore my Xandros .img with dd and then redo the instructions again.
If you’re planning to follow the instructions, here are a few things to keep in mind:
- You do not need to enable (i.e., add as a permanent boot option) single-user mode or recovery mode on the Eee, but it’s probably a good idea to know how to make it available for one-time use.
- If you have an easy way to back up the Eee (the dd command, for example, or an external DVD-ROM drive with the Eee PC DVD), you can simplify the process by using a live CD (or live “CD” USB stick) to make all the changes to /dev/sda1. You should be familiar with mounting partitions, but it’ll save you the trouble of going into recovery mode and using vi and all that. You also won’t have to constantly reboot and test things (again, you should have backed everything up first; otherwise, testing is a good thing).
- There are instructions in the middle of the page about growing the /dev/sda1 partition using GParted, but then there is a warning at the bottom of the page about how using GParted won’t work and how you should use fdisk and some other command-line options instead to merge partitions. Please heed this bottom-of-the-page warning. I tried to grow the /dev/sda1 partition in GParted to fill the space and got an error message and the /dev/sda1 partition then appeared to fill all 3.7 GB but was also almost completely full. When I rebooted into Xandros, the drive was reported as being only 2 GB large and almost full. If you want the non-unionfs-ed partition to fill the whole drive, follow the instructions about using the command-line to do it.
- The other thing I learned is that the commands given seem counterintuitive to the uninitiated. To expand the first partition to fill the space, they actually have you delete all the partitions and then create a new partition. My intuition was telling me, “Hey, this is wrong! I don’t want to delete the partition. I just want to expand it.” But if you follow the instructions and delete all the partitions and recreate a new one, it actually has the same effect as expanding the first partition. Don’t ask me how that works, but it does. You backed everything up anyway, right? There should be nothing to lose.
Conclusion
My advice to owners of any Eee PC that has a 4 GB hard drive or smaller is to find a way to back up and/or restore your Xandros installation and then get rid of unionfs as quickly as possible in order to reclaim hard drive space. The quick restore tool is fun and amazing, but it takes up too much space. I’m so glad I now have 1.8 GB of free space on my Eee instead of 400 MB.
Back to Xandros with tail between my legs
May 8, 2008
Well, my enthusiasm for Ubuntu was a bit hasty, I guess. Everything was good for a while, but then I saw the extent to which things weren’t working. I though the microphone and video in Skype were working, but they weren’t, and the boot time was just too long (and suspend didn’t work). Worse yet, the sound controls are not integrated. The volume applet and the volume controlled by the keys defined in System > Preferences > Keyboard Shortcuts didn’t control the actual master volume. The whole experience of getting things to work was too frustrating, so I’m very happy I had imaged Xandros and put Xandros back on for now.
Eventually, if I get restless again, I’ll probably try out eeeXubuntu 7.10, or I may wait until Ubuntu 8.10 (Intrepid Ibex) to see if the Ubuntu developers have worked to make an Eee-friendlier release; I realize it’s tough for them since Asus uses some proprietary components.
Well, it was worth a shot, and I may shoot again, too.
Ubuntu 8.04 (Hardy Heron) on the Eee PC
May 6, 2008
Geek Warning: If you don’t use Linux or Ubuntu, a lot of this will sound like gobbledygook.
As much as possible, I wanted to give the Asus Eee PC’s default operating system (a tweaked Xandros Linux) a chance. If I were another user (my mom, for example), it would be sufficient—good even. And that’s how Asus wanted it. The simple interface is meant to be like a kiosk or appliance.
So I gave the simple interface a God’s honest try for a little less than a week and already started tweaking it. I took away simple mode. I changed the IceWM theme, replaced Konqueror with Thunar, added in various keyboard shortcuts. I used Xandros for almost a month and then got fed up with it. The fact of the matter is that it works well for what it is, an internet appliance. I want more than that, though. I got frustrated with the fact that FAT32 was read-only in Konqueror but read/write in the terminal (I tried just about everything—believe me), and I didn’t like how you can’t get sudo to require a password (no, editing the /etc/sudoers file doesn’t help).
Despite reported problems with Ubuntu on the Eee, I decided to take the plunge yesterday. Bottom line: Ubuntu itself is smooth, but the documentation for it is rocky. First of all, for Ubuntu 8.04 specifically on the Eee (as opposed to Ubuntu 7.10), the documentation is scant. But even some of that is out of date. Here are the three main pages I was able to find on Ubuntu for the Eee:
The EeeUser Wiki
The Ubuntu WIki
The Ubuntu Eee Website.
If you’re planning to install Ubuntu 8.04 on your Eee, I would say take those pages with a whole shaker of salt. If you believe those pages, on a default installation, the screen resolution will be off, your computer won’t shut down, you have to do something special to get rid of the battery warning, you have to unplug the battery to get ethernet working, volume hotkeys work, madwifi is the best way to get wireless working, and certain config file tweaks will get boot time faster.
None of that is true. Here’s what really happened.
First of all, lacking an external CD-ROM drive and not really wanting to buy one, I sucked it up and followed these instructions for installing Ubuntu to a USB stick. My choices for “USB stick” were a bit limiting. First, I tried to do it with a partition on my external hard drive, and that didn’t work, for some reason. Next, I tried to do it on an actual USB stick, but then I realized it was only 512 MB (not enough to fit Ubuntu on). So finally, I tried my 2 GB Sansa Clip—which worked out perfectly. Under ordinary circumstances, the invincible/invisible Sandisk firmware would be annoying, but its invincibility in this case is great. Once I copied Ubuntu’s Desktop CD to my Sansa Clip, I was still able to listen to music and all my settings and favorite radio stations were preserved—so now I have Ubuntu live “CD” that also doubles as a portable music player. So I used my Sansa Clip to boot into a live Ubuntu session on the Eee and backed up my Xandros Eee to an external hard drive using the dd command (sudo dd if=/dev/sda of=/media/disk/eeexandros.img), and I installed Ubuntu.
First of all, I was amazed at how much stuff worked right away. I didn’t have to install the 915resolution package to get the screen resolution correct. The little up-and-down scroll on the trackpad worked. Desktop Effects were on and working without having to do anything (I promptly turned them off—I prefer metacity). Sound worked. The brightness hotkeys worked. I did notice that (considering I have 1 GB of RAM on my Eee) the live session took a really long time to load up… even though it was snappy once loaded up. That first part with the little dots after vmlinuz took at least two minutes.
So I erased all four Xandros partitions and made one 4-GB ext2 partition with no swap. Then I installed Ubuntu on it and rebooted. The reboot took a really long time. With Xandros, I was used to getting to a working desktop within 30 seconds of pressing the power button. Ubuntu took about a minute and a half. That was to be expected, though.
What wasn’t to be expected was how difficult wireless was to set up. First of all, pretty much all guides for Ubuntu on the Eee tell you to install build-essential and compile madwifi drivers to get wireless. They tell you all you need to do is reboot and wireless should be working. Not so on my Eee. The only thing I could do to get wireless working was to use ndiswrapper.
Also, there are various tweaks to get the boot time faster. I’ve tried all of them, and I swear the boot time is slower now. One of the tweaks can’t even be done—it refers to files that don’t exist (the one where you move some files in /etc/rc.2 somewhere).
I can’t get the sound hotkeys to work, and aumix has no effect on the volume, but with a quick test I did against my wife’s Macbook Pro, Skype Beta seems to work just fine (again, the Wikis are wrong—they say the microphone doesn’t work without some config file tweak).
I may reinstall just to get a fresh start and not bother with any of those boot-time tweaks. Is it worth all this trouble? I’m not sure. Maybe I’ll go back to Xandros eventually, but as someone who’s used Ubuntu for the past three years, I have to at least give Ubuntu on the Eee an honest shot. My guess is that by Ubuntu 8.10, the Ubuntu developers will have made Ubuntu a bit more polished for the Eee.
Is the Eee PC for you?
April 21, 2008
If you read as many reviews of the Eee PC as I’ve read, you’ll know that many of the negative reviews come from people who mistake the Eee for a notebook or laptop. Granted, it looks like a laptop (albeit one hit by a shrink-ray) and does a lot of things a laptop does, but it is not a laptop. People are calling it a subnotebook, a netbook, or UMPC (ultra-mobile PC) replacement. Who knows what name will stick? But this isn’t a total computer replacement any more than your cell phone is (think iPhone and not Macbook).
I was able to replace my desktop computer with an Eee, because I also happen to share a household with my wife, who has a regular laptop (a Macbook Pro), so when I wanted to give a CD mix to a friend, I burned it on my wife’s Macbook Pro (the Eee has no optical drive). The screen on the Eee is tiny—you won’t be doing any heavy graphics editing on it.
The Eee is an internet appliance that also happens to do a few non-internet-related things as well (it has a word processor, a spreadsheet program, a sound recording program, and a music organizer). Mainly, though, it’s great for browsing the internet, emailing friends, and Skyping (I just yesterday tried out video Skype on it, and the webcam and microphone work quite well). There is the occasional website I have to do some side-scrolling with (using the Right arrow key), and if you want to watch YouTube videos, you may want to use Firefox in fullscreen mode (press F11 to toggle back and forth), but it’s a nifty little appliance I’ll think nothing of toting around.
It’s actually made doing laundry bearable (I love reading books in the bathroom or on the bus, but for some reason not while doing the wash), and I’m looking forward to taking it on the plane with me when I visit my parents for Christmas—I won’t have to worry about it weighing down my backpack or being too much trouble to take out for the security check at the airport.
If you find yourself in coffee shops using wireless to blog or check out the latest news feeds and are tired of hauling your 15″ or 17″ laptop around, you may want to check out Asus’ Eee PC (or its upcoming rivals from HP, Dell, and Acer in the upcoming months).
The Eee - a week later
April 15, 2008
It’s not difficult to get overexcited about a new product when you first buy it, especially if it’s been one you’ve been eyeing for months. Now that it’s been a week, and I’ve had time to use the Eee extensively and tweak it some, I can honestly say I’m happy with my purchase.
Are there things that still annoy me? Hell, yes! But for a product relatively new to the market (think iPods of 2003 or cell phones in 1999), it’s pretty solid. I have finally gotten used to the placement of the right Shift key, but the numeral 1 being so far to the left still throws me off. And, yes, the keys on the keyboard feel as cheap in construction as they did last week, but I’ve noticed that the Eee’s keyboard isn’t as susceptible to cat fur infestation as my old desktop computer’s keyboard was. Plus, for the non-keyboard part of the Eee, since our cat is mostly white and the Eee I bought is black, it’s very easy to notice right away any fur that drifts on to the screen or casing, and I can blow it away immediately.
Through extensive web browsing, I have finally come across some websites that require horizontal scrolling, which has prompted me to install Opera (which allows you to scale pages to fit the width of the screen). I may end up doing a little back and forth switching between Opera and Firefox.
I’ve also realized that I really don’t go out that much to coffee shops and such. It was handy having the Eee with me while I did laundry; but when I’m hanging out with friends, I don’t really need an internet appliance. Mainly, I just use it at home on the couch while watching TV, and it’s nice to have a computer that doesn’t take up so much space (my old desktop had a tower, separate speakers that needed to be plugged in, an external monitor, an external keyboard, and an external mouse). When we do end up traveling (if airlines’ flight prices go down), it will be nice not having to haul a huge 5″ laptop around.
This Eee will serve me well for a while, though it’ll be interesting to see what’s on the horizon for subnotebooks / “netbooks.” HP is supposed to have one coming out soon with a slightly bigger keyboard (with spill-proof keys) and a much bigger hard drive. I think Dell and Acer are supposed to have things in the works, too, to compete with the Eee. And Asus itself will be releasing a new version of the Eee soon, too (larger screen, higher resolution webcam, larger hard drive, more memory, higher price).
Welcome to the Eee: My computer just got downsized
April 9, 2008
Since the Linux model isn’t sold in stores, and the Windows model is supposed to arrive about now but reports are mixed about its actual availability at Best Buy (brick and mortar, anyway), I’m starting up a little section here devoted especially to the Eee, because I feel this is where computers are headed.
If you’ve been reading technology news the past two years, you know that the One Laptop Per Child XO Laptop, the Intel Classmate PC, and the Macbook Air have been a lot of the exciting developments in the area of home computing and/or education. Computer use recently has grown more and more dependent on the internet. These days, with Firefox (or another web browser), you can do your taxes, organize photos, listen to music, share documents, shop, connect with friends and family, get directions, buy concert tickets… you get the point (and so do computer manufacturers). The traveling internet appliance has arrived and are even starting to earn the nickname netbook.
Well, I’ve been eyeing these “netbooks” for a while now, and the Macbook Air is just too far out of my price range, and I’d been hearing good things about the Eee for months (the fact that it has Linux preinstalled on it didn’t hurt for me either as a selling point). After reading literally hundreds of reviews of it (blogs, videos, user comments, tech news articles), I took the plunge and got myself a Xandros-preloaded Eee PC, and I don’t regret it. More details later, but for now just know that it is cute, visually stunning, and does what it’s supposed to (email, web browsing, web camming, Skype, IM, word processing, time-wasting games, music management, photo editing) and in a very, very small package.