04-15-2011, 12:39 PM | #1 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,007
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
umounting a mount --bind
Apologies, more a Unix than a Kindle question, but while trying avoid modifying the file system by using a "mount --bind" rather than creating a symbolic link I can't seem to be able to umount anymore (and must reboot to break the link).
For example, directory a contains file a.txt and directory b contains file b.txt On Ubuntu everything works as I expected: Code:
normand@5635C04:~$ ls a a.txt normand@5635C04:~$ ls b b.txt normand@5635C04:~$ sudo mount --bind b a normand@5635C04:~$ ls a b.txt normand@5635C04:~$ ls b b.txt normand@5635C04:~$ sudo umount b normand@5635C04:~$ ls a a.txt normand@5635C04:~$ ls b b.txt normand@5635C04:~$ Code:
[root@kindle us]# ls a a.txt [root@kindle us]# ls b b.txt [root@kindle us]# mount --bind b a [root@kindle us]# ls a b.txt [root@kindle us]# ls b b.txt [root@kindle us]# umount b umount: b: not mounted [root@kindle us]# |
04-15-2011, 02:12 PM | #2 |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Unmount the target directory, not the source directory .
(Might want to do a lazy (-l) unmount if it's something that might still be in use when you're unmounting). |
Advert | |
|
04-15-2011, 02:44 PM | #3 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,007
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Ah. Thanks NiLuJe. It confused me that it works differently than on Ubuntu.
Code:
[root@kindle us]# ls a a.txt [root@kindle us]# ls b b.txt [root@kindle us]# mount --bind b a [root@kindle us]# ls a b.txt [root@kindle us]# ls b b.txt [root@kindle us]# umount b umount: b: not mounted [root@kindle us]# umount a [root@kindle us]# ls a a.txt [root@kindle us]# ls b b.txt Last edited by PoP; 04-15-2011 at 02:46 PM. |
04-15-2011, 02:55 PM | #4 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
That's because the mount/umount binaries on the Kindle do not have all the Whizz and Fiddles of the mount tool on Ubuntu. It's a downstripped version on the Kindle, for the sake of not spending precious space on the device. That's also true for other Unix tools on the device.
The umount on Ubuntu aims for comfort and - after not able to "really" umount b, it looks up the list of mounts and sees that b is mounted on a. It spares you the work of doing it "right" and does what you seem to want. |
04-15-2011, 03:13 PM | #5 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,007
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
302 Help! PB302 doesn't mount over USB | fragile | PocketBook | 0 | 03-30-2011 02:13 PM |
903 mount as USB drive | ANico | PocketBook | 10 | 03-03-2011 04:23 AM |
Seriously thoughtful I'm in a bind | Spoon Man | Lounge | 31 | 04-15-2010 10:45 PM |
what does mount or dismount mean? | nlm | Amazon Kindle | 9 | 07-24-2009 08:28 AM |
iLiad Is it possible to mount directory (that is on PC) from iLiad? | Luka Trifunovic | iRex Developer's Corner | 5 | 03-31-2008 09:33 AM |