Re: Partitionning separate /home/ floder to SD
Joel Newkirk a écrit : 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) Did the same thing here (swapped swap and home). This is the important part of my fstab, if it helps someone: # microSD slot /dev/mmcblk0p1 /media/card autodefaults,async,noauto 0 0 /dev/mmcblk0p2 /home ext2defaults,async 0 0 /dev/mmcblk0p3 none swap sw 0 0 Ineiti ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Partitionning separate /home/ floder to SD
Linus Gasser wrote: Joel Newkirk a écrit : 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) Did the same thing here (swapped swap and home). This is the important part of my fstab, if it helps someone: # microSD slot /dev/mmcblk0p1/media/card autodefaults,async,noauto 0 0 /dev/mmcblk0p2/home ext2defaults,async 0 0 /dev/mmcblk0p3none swap sw 0 0 You might like to add noatime,nodiratime to the options too. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Partitionning separate /home/ floder to SD
All that works just fine, particularly the use of a swap partiton which eliminates the slowing of the FR with time. I also made /usr/local point to the uSD so that any applications I install are not affected by changes to the flashed stuff. I notice little negative effects by putting as much as possible on the uSD. I did appear to observe that using ext3 on the uSD partitions appears to be faster than using FAT file systems, however. That is just an impression as I have not run any tests. Joel Newkirk wrote: On Sun, 19 Oct 2008 22:39:34 +0100, Andy Selby [EMAIL PROTECTED] 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 autodefaults,async,noauto 0 0 change to /dev/mmcblk0p1 /home autodefaults,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 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- Iain B. Findleton Tel: 514-457-0744 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Partitionning separate /home/ floder to SD
Flash has limited writes in its lifetime. That is why we have special filesystems for flash [1],[2] (e.g. jffs2). ext3 (due to its journalling) might not be good idea for Sd-card. I think ext2 would fare fine except that it might be left with corrupted FS in case improper shutdown but at least it would not impact the life of the card. On Mon, Oct 20, 2008 at 6:14 PM, Iain B. Findleton [EMAIL PROTECTED]wrote: I did appear to observe that using ext3 on the uSD partitions appears to be faster than using FAT file systems, however. --VIkas [1] http://en.wikipedia.org/wiki/List_of_flash_file_systems#Flash_memory_.2F_solid_state_media_file_systems [2] http://en.wikipedia.org/wiki/NAND_flash#Flash_file_systems ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Partitionning separate /home/ floder to SD
I just did as L. Gasser said, it's working fine, i notice some slowlyness in xTerm in the neo when working in /home/ area but it's no big deal. Used gParted to make partitions, and used ext2 instead of ext3 thanks guys J On Monday 20 October 2008, Iain B. Findleton wrote: All that works just fine, particularly the use of a swap partiton which eliminates the slowing of the FR with time. I also made /usr/local point to the uSD so that any applications I install are not affected by changes to the flashed stuff. I notice little negative effects by putting as much as possible on the uSD. I did appear to observe that using ext3 on the uSD partitions appears to be faster than using FAT file systems, however. That is just an impression as I have not run any tests. Joel Newkirk wrote: On Sun, 19 Oct 2008 22:39:34 +0100, Andy Selby [EMAIL PROTECTED] 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 autodefaults,async,noauto 0 0 change to /dev/mmcblk0p1 /home autodefaults,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 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Partitionning separate /home/ floder to SD
Vikas Saurabh wrote: Flash has limited writes in its lifetime. That is why we have special filesystems for flash [1],[2] (e.g. jffs2). ext3 (due to its journalling) might not be good idea for Sd-card. I think ext2 would fare fine except that it might be left with corrupted FS in case improper shutdown but at least it would not impact the life of the card. For CF and probably also for SD this is a non-issue. Most, probably all, implement write levelling in the card so special filesystems are not needed. The number of write cycles before failure has increased enormously too. More details here: http://www.storagesearch.com/ssdmyths-endurance.html From a practical perspective we've been using CF cards with ext3 and swap for several years now in server appliances, and they've been more reliable than HDDs in similar situations over that period. Given the restricted bandwidth of the glamo I won't even be able to hit the SD as hard as these are every day, so I have no worries about the lifetime of my SD cards. I will be very surprised if it fails before I decide to upgrade it. On Mon, Oct 20, 2008 at 6:14 PM, Iain B. Findleton [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I did appear to observe that using ext3 on the uSD partitions appears to be faster than using FAT file systems, however. --VIkas [1] http://en.wikipedia.org/wiki/List_of_flash_file_systems#Flash_memory_.2F_solid_state_media_file_systems [2] http://en.wikipedia.org/wiki/NAND_flash#Flash_file_systems ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Partitionning separate /home/ floder to SD
Hi, Tryed to find in the threads but no luck. 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? The idea is to have the OS in the flash rams in Neo, and /home/ in mini-SD, this is basically one of the awesome features in the base of linux distributions that helps me sell it. Rgds, JV ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Partitionning separate /home/ floder to SD
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 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Partitionning separate /home/ floder to SD
On Sun, 19 Oct 2008 22:39:34 +0100, Andy Selby [EMAIL PROTECTED] 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 autodefaults,async,noauto 0 0 change to /dev/mmcblk0p1 /home autodefaults,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 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community