LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-31-2003, 02:51 AM   #1
linuxlover1
Member
 
Registered: Jun 2003
Location: UK
Posts: 54

Rep: Reputation: 15
USB hard drive problem !


Hello to all !,
I am using Slackware 9.1 ,Kernel 2.4.22
I recentley bought an 32mb Usb hard drive. I pluged in the USB hd and i cant
find where the USB hard drive location is, inside Linux.
Can i transfer data Into USB HD from Win systems to Linux and vice versa ?
Thx for the help !
 
Old 12-31-2003, 08:08 AM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
here is the guide to get a mass storage digital camera to work, the steps are probably the same for any USB mass storage device.

http://www.brothas.net/~nugator/Fuji...xandLinux.html
 
Old 12-31-2003, 09:09 AM   #3
linuxlover1
Member
 
Registered: Jun 2003
Location: UK
Posts: 54

Original Poster
Rep: Reputation: 15
thx for the help dude, but the url seems broken
 
Old 12-31-2003, 09:11 AM   #4
linuxlover1
Member
 
Registered: Jun 2003
Location: UK
Posts: 54

Original Poster
Rep: Reputation: 15
Any other idias , on how to locate the USB folder,icon or sth on Linux ?
 
Old 12-31-2003, 09:17 AM   #5
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
It seems OK to me... anyway here is what it says, I've just ripped ot off that site so a big kudos to the author Gösta Jonasson!



Kernel configuration and module compilation

Go to your Linux kernel source directory (often located at /usr/src/linux). If you don't have the kernel source download it at http://www.kernel.org


Become root and start the kernel configuration program

/usr/src/linux/2.4.19 #make menuconfig


Scroll down to USB support and check <M> (module will be created) to Support for USB and one of EHCI, UHCI, OHCI. I used UHCI (Intel...) support. Scroll down some more and check <M> at USB Mass Storage Support.


Now go back to the main menu and choose SCSI support. Maybe you already have this installed in your kernel like me otherwise check <M> or <*> (built in to the kernel) on SCSI support and one or more of SCSI disk support, SCSI tape support, SCSI CD-ROM or SCSI generic support.

Save your kernel configuration and compile your kernel if you added any <*> otherwise just
compile the modules and install them


Module compilation:

/usr/src/linux/2.4.19 #make dep

/usr/src/linux/2.4.19 #make clean

If you want to compile the kernel you can do it here, see below

/usr/src/linux/2.4.19 #make modules

/usr/src/linux/2.4.19 #make modules_install


Kernel compilation (only if you marked something with <*> in the configuration):

/usr/src/linux/2.4.19 #make bzImage (If you want to compile the kernel!)

/usr/src/linux/2.4.19 #mv arch/i386/boot/bzImage /boot/bzImage

Maybe you're using lilo and should make some changes with that

/usr/src/linux/2.4.19 #reboot (Your system shoule be rebooted)

Loading the modules

First you should setup the paths to your newly compiled modules in your /etc/modules.conf

Check where you have usbcore.o, usb-uhci.o (or usb-ehci.o or usb-ohci.o) and usb-storage.o, the following configuration worked for me.

path[usbcore]=/lib/modules/2.4.19/kernel/drivers/usb

path[usb-uhci]=/lib/modules/2.4.19/kernel/drivers/usb

path[usb-storage]=/lib/modules/2.4.19/kernel/drivers/usb/storage


Then add to your startup script and/or type at the prompt

/sbin/modprobe usbcore

/sbin/modprobe usb-uhci

/sbin/modprobe usb-storage

You can check if they were loaded correctly by running lsmod

#lsmod

Module Size Used by Tainted: P

usb-storage 23596 0

usb-uhci 23276 0 (unused)

usbcore 36480 0 [usb-storage usb-uhci]


If you compiled your scsi-drivers as modules you should load them in a similar way. I don't know exactly how but the drivers are probably located at /lib/modules/2.4.19/kernel/drivers/scsi/ or something like that.


Checking if your camera is detected by Linux
You can now hook up your camera with the USB cable and turn the camera on.
Read the /proc/scsi/scsi file

# more /proc/scsi/scsi

Attached devices:

Host: scsi0 Channel: 00 Id: 01 Lun: 00

Vendor: QUANTUM Model: VIKING 4.5 WSE Rev: 8808

Type: Direct-Access ANSI SCSI revision: 02

Host: scsi1 Channel: 00 Id: 00 Lun: 00

Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00

Type: Direct-Access ANSI SCSI revision: 02

Mine tells me about two devices, my scsi hard-drive and my Fuji FinePix camera.
Then I list my /dev/ directory for scsi devices

# ls /dev/sd??

/dev/sda1 /dev/sda2 /dev/sda3 /dev/sdb1

My first three dev/sda* devices are partitions on my scsi drive (sda) and the /dev/sdb1 is my camera.
If you don't have any other scsi devices your camera is probably /dev/sda1.


Mounting your USB mass storage (your camera)
Create a new directory, for example /mnt/FujiFinePix
Add a new line to your /etc/fstab file

/dev/sdb1 /mnt/FujiFinePix vfat ro,noauto,user 0 0


Where /dev/sdb1 might be /dev/sda1 for you.
Check that your camera is hooked up and turned on and then mount it

# mount /mnt/FujiFinePix

If everything has worked out fine just browse your /mnt/FujiFinePix directory! Quite simple isn't it!
 
Old 01-13-2004, 02:17 PM   #6
linuxlover1
Member
 
Registered: Jun 2003
Location: UK
Posts: 54

Original Poster
Rep: Reputation: 15
I did it and it works..
thx a lot dude
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Debian usb ntfs hard drive problem hutch Debian 4 09-28-2005 09:33 PM
Problem mounting USB hard drive kernelbuster Linux - Enterprise 0 02-14-2005 04:36 PM
Problem running linux from usb hard drive ard9 Linux - Laptop and Netbook 1 06-18-2004 07:07 AM
USB Hard Drive Problem blankx87@m-i-m. Linux - Newbie 3 11-17-2002 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration