How to rescan (restart) USB with Kindle

Hi,
I use Kindle and OpenSuse 12.2 to put some books onto Kindle.
When I eject Kindle, after it I have to unplug usb cable from it and connect it again, so it appears again as a storage.
It’s boring to do it every time when I test something (new books) on Kindle.

Question: is there a way to rescan usb (ports) without unplugging Kindle cable? From command line of course.

My thinking is this: System has to do something, so it knows that usb device has been attached.

PS.
I googled subject, but did not find satisfactory answer.

Try this: right click the system tray, go to it’s properties. Unlock widgets if necessary. Now, in the Items tab, set the device notifier to always visible. That should give you a path to dis-/reconnect your USB device.

On 2013-12-17 17:26, GazetaCypr wrote:
>
> Hi,
> I use Kindle and OpenSuse 12.2 to put some books onto Kindle.
> When I eject Kindle, after it I have to unplug usb cable from it and
> connect it again, so it appears again as a storage.
> It’s boring to do it every time when I test something (new books) on
> Kindle.
>
> Question: is there a way to rescan usb (ports) without unplugging Kindle
> cable? From command line of course.

I don’t know about that, but instead of “eject”, use the CLI to umount
it; afterwards, mount it again using CLI.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I did not find such option.

I am able to umount /media/Kindle
but am not able to mount it again, it says

can't find /media/Kindle in /etc/fstab

What should I add to fstab?
Fortunately Kindle hangs somehow in the tray, so I can click it and it appears again.

I would call it temporary solution. Not the perfect one, but working. At least I don’t have to unplug and plug cable again and again.
Thanks

On 2013-12-18 13:16, GazetaCypr wrote:

> robin_listas;2609232 Wrote:
>> use the CLI to umount it; afterwards, mount it again using CLI
> I am able to umount /media/Kindle
> but am not able to mount it again, it says
> Code:
> --------------------
> can’t find /media/Kindle in /etc/fstab
> --------------------

Which is true. You have to use the full syntax:


mount /dev/device /mount/point

and you have to be root (sudo).

What should I add to fstab?

You can do something like this:


> LABEL=Moria  /mnt/Moria   xfs   noauto,user,nofail   1 10

Changing whatever is appropriate in your case (label will be different
(probably “Kindle”), mountpoint, filesystem type…)

(do not use /media/anything)


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Thank robin_listas for explanation.

Unfortunately becoming root to do it is more time consuming then unplug and plug again.
Btw, if I have to become root, then how is it that simple user can do it without becoming root by simple ejecting storage (which is Kindle) and plugging it back?
That does not make sense to me. There should be a way for user to mount it, shouldn’t there?

greetings

FWIW, There are some small apps around that can be used to reset USB interfaces. For example

linux - Hard Reset USB in Ubuntu 10.04 - Super User

You compile it, then run the utility to reset a particular device. (I’ve played with it in the past successfully.)

There is also another CLI utility called resetusb available if you care to search, but again, it must be compiled first.

On 2013-12-19 08:36, GazetaCypr wrote:
>
> Thank robin_listas for explanation.
>
> Unfortunately becoming root to do it is more time consuming then unplug
> and plug again.
> Btw, if I have to become root, then how is it that simple user can do it
> without becoming root by simple ejecting storage (which is Kindle) and
> plugging it back?
> That does not make sense to me. There should be a way for user to mount
> it, shouldn’t there?

The command line is the traditional way, and yes, it requires you being
root. With the fstab line I posted, “mount /mnt/Moria” will work as
user, because it has the word “user” on the fstab entry.

You can also configure sudo to not require any password for some
specific commands you define.

The desktop works as user because some other tool is already running as
root which does the job for you.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Not sure if this will work on a kindle but you could install adb tools and then use a cli similar to this:

umount /pathtokindle
adb reboot

this will reboot the device which will allow you to reset the usb with out unplugging it.