The Following 5 Users Say Thank You to vi_ For This Useful Post: | ||
|
2011-12-02
, 23:14
|
Posts: 11 |
Thanked: 85 times |
Joined on Jan 2010
@ Helsinki
|
#2
|
|
2011-12-02
, 23:33
|
|
Posts: 253 |
Thanked: 184 times |
Joined on Nov 2009
@ Bristol, UK
|
#3
|
Huh? Seems clever. Did you notice this:
$ df
/home/opt 2064208 (1-k blocks)
/home/user/MyDocs 28312128 (1-k blocks)
|
2011-12-03
, 00:10
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#4
|
umount -l MyDocs
|
2011-12-19
, 14:48
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#5
|
Hey vi_,
thanks for pointing
But wouldn't it make more sense to mount/umount in the scripts
/usr/sbin/osso-usb-mass-storage-enable.sh (early)
/usr/sbin/osso-usb-mass-storage-disable.sh (late) ?
Did not check those (too tired now). Maybe tomorrow.
Question:
Indeed I have the problem of not getting unmounted MyDocs when enabling mass storage.
But I do not see the reference to my maps storage file. Even if I umount it in advance, I have this problem.
I get around when I enter
before using mass storage mode.Code:umount -l MyDocs
Any ideas?
|
2011-12-20
, 17:08
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#6
|
You sure you are not doing something dumb like leaving your terminal in a directory in MyDocs?
|
2011-12-20
, 17:12
|
Posts: 197 |
Thanked: 91 times |
Joined on Dec 2010
|
#7
|
Ay! Yep!
Only solution is 'umount MyDocs -l' manually.
This is lazy unmounting, also referenced in osso-mmc-umount, but not called.
I know how to workaround, but would like to know the reason (and correct solution).
Cheers.
--edit
Ay. Yes. I am sure. Also checked with lsof (nothing open) and fuser (do not know if output is correct).
The only problem is you cannot symlink (derp) on a fat32. Creating a FS image seemed like to much of of a kludge (besides fat32 doesn't allow sparse files (herp)). Further to this when you plug in USB and mass storage mode everything gets unmounted (herp derp).
Fortunately with nix you can mount pretty much anything, anywhere!
MyDocs partition is mounted and unmounted by two scripts when you enable/disable mass storage mode. They are:
I also had to include:
While this is very specific to my case it may be useful for other people who want to have things automatically mounted/unmounted/linked to the exported MyDocs partition.