So on various machines I have found I need to do many crazy things to use the great iPod on Linux. Here are some scripts and etc I have made to assist with this process. There my be two sets of some, with one being for hfs iPods and one for vfat iPods. Some machines’ USB systems work great and just plugging in the iPod will be enough to eventually use “mount” to mount it but others require lots of encounragement. A new DELL I got for instance does not like eject. After eject a lot of USB related things no longer work or will work again no matter what you load.
I am just getting the script contents up here now and will comment on each one later and give some more detail of the effort described.
#!/bin/sh
OK="n"
case "$1"
in
start)
su - -c "modprobe sbp2"
while [ $OK = n ]; do
echo "Connect iPod, wait a bit, then [enter] to continue"
read NETCONFIG
case $ENTER in
*) OK="y"
;;
esac
done
mount /mnt/ipod
;;
stop)
su - -c "rmmod sbp2; eject -v /dev/sdb2"
;;
*)
echo "ipod.sh ”
;;
esac
#!/bin/sh
case “$1″
in
start)
/sbin/modprobe ide-scsi
/sbin/modprobe usb-storage
/sbin/modprobe sd_mod;;
stop)
# /sbin/rmmod ide-scsi
/sbin/rmmod usb-storage
/sbin/rmmod sd_mod;;
esac
case “$1″
in
start)
su - -c “/home/jaysonl/bin/j_usb_storage.sh start”
mount /mnt/ipod
;;
stop)
su - -c “eject -v /dev/sdb”
;;
*)
echo “j_ipod.sh ”
;;
esac
#!/bin/sh
case “$1″
in
start)
/sbin/modprobe ide-scsi
/sbin/modprobe usb-storage
/sbin/modprobe sd_mod
/sbin/modprobe hfs;;
stop)
# /sbin/rmmod ide-scsi
/sbin/rmmod usb-storage
/sbin/rmmod sd_mod
/sbin/rmmod hfs;;
esac
case “$1″
in
start)
su - -c “/home/jaysonl/bin/j_usb_storage_hfs.sh start”
mount /mnt/hfspod
;;
stop)
su - -c “eject -v /dev/sdb”
;;
*)
echo “j_hfspod.sh ”
;;
esac
Finally after mounting whichever type, to use GTPPod with the correct mount point I created two menu shortcuts
gtkpod -m /mnt/ipod
gtkpod -m /mnt/hfspod
[edit]

Post a Comment