![]() |
2010-01-26
, 08:28
|
Posts: 4 |
Thanked: 1 time |
Joined on Dec 2009
@ Berlin/Germany
|
#12
|
![]() |
2010-01-26
, 14:55
|
|
Posts: 1,562 |
Thanked: 349 times |
Joined on Jun 2008
|
#13
|
![]() |
2010-01-26
, 16:28
|
Posts: 5 |
Thanked: 2 times |
Joined on Jul 2007
|
#14
|
![]() |
2010-02-01
, 23:10
|
Posts: 50 |
Thanked: 36 times |
Joined on Feb 2010
|
#15
|
Well my ext3 didn't automount either :-)
This is how I make it.
Usual disclaimers, if this doesn't make sense to you, you probably shouldn't be trying it ...
add these 4 lines to the bottom of /usr/sbin/mmc-mount
if [ $? -ne 0 ]
then
mount -o $3,noatime,nodiratime "$1" "$2" > /dev/null
fi
![]() |
2010-02-04
, 16:29
|
Posts: 1 |
Thanked: 6 times |
Joined on Feb 2010
|
#16
|
![]() |
2010-03-20
, 13:13
|
Posts: 267 |
Thanked: 183 times |
Joined on Jan 2010
@ Campinas, SP, Brazil
|
#17
|
#!/bin/sh mount -t vfat -o $3,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir "$1" "$2" > /dev/null
#!/bin/sh mount -t vfat -o $3,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir "$1" "$2" > /dev/null || mount -o $3,noauto,noatime,nodiratime "$1" "$2" > /dev/null
![]() |
2010-10-12
, 11:17
|
Posts: 11 |
Thanked: 11 times |
Joined on May 2008
|
#18
|
The Following User Says Thank You to angrycore For This Useful Post: | ||
![]() |
2010-12-15
, 23:44
|
|
Posts: 676 |
Thanked: 1,067 times |
Joined on Jul 2010
@ Kyiv, Ukraine
|
#19
|
#!/bin/sh # mmc-mounter 0.1 # Licence: GPLv3 # The script was written for Maemo 5 on Nokia N900 # to ease mounting multiple microSD partitions # since the system wasn't able to recognise them. # I hope it can help on other devices or OSes too. # (c) 2010 Serhiy Zagoriya (int_ua) # *please* mail bugs and feature requests to xintx.ua@gmail.com if [ "$1" == "mount" ]; then for partition in `ls /dev/mmcblk1p* | grep -o "[0-9]$"`; do echo "Partition "$partition mkdir -p /home/user/mmc/$partition sudo mount /dev/mmcblk1p$partition /home/user/mmc/$partition mountresponse=$? if [[ $mountresponse != 0 ]]; then if [[ $mountresponse == 255 ]]; then echo "Already mounted" continue fi echo "Failed to mount /dev/mmcblk1p$partition automatically." read -p "If you know it's filesystem type, type it, ortherwise just press Enter: " fstype if [ "$fstype" != "" ]; then echo "mounting /dev/mmcblk1p$partition with '-t $fstype' option" sudo mount -t $fstype /dev/mmcblk1p$partition /home/user/mmc/$partition fi fi done #read -p "press Enter to close" None exit 0 fi if [ "$1" == "unmount" ]; then for mountpoint in `cat /etc/mtab | grep -o "/dev/mmcblk1p[0-9]*"`; do echo "Unmounting $mountpoint" sudo umount $mountpoint -f if [[ $? != 0 ]]; then lsof | grep /home/user/mmc/`echo $mountpoint | grep -o "[0-9]*"` echo -e "---\nCannot unmount partition $mountpoint. If it was mounted using mmc-mount script and there was opened files on it they are listed above (with lsof command)." fi done #read -p "press Enter to close" None exit 0 fi echo "usage: mmc-mounter.sh {mount|unmount}" exit 1
![]() |
2012-05-09
, 17:41
|
Posts: 432 |
Thanked: 917 times |
Joined on Jun 2011
|
#20
|
I've made a wiki page containing the information found in that thread, you can check it here: http://wiki.maemo.org/Ext2_on_microSD_card
Relevant section: