Opened 9 years ago

Closed 7 years ago

Last modified 6 years ago

#445 closed defect (fixed)

mounting microsd should be async by default

Reported by: max_posedon Owned by: ainulindale
Priority: minor Milestone:
Component: SHR Image Version: SHR-unstable
Keywords: Cc:

Description

Mounting microsd in sync mode creates many problems:

  1. write speed slower
  2. you can listen music from microsd
  3. some bugs become more annoying,

so, I want shr mount all partitions on microsd async by default. But microsd can't be easy removed from neo, so I think better mount all async. I use shr-unstable from ~06 May, and mount says

/dev/mmcblk0p1 on /media/card type vfat (rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)
/dev/mmcblk0p2 on /media/mmcblk0p2 type ext2 (rw,sync,errors=continue)

for mmcblk0p1 hack in fstab presents, for mmcblk0p2 - no. May be some udev script should be changed for more "generic" solution.

Change History (9)

comment:1 Changed 8 years ago by dos

  • Resolution set to fixed
  • Status changed from new to closed

It should be already async by default. If it isn't - please reopen.

comment:2 Changed 8 years ago by max_posedon

  • Resolution fixed deleted
  • Status changed from closed to reopened

I just updated my shr,

opkg update; opkg upgrade
reboot

but still

/dev/mmcblk0p3 on /media/mmcblk0p3 type vfat (rw,sync,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)
/dev/mmcblk0p2 on /media/mmcblk0p2 type ext3 (rw,sync,errors=continue,data=ordered)

comment:3 Changed 8 years ago by spaetz

I am not sure we want to change the default behavior.(BTW, this mounting is done from /etc/udev/scripts/mount.sh). E.g. when we plug in a USB stick, we probably do want it sync'd.

The first partition of the sd card is mounted async already.
/dev/mmcblk0p1 /media/card auto defaults,async 0 0

It just takes an entry in /etc/fstab to make more partitions async too.
Changing the default would mean overriding OpenEmbedded? default scripts, additionally.

I would suggest that this should either be a NOFIX then, or that "sync" should only be skipped for all /dev/mmcblk0* partitions.

comment:4 Changed 8 years ago by Heinervdm

  • Milestone set to MS3

comment:5 Changed 7 years ago by elisa42

  • Resolution set to fixed in unstable
  • Status changed from reopened to closed

partitions are mounted as default which includes async.
please reopen it is still an issue for you.

comment:6 Changed 7 years ago by GNUtoo

The fstab was updated:

rootfs               /                    auto       defaults              1  1
proc                 /proc                proc       defaults              0  0
tmpfs                /var/volatile        tmpfs      defaults              0  0
tmpfs                /dev/shm             tmpfs      mode=0777             0  0
tmpfs                /media/ram           tmpfs      defaults              0  0

# microSD slot
/dev/mmcblk0p1       /media/card          auto       defaults              0  0

defaults means :

       defaults
              Use default options: rw, suid, dev, exec, auto, nouser, and async.

according to man mount on my desktop

and the freerunner has the normal mount:

lrwxrwxrwx    1 root     root            19 Jan  1 01:38 /bin/mount -> mount.util-linux-ng

re-open if the problem persists.

Denis.

comment:7 Changed 7 years ago by Heinervdm

  • Resolution fixed in unstable deleted
  • Status changed from closed to reopened

comment:8 Changed 7 years ago by Heinervdm

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:9 Changed 6 years ago by morphis

  • Milestone MS3 deleted

Milestone MS3 deleted

Note: See TracTickets for help on using tickets.