LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   External Drives (iPod and Pen Drives) (https://www.linuxquestions.org/questions/slackware-14/external-drives-ipod-and-pen-drives-166477/)

dhbiker 04-05-2004 12:13 PM

External Drives (iPod and Pen Drives)
 
I've got an iPod which I had working fine in SuSE, Mandrake etc. and a Cruzer Mini which I've never managed to get working (I was using an old kernel at the time). Anyhow I've been trying to get them working with no success, can someone please help me?

when I plug in my pen drive I get the following from dmesg

Code:

usb 2-3: new full speed USB device using address 4
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: USB NAND  Model: FLASH DISK        Rev: 0.20
  Type:  Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4

when I plug in the iPod I get
Code:

usb 2-3: new full speed USB device using address 4
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: USB NAND  Model: FLASH DISK        Rev: 0.20
  Type:  Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4

I've tried mounting pretty much every /dev/sda b c d etc. with no success. Any ideas?

cybrjackle 04-05-2004 01:42 PM

Do you have anything listed under /dev/sda1 or 2 for example?

ls /dev/ | grep sd

cdrecord --scanbus

http://neuron.com/~jason/ipod.html

http://pag.lcs.mit.edu/~adonovan/hacks/ipod.html

http://www.cs.duke.edu/~geha/ipod/


You could run into the problem I had, the ipod wasn't formated yet. Downside for me was i don't have mac/windows at home, so i had to buy a firewire card for my desktop at work (windows) run the software to format the drive and then I was able to use it in Linux.

dhbiker 04-06-2004 02:18 AM

under /dev/sda I have 1 to 15 listed

if I do cdrecord --scanbus i get command not found:scratch:

The iPod is definitely formatted, as I say I've been using it in SuSE with gtkpod for a while now with no problems but I'm finally looking to get rid of SuSE and go fully slack :D

if I try doing fdisk /dev/sda I get "Unable to open /dev/sda" similar messages for sdb etc.

I had a try doing tail /var/log/messages and got
[CODE]
Apr 6 07:57:14 darkstar ieee1394.agent[1031]: ... no drivers for IEEE1394 product 0x000000/0x00609e/0x010483
Apr 6 07:57:14 darkstar kernel: scsi1 : SCSI emulation for IEEE-1394 SBP-2 Devices
Apr 6 07:57:15 darkstar kernel: ieee1394: sbp2: Logged into SBP-2 device
Apr 6 07:57:15 darkstar scsi.agent[1049]: bogus sysfs DEVPATH=/devices/platform/host1/1:0:0:0
Apr 6 07:57:15 darkstar kernel: Vendor: Apple Model: iPod Rev: 1.30
Apr 6 07:57:15 darkstar kernel: Type: Direct-Access ANSI SCSI revision: 02
[CODE]

any ideas?

MS3FGX 04-06-2004 03:46 AM

You could run into the problem I had, the ipod wasn't formated yet. Downside for me was i don't have mac/windows at home, so i had to buy a firewire card for my desktop at work (windows) run the software to format the drive and then I was able to use it in Linux.

You couldn't use mkfs?

cybrjackle 04-06-2004 07:47 AM

dhbiker,

Oops, forgot you said it ran under suse ;0

Mine runs off of sda2

Check out this link and start around step 6 http://www.cs.duke.edu/~geha/ipod/

Might need to check above and make sure you have the correct modules in your kernel.

MS3FGX,

as far ask mkfs, i new it either needed to be fat or hfs and i didn't want to take a chance in breaking it since I just bought it. ;) Either way, it works!

cybrjackle 04-06-2004 07:49 AM

http://forums.gentoo.org/viewtopic.p...highlight=ipod

You could also check out that thread to see some of the things i did.

dhbiker 04-06-2004 10:03 AM

Still no luck :cry:

I don't have any kernel modules (everything I needed I built into the kernel). I have an incling it may be something to do with
Code:

Apr  6 15:59:16 darkstar ieee1394.agent[30868]: ... no drivers for IEEE1394 product 0x000000/0x00609e/0x010483
since no-one else seems to get that popping up in their tail /var/log/messages

any further ideas?

I have firewire support and sbp support compiled as part of the kernel (2.6.3)

cybrjackle 04-06-2004 10:15 AM

check out the script in step 7

http://www.cs.duke.edu/~geha/ipod/

run it and show us what you get.

cybrjackle 04-06-2004 10:16 AM

Have you followed the directions from that site ^ ?

dhbiker 04-07-2004 07:53 AM

I downloaded the script and tried it, I get nadda, nothing, squat, zip, zero :cry:

Code:

root@darkstar:/home/dhraimsy# sh rescan-scsi-bus.sh
Scanning hosts  channels 0 for
 SCSI target IDs  0 1 2 3 4 5 6 7 , LUNs  0
0 new device(s) found.
0 device(s) removed.


cybrjackle 04-07-2004 08:22 AM

cat /proc/bus/ieee1394/devices

What do you have?


fdisk /dev/sda

What shows up? <---- Don't write/change anything just view and exit


I would suggest makeing these modules in your kernel:



Quote:

SCSI support --->
<M> SCSI support
<M> SCSI disk support

IEEE 1394 (FireWire) support (EXPERIMENTAL) --->
<M> IEEE 1394 (FireWire) support (EXPERIMENTAL)
<M> OHCI-1394 support
<M> SBP-2 support (Harddisks etc.)
<M> IEEE1394_RAWIO
Make sure all of these are loaded:

Code:

scsi_mod
ieee1394
ohci1394
sbp2
sd_mod

alternatively you can manaully load these modules (as root) after rebooting:
Code:

modprobe -a ieee1394
modprobe -a ohci1394
modprobe -a sbp2
modprobe -a raw1394
modprobe -a sd_mod

Check /var/log/syslog,

From this error you got above, looks like sbp2 is haveing problems.

Quote:

I had a try doing tail /var/log/messages and got
[CODE]
Apr 6 07:57:14 darkstar ieee1394.agent[1031]: ... no drivers for IEEE1394 product 0x000000/0x00609e/0x010483
Apr 6 07:57:14 darkstar kernel: scsi1 : SCSI emulation for IEEE-1394 SBP-2 Devices
Apr 6 07:57:15 darkstar kernel: ieee1394: sbp2: Logged into SBP-2 device
Apr 6 07:57:15 darkstar scsi.agent[1049]: bogus sysfs DEVPATH=/devices/platform/host1/1:0:0:0
Apr 6 07:57:15 darkstar kernel: Vendor: Apple Model: iPod Rev: 1.30
Apr 6 07:57:15 darkstar kernel: Type: Direct-Access ANSI SCSI revision: 02
Try simply running (as root):

rmmod sbp2
insmod sbp2

BUT, since you have them compiled in, you probably cant remove them can you ;-)


Like i said before, i would strongly recommend recompiling your kernel w/ modules. That way once you get it working and use gtkpod or something else you can have it rmmod and eject your ipod "safely"


k?

dhbiker 04-07-2004 09:45 AM

cat /proc/bus/ieee1394/devices

I get a "No such file or directory"

will try re-compiling my kernel with modules (once I manage to get my machine compiling things again :( !!http://www.linuxquestions.org/questi...hreadid=167265)as you suggest and then get back to you

dhbiker 04-08-2004 03:45 AM

thanks for all the help!! I recompiled my kernel and everything works now:D

cybrjackle 04-08-2004 06:36 AM

Great!


All times are GMT -5. The time now is 08:55 AM.