Results 1 to 9 of 9

Thread: How to rescan (restart) USB with Kindle

  1. #1
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    183

    Default 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.
    Linux 4.12.14
    openSUSE Leap 15.0 - 64 bit
    KDE Plasma 5.12.15
    KDE Framework 5.44.0
    Qt - 5.9.4

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: How to rescan (restart) USB with Kindle

    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.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to rescan (restart) USB with Kindle

    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)

  4. #4
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    183

    Default Re: How to rescan (restart) USB with Kindle

    Quote Originally Posted by Knurpht View Post
    ... set the device notifier to always visible.
    I did not find such option.

    Quote Originally Posted by robin_listas View Post
    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
    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
    Linux 4.12.14
    openSUSE Leap 15.0 - 64 bit
    KDE Plasma 5.12.15
    KDE Framework 5.44.0
    Qt - 5.9.4

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to rescan (restart) USB with Kindle

    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:

    Code:
    mount /dev/device /mount/point
    and you have to be root (sudo).


    > What should I add to fstab?


    You can do something like this:

    Code:
    
    > 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)

  6. #6
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    183

    Default Re: How to rescan (restart) USB with Kindle

    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
    Linux 4.12.14
    openSUSE Leap 15.0 - 64 bit
    KDE Plasma 5.12.15
    KDE Framework 5.44.0
    Qt - 5.9.4

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,704
    Blog Entries
    1

    Default Re: How to rescan (restart) USB with Kindle

    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.

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to rescan (restart) USB with Kindle

    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)

  9. #9
    Join Date
    Jan 2009
    Location
    Saint Marys Georgia
    Posts
    78

    Default Re: How to rescan (restart) USB with Kindle

    Quote Originally Posted by GazetaCypr View Post
    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.
    Not sure if this will work on a kindle but you could install adb tools and then use a cli similar to this:

    Code:
    umount /pathtokindle
    adb reboot
    this will reboot the device which will allow you to reset the usb with out unplugging it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •