Re: [Hampshire] Losing data on iPod

Top Page

Reply to this message
Author: John Hunt
Date:  
To: lug, Hampshire LUG Discussion List
CC: 
Subject: Re: [Hampshire] Losing data on iPod
Well, I got it working...just added an fstab entry which it seems to
use.. no doubt my usb flash drive will want to use it too.

I used this script which launches when the ipod is inserted (and the
commented fstab line in my fstab):

#!/bin/bash

# John's ipod wrapper script for banshee
# This will mount the ipod if not already mounted,
# update itunes db properly and then unmount the ipod

# /dev/sda        /media/ipod     vfat
rw,nosuid,nodev,quiet,shortname=mixed,uid=1000,gid=1000,umask=077,iocharset=iso8859-15,check=r,user
0 0
export IPOD_MOUNTPOINT="/media/ipod"
mount /media/ipod/
banshee
mktunes
umount /media/ipod/
umount -l /media/ipod/
umount -f /media/ipod/


Perhaps not the best script, but it now seems to work.

On the topic of the fstab file, does anyone know how I can address the
ipod/usb memory stick/girlfriends ipod uniquely? Perhaps using that
UUID= syntax like my hard disk partitions do?

Cheers,
John.