[NBLUG/talk] How to use a new 40Gig iPod with Debian and USB
Jake Appelbaum
jake at nblug.org
Tue Jan 4 22:01:43 PST 2005
Today I purchased an iPod. It's a '40 GB Mac + PC' iPod and it uses the
HFS+ file system on the actual device. I didn't want to convert the iPod
to use fat32, I wanted the iPod to just work. It does 'just work' and I
didn't need to mess around with the iPod at all. Some people suggest you
change the format to fat32. That might be useful if you also wanted to
get the device working with a windows machine or just to use it as a
generic usb mass storage disk. If I ever do that, I will add to this.
Here is my system information:
Sony Vaio VGN-S150
Debian Gnu/Linux Testing version 3.1
Linux thelema 2.6.8 #1 Sun Oct 10 15:53:00 PDT 2004 i686 GNU/Linux
Here is how I got it working:
How I recently setup a new 40 Gig iPod with Debian Gnu/Linux.
Plug in the device to your USB port.
Read the dmesg output:
dmesg
usb 1-1: new high speed USB device using address 4
scsi2 : SCSI emulation for USB Mass Storage devices
Vendor: Apple Model: iPod Rev: 1.63
Type: Direct-Access ANSI SCSI revision: 02
sda: Spinning up disk.......ready
SCSI device sda: 78126048 512-byte hdwr sectors (40001 MB)
sda: Write Protect is off
sda: Mode Sense: 64 00 00 08
sda: assuming drive cache: write through
/dev/scsi/host2/bus0/target0/lun0: [mac] p1 p2 p3
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
USB Mass Storage device found at 4
Make the mount point (as root):
mkdir /mnt/ipod
Insert the proper file system kernel module:
modprobe hfsplus
Add the module name to /etc/modules so it's loaded at boot with this
line:
hfsplus
In my case I added these lines to /etc/fstab:
# iPod via usb2
/dev/sda3 /mnt/ipod hfsplus defaults,user,noauto 0 0
To mount by hand:
mount -v -t hfsplus /dev/sda3 /mnt/ipod
Install gtkpod:
apt-get install gtkpod
Setup the iPod for use with gtkpod:
Mount the iPod.
Select the menu 'File' and select 'Create Directories'
I then added the music using gtkpod, pressed the sync button and it all
copied over.
Then you need to execute the command:
eject -v /mnt/ipod
If you want the iPod to "eject" each time you're done with gtkpod, you
need sudo:
apt-get install sudo
Add this to /etc/sudoers:
ALL ALL= NOPASSWD: /usr/bin/eject /mnt/ipod
Then you create the script like so:
touch ~/.gtkpod/gtkpod.out
chmod +x ~/.gtkpod/gtkpod.out
And add the two following lines to that file:
#!/bin/bash
/usr/bin/sudo /usr/bin/eject /mnt/ipod
That's it. No messing up the iPod. No need to change the native file
system of the iPod. It works.
Just launch gtkpod from now on and it's ready to go.
( Much of this information and more can be gathered by reading this
site: http://people.csail.mit.edu/people/adonovan/hacks/ipod.html )
--
Jake Appelbaum <jake at nblug.org>
More information about the talk
mailing list