LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2005, 06:07 AM   #16
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398

Quote:
sda: I/O error: dev 08:00, sector 0
- I googled on this:

You might try adding "max_scsi_luns=7" to your /etc/modules.conf and rebooting.

Quote:
Would it work better if I had the 2.6 kernel?
Well, all I can say is that my 2.6 kernel with Mandriva 2005LE deals with USB and memory sticks & cardreaders much better than my 2.4 kernel & Mandrake 9.1, but don't give up just yet!
 
Old 07-23-2005, 08:57 AM   #17
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
Thank y'all
I finally got it to work.
That max_scsi_luns=7 to your modules.conf does not work, but by googling for that I do did get it to work.
I'Il write a small howto here how to get it to work in Slackware(this should work fine for other distro's too).
 
Old 07-23-2005, 08:59 AM   #18
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Yoooooo Hoooooo & Congratulations!

Please post your solution here.

Thanks
 
Old 07-23-2005, 09:35 AM   #19
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
Getting your usb card reader to work.

Getting your card reader(with multiple slots) to work in Slackware(10.1 in my case)

Enable SCSI Lun's in your kernel
Become root using su:
Quote:
# su
Type in your root password to become root.
Now, lets move to the directory where we have our kernel source:
Quote:
# cd /usr/src/linux
There are now three posibilities to enable SCSI LUN, the first is to manually edit .config (myeditor .config), the second is to edit using the command line menu (make menuconfig) and the third using the X version of the menu (make xconfig).
I choose for the second option and did:
Quote:
# make menuconfig
If you're using an editor makesure you have this line in your .config:
Quote:
CONFIG_SCSI_MULTI_LUN=y
This will make SCSI LUN built in your kernel.
If you're using a menu(possibility 2 and 3) then:
Scroll down with the arrow key to SCSI Support----> and press Enter
On the next page, check that "Probe all LUNs on each SCSI device" is marked as either a module (in which case you'll have to make sure it is loaded) or built-in.
Now exit and save the changes.
It's now time to compile your kernel(this assumes you're using the 2.4 kernel, for the 2.6 kernel it's a bit different):
Quote:
# make dep && make bzImage modules modules_install
This can take some time(like an hour or so), so you can easily do something else.
After that is done you will need to copy the kernel image to your /boot directory:
Quote:
# cp arch/i386/boot/bzImage /boot
Note: You might wanna give it an other name so that you can choose between 2 kernel to boot from, just in case the newly kernel you've created isn't working.

Setting a maximum
For some strange reason we need to set a maximum of LUN's to use.
We need to pass such parameters to the kernel on booting time, so choose your favourite editor and open up /etc/lilo.conf.In example:
Quote:
vi /etc/lilo.conf
No scroll down to your linux part:
In example:
image = /boot/vmlinuz
root = /dev/hda1
label = Desktop
read-only
[/quote]
This is how it might look like.Now, just add the following line to it:
Quote:
append = "max_scsi_luns=7"
Now, to apply your changes, you still need to run lilo:
Quote:
# lilo
You're not yet ready, you still need to add a line to modules.conf, so start up you're favorite editor again and edit /etc/modules.conf.In example with vi:
Quote:
# vi /etc/modules.conf
Add the following line:
Quote:
options scsi_mod max_scsi_luns=7
It's now time to reboot your pc.

Mounting your card reader
Plug in your card in your card reader first, and then plug your card reader in your usb port.
Now let's check out /var/log/messages(you will need to be root for all these commands again):
Quote:
# cat /var/log/messages | tail
This is how my output looked like:
Quote:
Jul 23 14:52:22 Hylke kernel: usb.c: registered new driver usb-storage
Jul 23 14:52:22 Hylke kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jul 23 14:52:22 Hylke kernel: sda: Unit Not Ready, sense:
Jul 23 14:52:22 Hylke kernel: sda: I/O error: dev 08:00, sector 0
Jul 23 14:52:22 Hylke kernel: sdb: Unit Not Ready, sense:
Jul 23 14:52:22 Hylke kernel: sdb: I/O error: dev 08:10, sector 0
Jul 23 14:52:22 Hylke kernel: sdc: sdc1
Jul 23 14:52:22 Hylke kernel: sdd: Unit Not Ready, sense:
Jul 23 14:52:22 Hylke kernel: sdd: I/O error: dev 08:30, sector 0
Jul 23 14:52:22 Hylke kernel: USB Mass Storage support registered.
As you can see, sdc is the only one that's not complaining, and has a partition sdc1.
That's the one we need.
Again, launch your favourite editor and open /etc/fstab:
Quote:
# vi /etc/fstab
Add the following line to /etc/fstab:
Quote:
/dev/sdc1 /mnt/cardreader auto user,noauto,owner,rw 0 0
You might wanna change sdc1 into some other number depending on your /var/log/messages output.
Now, log out from root and execute the following command as a normal user:
Quote:
# mount /dev/sdc1
This will mount your card through your card reader in /mnt/cardreader

Have phun,
Hylke


I would like to thank all the guys/girls from this thread who helped me, I couldn't ever do it without there help.
 
Old 07-23-2005, 09:49 AM   #20
ditch*
Member
 
Registered: Jul 2004
Posts: 50

Rep: Reputation: 15
Hi !

I have a similar problem. I read the stuff on the thread, but I wasn't sure how to use it...

I am building linux (almost) from scratch. I've used a debian CD to install just the very basic stuff and I want to carry on installing everything else myself.

I need to install the X window system, but first I have to get the files on my computer. I was planning to do this with a removable USB pen, but the pen doesn't work yet. Here's what I did:

mount -t vfat /dev/sda1 /mnt

and I get

mount: /dev/sda1 is not a valid block device.

I guess I just need to configure something to make it work, but I don't know where to start. Is there a debian configuration program I can use? Or should I edit some file?

Any help would be great!

Thanks,

Grisha.
 
Old 07-23-2005, 10:41 AM   #21
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ditch*
Hi !

I have a similar problem. I read the stuff on the thread, but I wasn't sure how to use it...

I am building linux (almost) from scratch. I've used a debian CD to install just the very basic stuff and I want to carry on installing everything else myself.

I need to install the X window system, but first I have to get the files on my computer. I was planning to do this with a removable USB pen, but the pen doesn't work yet. Here's what I did:

mount -t vfat /dev/sda1 /mnt

and I get

mount: /dev/sda1 is not a valid block device.

I guess I just need to configure something to make it work, but I don't know where to start. Is there a debian configuration program I can use? Or should I edit some file?

Any help would be great!

Thanks,

Grisha.
I've had that problem too.
I simply solved it by puting in my mp3player after hardware detection(hotpluging).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB jumpdrive/ USB hud-card reader issues o0gnubee0o Linux - Hardware 4 07-03-2005 07:12 PM
USB Card Reader Bryanlee Linux - Hardware 4 05-12-2005 06:27 AM
USB multi-card reader; only one card can be mounted in Slack 10. KidsWriter71 Linux - Hardware 6 09-11-2004 08:24 PM
USB card reader: mounting problems alek66 Slackware 6 08-18-2004 08:28 PM
Recognizing USB card reader when card is inserted hqo201 Fedora 0 08-02-2004 06:08 PM


All times are GMT -5. The time now is 09:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration