Partitionning separate /home/ floder to SD

Joel Newkirk freerunner at newkirk.us
Mon Oct 20 00:46:12 CEST 2008


On Sun, 19 Oct 2008 22:39:34 +0100, "Andy Selby"
<andyfrommk at googlemail.com> wrote:
>> Is there a way that /home/ is in my SD card? Only /home/, like we do in
> Linux
>> distributions... so I can flash whenever i want the Neo without loosing
>> configuration files, icons and stuff I am adapting for myself in the
> Neo?
> 
> Did you try
> #link /media/card/home /home

Actually that'd be 'ln'... ;)

The solution I suspect Andy is seeking is to alter /etc/fstab:
/dev/mmcblk0p1  /media/card     auto    defaults,async,noauto   0  0
change to 
/dev/mmcblk0p1  /home     auto    defaults,async,noauto   0  0

This replaces /home in the filesystem with the contents of the first
partition on the uSD.  (note that if the /home folder already exists that
this will effectively redirect /home to the uSD without touching the
'local' /home, so that if the uSD is removed, corrupted, etc, and doesn't
mount, there's still a /home/root folder, just without everything you
customized and added while on the uSD)

When (if) I get my FR where I plan to retain the same installation
long-term, I intend to carve up the 8gb uSD and have /dev/mmcblk0p3 as
/home.  (partition #2 as swap, #1 as alternate boot)

j






More information about the community mailing list