|
|
#1 |
|
⁷⁄₉∈ᴮᴼᴿᴳ@₁₈%
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 366
Karma: 666665
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄ PRS-350 SGS3 Rπ
|
umounting a mount --bind
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]# |
|
|
|
|
|
#2 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,895
Karma: 2267781
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w & PW
|
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). |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
⁷⁄₉∈ᴮᴼᴿᴳ@₁₈%
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 366
Karma: 666665
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄ PRS-350 SGS3 Rπ
|
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. |
|
|
|
|
|
#4 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 769
Karma: 1646497
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kindle 3 WiFi
|
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. |
|
|
|
|
|
#5 |
|
⁷⁄₉∈ᴮᴼᴿᴳ@₁₈%
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 366
Karma: 666665
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄ PRS-350 SGS3 Rπ
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |