Author Topic: Kindle Eject and Mount  (Read 1841 times)

Online Georgetoon

  • Hero Member
  • *****
  • Posts: 3199
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Kindle Eject and Mount
« on: October 10, 2011, 08:33:53 AM »
In a previous thread, folks up here ave me some terrific information about ejecting a Kindle on PCLinuxOS so it would charge wen plugged into USB.

for instance, I did an fdisk -l and learned that the Kindle was mounted at:

Device Boot      Start         End      Blocks   Id  System
/dev/sdd1              16     6410687     3205336    b  W95 FAT32

Then I simply did "eject /dev/sdd1" and the Kindle ejects and unmounts and is now charging.

Well, what if I want to remount the partition?  Shouldn't "mount /dev/sdd1" work?  Because when I issue that, I get:

mount: can't find /dev/sdd1 in /etc/fstab or /etc/mtab


Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline The Chief

  • Hero Member
  • *****
  • Posts: 2253
Re: Kindle Eject and Mount
« Reply #1 on: October 10, 2011, 10:33:27 AM »
The quick and easy way would be to simply unplug it and plug it back in.

But their may be a way to have an entry in fstab so the system knows about it, but such that it isn't a problem if you boot up with out it attached.  Sort of like the entries for the Windows partition on dual boot machines. But that might prevent the auto-mount on plugin.

Sorry, not enough of a guru to give any better advice.

Retired Senior Chief, Retired Software Engineer, Active GrandPa

Online Georgetoon

  • Hero Member
  • *****
  • Posts: 3199
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Kindle Eject and Mount
« Reply #2 on: October 10, 2011, 10:38:12 AM »
The quick and easy way would be to simply unplug it and plug it back in.

But their may be a way to have an entry in fstab so the system knows about it, but such that it isn't a problem if you boot up with out it attached.  Sort of like the entries for the Windows partition on dual boot machines. But that might prevent the auto-mount on plugin.

Sorry, not enough of a guru to give any better advice.

That's okay. Neither am I.:)

Appreciate the help.)
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Kindle Eject and Mount
« Reply #3 on: October 10, 2011, 10:46:20 AM »
When you want to mount something, you have to give a mount point;
if you don't give a mount point to the command, it assumes the device is present in fstab or mtab (and then the command can take the mount point from there);

What you want to do is maybe adding it in fstab (very easily via PCLinuxOS Control Center) and making it mountable by user;

