View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#4
Originally Posted by Keneraali View Post
I tried to convert my MyDocs and sd card to ext3. The commands I used were
Code:
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
and
Code:
umount /media/mmc1
sfdisk -c /dev/mmcblk1 1 43
mkfs.ext3 -m 0 -L "SD card" /dev/mmcblk1p1
osso-mmc-mount.sh /dev/mmcblk1p1 /media/mmc1
chown -R user:users /media/mmc1
There were no errors while doing that, even the automount works perfectly. But now when I connect the phone to my Ubuntu pc I don't have any permissions to the files inside. I tried to "sudo chmod -R (myusername)" the folders but it wasn't successful, I'm a noob with permission settings. Should I revert back to vfat or is there anything I can do?
Don't revert! fat is *****.

Since your MyDocs files need to continue to be owned by user:users (which is 29999:29999 like they are now)... when mounted over USB you'll need to make sure you create/edit files/folders as this user.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.