May 202011
 

Hi all,

It took me a while and multiple reinstalls to work out how to do this properly, so I’m sharing what little knowledge I have with you all.
On my eeePC 701 I have a 4 gb SD card that I am now using for my /home directory.

I have formatted the SD card as ext2, and then setup fstab to mount /dev/sdb1 as /home.
The only downside is that I can’t have any other usb storage devices plugged in when I boot, or udev will assign /dev/sdb to the other device and stuff up the boot sequence.
I’ve tried to setup udev to always assign /dev/sdb to my SD Card reader in my eeePC but I can’t seem to get that to go.
But I don’t normally have any other USB media plugged in when I boot my eeePC so I have left it for now until it really bugs me.

First thing you will want to do, is put a delay into the boot sequence so that the eeePC has time to detect the SD card / reader. I found that out the hard way.
I’ve installed Crunchbang on my eeePC so my configuration file may be a little bit different to stock, but it should be somewhat similar still.
So, on my eeePC, I’ve edited the file /etc/grub.d/10_linux and added ‘rootdelay=5’ to my boot parameters.
This pauses the boot sequence for 5 seconds, in which time the eeePC detects the SD card / reader.
In my version of the file, it’s on line 83 but yours may differ, the codeblock shows what my file reads.


linux ${rel_dirname}/${basename} rootdelay=5 root=${linux_root_device_thisversion} ro ${args}

After that’s been done, you will need to format the SD card to ext2 so that the permissions will work on the SD card. I tried formatting to FAT32 but it had issues so I left it on ext2.
After the SD card is formatted, you will then need to modify fstab. Below is the line I have for the sdcard.


/dev/sdb1 /home ext2 defaults,noatime 0 0

Once again, I had tried to use the UUID for the SD Card reader but it didn’t like it and refused to boot, so I relented and just used the standard /dev/sdb1 notation, however as mentioned before, it can cause issues when other USB media is plugged into the eeePC
Once fstab has been modified, you will need to make sure the SD card has a directory for your user. Otherwise it will boot but then will find a fat lot of nothing to use for your user settings etc.
So once you’ve moved over all your stuff onto the SD card under your username’s directory, you should be all set.
You can now reboot, and when you reboot and login, it should now be running off your SD card.

You will take a minor speed hit as the SD card is not as fast as your internal flash drive, but it’s replaceable and also easy to backup if you need to.
Just take the SD card out, and copy everything off of it and the backup is done ! 🙂

Share