or via terminal:
First making a mount point:
Code: [Select]
mkdir /mnt/kindle (I've chosen "kindle" here)
Then
Code: [Select]
mount /dev/sdd1 /mnt/kindleand later
Code: [Select]
umount /dev/sdd1or
Code: [Select]
umount /mnt/kindle=> here it doesn't matter; umount just need 1 of them (because it's already mounted, the connection is there)
[if you use it often, I'd keep the mount point = not removing /mnt/kindle by using rmdir]
« Last Edit: October 10, 2011, 10:49:06 AM by rubentje1991 »

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Kindle Eject and Mount
« Reply #4 on: October 10, 2011, 10:47:15 AM »
Or when using KDE: just use the Device Notifier (it keeps the entries of the devices, when they aren't unplugged)

Online Georgetoon

  • Hero Member
  • *****
  • Posts: 3199
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Kindle Eject and Mount
« Reply #5 on: October 10, 2011, 10:59:13 AM »
Or when using KDE: just use the Device Notifier (it keeps the entries of the devices, when they aren't unplugged)

I would, but once ejected, it no longer is listed.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6380
  • I'm going South
Re: Kindle Eject and Mount
« Reply #6 on: October 10, 2011, 11:08:07 AM »
I've never used a Kindle but it seems to me that if it has an entry in /dev ending in sdd1, it should appear in the Places panel in Konqueror and Dolphin. And if you click that entry it should be automatically mounted -- on a subdirectory of /media if it doesn't have an entry in /etc/fstab.

Note that /etc/fstab shows where and how partitions on different kinds of devices should be mounted. /etc/mtab (as for instance /media/.hal-mtab) shows were and how they really are mounted. Never try to edit /etc/mtab.


« Last Edit: October 10, 2011, 02:48:08 PM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Online Georgetoon

  • Hero Member
  • *****
  • Posts: 3199
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Kindle Eject and Mount
« Reply #7 on: October 10, 2011, 11:18:04 AM »
I've never used a Kindle but it seems to me that if it has an entry in /dev ending ins dd1, it should appear in the Places panel in Konqueror and Dolphin. And if you click that entry it should be automatically mounted -- on a subdirectory of /media if it doesn't have an entry in /etc/fstab.

Note that /etc/fstab shows where and how partitions on different kinds of devices should be mounted. /etc/mtab (as for instance /media/.hal-mtab) shows were and how they really are mounted. Never try to edit /etc/mtab.




When I do an unmount, the Kindle is still available in Places. When I do an eject, the Kindle is gone from the system, but goes into charging mode.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10665
  • MLUs Forever!
Re: Kindle Eject and Mount
« Reply #8 on: October 10, 2011, 12:45:35 PM »
I wondered would

eject  -T  /dev/sd?

work to both eject and reattach the device?

It works with optical media drives (door open and close) but apparently not with USB drives -- won't reattach it seems.

Maybe there is a variation that will work ......  else it is a matter of unplugging and replugging the device.


Just noticed "eject /dev/sdd1"  .....  that should be  eject /dev/sdd  ....  without the partition number, as the command ejects the device (and probably unmounts all associated partitions first). Use the command with the  '-v' option to get a report of what it does.

regards
« Last Edit: October 10, 2011, 12:57:44 PM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Kindle Eject and Mount
« Reply #9 on: October 10, 2011, 12:51:46 PM »
Note that /etc/fstab shows where and how partitions on different kinds of devices should be mounted. /etc/mtab (as for instance /media/.hal-mtab) shows were and how they really are mounted. Never try to edit /etc/mtab.


..looking in /etc/mtab when the device is mounted can give you the needed info (copy and paste) to add the device to /etc/fstab.  (mtab is a dynamic file representing currently mounted / removable devices...  it uses the same format as fstab, so you can  simply copy the entry from mtab to fstab for that device, and then make sure the mount point listed in it exists (create it).  Once the mount point exists and the device is listed in fstab you can unmount / remount at any time with a simple "umount -a" / "mount -a" commands ( or by specifying the device if you have multiple removable devices).
« Last Edit: October 10, 2011, 12:54:29 PM by travisn000 »

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10665
  • MLUs Forever!
Re: Kindle Eject and Mount
« Reply #10 on: October 10, 2011, 01:00:05 PM »
Note that /etc/fstab shows where and how partitions on different kinds of devices should be mounted. /etc/mtab (as for instance /media/.hal-mtab) shows were and how they really are mounted. Never try to edit /etc/mtab.


..looking in /etc/mtab when the device is mounted can give you the needed info (copy and paste) to add the device to /etc/fstab.  (mtab is a dynamic file representing currently mounted / removable devices...  it uses the same format as fstab, so you can  simply copy the entry from mtab to fstab for that device, and then make sure the mount point listed in it exists (create it).  Once the mount point exists and the device is listed in fstab you can unmount / remount at any time with a simple "umount -a" / "mount -a" commands ( or by specifying the device if you have multiple removable devices).

I haven't tried this ........  but if the device is ejected then what is needed is a means to reattach it so that it can be mounted ....... so surely this will not reattach the device without unplugging and reinserting ...... which works anyway without an entry in fstab .....
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online Georgetoon

  • Hero Member
  • *****
  • Posts: 3199
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Kindle Eject and Mount
« Reply #11 on: October 10, 2011, 01:11:04 PM »
I wondered would

eject  -T  /dev/sd?

work to both eject and reattach the device?

It works with optical media drives (door open and close) but apparently not with USB drives -- won't reattach it seems.

Maybe there is a variation that will work ......  else it is a matter of unplugging and replugging the device.


Just noticed "eject /dev/sdd1"  .....  that should be  eject /dev/sdd  ....  without the partition number, as the command ejects the device (and probably unmounts all associated partitions first). Use the command with the  '-v' option to get a report of what it does.

regards


That almost works

Quote
# eject /dev/sdd -v
eject: device name is `/dev/sdd'
eject: expanded name is `/dev/sdd'
eject: `/dev/sdd' is not mounted
eject: `/dev/sdd' is not a mount point
eject: `/dev/sdd' is a multipartition device
eject: trying to eject `/dev/sdd' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sdd' using SCSI commands
eject: SCSI eject succeeded
# eject /dev/sdd -v
eject: device name is `/dev/sdd'
eject: expanded name is `/dev/sdd'
eject: `/dev/sdd' is not mounted
eject: `/dev/sdd' is not a mount point
eject: `/dev/sdd' is a multipartition device
eject: trying to eject `/dev/sdd' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sdd' using SCSI commands
eject: SCSI eject succeeded

« Last Edit: October 10, 2011, 01:12:36 PM by Georgetoon »
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10665
  • MLUs Forever!
Re: Kindle Eject and Mount
« Reply #12 on: October 10, 2011, 02:00:54 PM »
Quote
That almost works

Seems it did work ....   the device was ejected.

You could tell it to use the SCSI eject rather than have it go through trying until it finds the correct option by using this

eject -v -s /dev/sdd

My USB device is /dev/sde
Code: [Select]
[user@AMD ~]$ eject -v -s /dev/sde
eject: device name is `/dev/sde'
eject: expanded name is `/dev/sde'
eject: `/dev/sde' is not mounted
eject: `/dev/sde' is not a mount point
eject: `/dev/sde' is a multipartition device
eject: trying to eject `/dev/sde' using SCSI commands
eject: SCSI eject succeeded
[user@AMD ~]$

and the same device with one mounted partition ...

Code: [Select]
[user@AMD ~]$ eject -v -s /dev/sde
eject: device name is `/dev/sde'
eject: expanded name is `/dev/sde'
eject: `/dev/sde' is not mounted
eject: `/dev/sde' is not a mount point
eject: `/dev/sde' is a multipartition device
eject: unmounting `/media/LiveOS'
eject: trying to eject `/dev/sde' using SCSI commands
eject: SCSI eject succeeded
[user@AMD ~]$
« Last Edit: October 10, 2011, 02:03:00 PM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online Georgetoon

  • Hero Member
  • *****
  • Posts: 3199
  • Don't rush the bacon.:)
    • Georgetoon Cartoons!
Re: Kindle Eject and Mount
« Reply #13 on: October 10, 2011, 04:53:27 PM »
Quote
That almost works

Seems it did work ....   the device was ejected.

You could tell it to use the SCSI eject rather than have it go through trying until it finds the correct option by using this

eject -v -s /dev/sdd

My USB device is /dev/sde
Code: [Select]
[user@AMD ~]$ eject -v -s /dev/sde
eject: device name is `/dev/sde'
eject: expanded name is `/dev/sde'
eject: `/dev/sde' is not mounted
eject: `/dev/sde' is not a mount point
eject: `/dev/sde' is a multipartition device
eject: trying to eject `/dev/sde' using SCSI commands
eject: SCSI eject succeeded
[user@AMD ~]$

and the same device with one mounted partition ...

Code: [Select]
[user@AMD ~]$ eject -v -s /dev/sde
eject: device name is `/dev/sde'
eject: expanded name is `/dev/sde'
eject: `/dev/sde' is not mounted
eject: `/dev/sde' is not a mount point
eject: `/dev/sde' is a multipartition device
eject: unmounting `/media/LiveOS'
eject: trying to eject `/dev/sde' using SCSI commands
eject: SCSI eject succeeded
[user@AMD ~]$

Yes. It ejeted.but it did not remount.

I guess I'll just unplug and plug back in.
Toonfully,

Mark
-----------
Lenovo 14" ThinkPad Edge (0578F5U) with Core i3 Processor(i3-370M) 2.40 GHz 4GB RAM
Acer Aspire 9300 Laptop
Desktop Icy Dock system with AMD PHENOM X4 QUADCORE 9650 2.3GHZ 4MB L1 , ‎NVidia GEFORCE 9400GT 1GB 2X DVI PCIE graphics card, 22" Chimei monitor.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10665
  • MLUs Forever!
Re: Kindle Eject and Mount
« Reply #14 on: October 10, 2011, 05:58:40 PM »
Quote
Yes. It ejeted.but it did not remount.

I guess I'll just unplug and plug back in.

I don't know of a means to have a USB device recognised as present after it has been ejected, bar unplugging and reinserting ....  or turning off power and on again in the case of an external HDD.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT