Grant McWilliams
  • Food
    • Blog
    • Websites
    • Seattle Food Events
    • Seattle Farmers Markets
  • Travel
    • Travel Blog
    • Travel Photos
    • Travel Links
    • Trip Journals
      • Europe - 2015
      • New Orleans - 2013
      • Central Mexico - 2010
      • Toulouse/Paris - 2009
      • Paris/Lyon - 2008
      • Peru/Ecuador - 2007
      • British Columbia - 2007
      • Central Mexico - 2006
      • Eastern Europe - 2006
      • Washington D.C. - 2006
      • Where's the rest?
  • Technology
    • Gadgets
      • Blog
      • Websites
      • Android
      • Nokia n900
      • SailfishOS
    • Technology
      • Blog
      • Websites
    • Virtualization
      • Virtualization Blog
      • Websites
      • Xen Howtos
      • Xenserver Howtos
      • KVM Howtos
      • VirtualBox Howtos
      • Virtual OS images
      • Xenapi Admin Tools github
    • Programming
      • Blog
      • Bash
      • Python
      • Websites
      • Downloads
    • Transportation
      • Blog
      • Websites
    • Sustainable Tech
      • Blog
      • Websites
  • Photography
    • Blog
    • Portfolio
  • Random
    • Grantianity
      • Basics
      • Grantisms
      • The River of Life
      • Bus Maintainance
      • Believing in Yourself
    • Creative Writing
    • Login/Logout
    • About

Nokia n900

Format MyDocs as ext3

Details
Category: Nokia n900
May 17, 2012

Fat32 is a very poor filesystem and Nokia chose it for the n900's MyDocs directory so Windows users could view their files if the n900 is plugged into a Windows PC via USB cable. Those of us who use the n900 on Linux machines (or use SSH/SFTP to access files) have the flexibility to use a better filesystem.

 

 

sed -i '1d' /usr/sbin/mmc-mount

echo -e '#!/bin/sh\ncase "$(sfdisk -c $(echo $1 | cut -c1-12) $(echo $1 | cut -c14))" in\n  43|83)\n    mount -t auto -o $3,noauto,nosuid,noatime,nodiratime "$1" "$2" > /dev/null\n    ;;\n  *)\n    '$(cat /usr/sbin/mmc-mount)'\n    ;;\nesac' > /usr/sbin/mmc-mount

sed -i 's/\(| 1e\)/\1 |43|83/' /usr/sbin/osso-mmc-mount.sh

umount /home/user/MyDocs

sfdisk -c /dev/mmcblk0 1 43

mkfs.ext3 -m 0 -L "Nokia N900" /dev/mmcblk0p1

osso-mmc-mount.sh /dev/mmcblk0p1 /home/user/MyDocs

chown -R user:users /home/user/MyDocs

Search