Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2011, 12:39 PM   #1
PoP
Fᵘᶻᶻʸ⅓⋚¹¹⫽₃₃⪓¹¹¹⫻₃₃₃ Mᵃᵗʰ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 484
Karma: 4068311
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄, PRS-350, SGS3, Rπ, iPad Air
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:~$
On Kindle umount complains:
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]#
I Googled around and found that mount bind is often tricky but I am not experienced enough in Unix to figure it out. Welcoming a more expert suggestion.
PoP is offline   Reply With Quote
Old 04-15-2011, 02:12 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 4,771
Karma: 4461927
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
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).
NiLuJe is offline   Reply With Quote
 
Enthusiast
Old 04-15-2011, 02:44 PM   #3
PoP
Fᵘᶻᶻʸ⅓⋚¹¹⫽₃₃⪓¹¹¹⫻₃₃₃ Mᵃᵗʰ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 484
Karma: 4068311
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄, PRS-350, SGS3, Rπ, iPad Air
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.
PoP is offline   Reply With Quote
Old 04-15-2011, 02:55 PM   #4
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,088
Karma: 2114647
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.
hawhill is offline   Reply With Quote
Old 04-15-2011, 03:13 PM   #5
PoP
Fᵘᶻᶻʸ⅓⋚¹¹⫽₃₃⪓¹¹¹⫻₃₃₃ Mᵃᵗʰ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 484
Karma: 4068311
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄, PRS-350, SGS3, Rπ, iPad Air
Quote:
Originally Posted by hawhill View Post
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.
Thanks for the explanation. Makes perfect sense. I am learning the lesson one bit at a time.
PoP is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 09:12 AM.


MobileRead.com is a privately owned, operated and funded community.