# Kindle Offline 

## Privacy

I highly recommend switching off 'whispersync for books' and amending
the 'Privacy' settings of your device.
Better still don't connect it to your WIFI...


## Connect to Linux

Connect your kindle to your computer with a USB cable; the device
should display 'USB Drive Mode'.


Identify the kindle drive using 'dmesg':

    [ 4802.467725] scsi 7:0:0:0: Direct-Access     Kindle   Internal
    [ 4802.468745] sd 7:0:0:0: Attached scsi generic sg2 type 0
    [ 4802.473757] sd 7:0:0:0: [sdb] 6385664 512-byte logical blocks:
    [ 4802.579692] sd 7:0:0:0: [sdb] Write Protect is off
    [ 4802.579705] sd 7:0:0:0: [sdb] Mode Sense: 0f 00 00 00
    [ 4802.689915] sd 7:0:0:0: [sdb] Write cache: enabled, read
    [ 4802.924022]  sdb: sdb1
    [ 4803.169675] sd 7:0:0:0: [sdb] Attached SCSI removable disk


Find the UUID of the device:

    # blkid /dev/sdb1
    /dev/sdb1: LABEL_FATBOOT="Kindle" LABEL="Kindle" UUID="####-####"
BLOCK_SIZE="512" TYPE="vfat"


Add UUID to '/etc/fstab':    

    # Kindle
    UUID='####-####'  /mnt/kindle   auto user,noauto,nodev   0   0


Make directory on the filesystem to mount it to:    

    # mkdir /mnt/kindle


Mount the kindle:    

    $ mount /mnt/kindle 


You can now copy books in .txt or .mobi format directly to the
device; simply copy your files to '/mnt/kindle/documents'.


Unmount the device before disconnecting the USB cable:

    $ umount /mnt/kindle


## Get free books from Gutenberg

I have written a small utility[1] for getting books of the correct
format onto your kindle once mounted using the above instructions.

There is also a daily updated RSS feed[2] of newly added books to the
Gutenberg catalogue which can provide the book number for use with
the above utility. Just take the last number from the resource URI:
gopher://gopher.pglaf.org/1/6/7/6/5/67650

And execute the following command, after installing the utility.

    $ getGutenbergBook 67650 


[1](git://gopher.icu/gutenbergToKindle)
[2](gopher://gopher.icu/0/gutenberg/newbooks.atom.xml)