![]() |
2011-05-26
, 15:11
|
|
Posts: 302 |
Thanked: 193 times |
Joined on Oct 2008
@ England
|
#2
|
![]() |
2011-07-18
, 15:40
|
Posts: 114 |
Thanked: 109 times |
Joined on Nov 2010
@ Finland
|
#3
|
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
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
![]() |
2011-07-18
, 15:49
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#4
|
I tried to convert my MyDocs and sd card to ext3. The commands I used wereandCode: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
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.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/mmc1Should I revert back to vfat or is there anything I can do?
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.
![]() |
2011-07-18
, 15:49
|
|
Posts: 253 |
Thanked: 184 times |
Joined on Nov 2009
@ Bristol, UK
|
#5
|
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?
![]() |
2011-07-18
, 15:56
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#6
|
This is why ext3 is a poor choice for a large % of users, it lacks the ability to not care about ownership.
Unless your linux desktop user id and your maemo user id are numerically equal, you're going to keep running into ownership problems. Files that you write while connected via USB aren't going to be visible and/or writable to maemo applications, and vice versa.
You can get around this by transferring everything via wireless ssh, but it's much slower than connecting directly.
My Linux PC and my Linux phone talk via FAT32. Sucks doesn't it.
The Following User Says Thank You to vi_ For This Useful Post: | ||
![]() |
2011-07-19
, 15:33
|
Posts: 151 |
Thanked: 93 times |
Joined on Sep 2009
@ sofia, bulgaria
|
#8
|
![]() |
2011-07-19
, 15:52
|
Posts: 6 |
Thanked: 20 times |
Joined on Jan 2011
|
#9
|
The Following 3 Users Say Thank You to Lantizia For This Useful Post: | ||
![]() |
2011-11-10
, 10:11
|
Posts: 34 |
Thanked: 30 times |
Joined on Nov 2011
|
#10
|
Thought I'd whack these instructions here which I figured out after many days in case anyone wanted to do the same... obviously use them at your own peril.
Why would you want to do this?
What side affects should I know about?
What should I do to prepare?
Can I moan at you if it didn't work?
ONWARDS...
Steven
Last edited by Lantizia; 2011-05-26 at 15:21.