LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-25-2006, 06:22 AM   #16
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32

Quote:
cat /usr/src/linux/.config | grep CONFIG_BLK_DEV_SD
where is ur linux source for 2.6, is it there in /usr/src or in ur home(also if it is in /usr/src what does the /usr/src/linux points to have u made the simlink, is it pointing the linux-2.6.. folder, do a ls -al from /usr/src)
if so it is not showing ur .config...

Quote:
You need sd_mod, scsi_mod and usb_storage loaded. You have sd_mod and usb_storage, and i think you also have scsi_mod (which is scsi support) in the kernel (you can check by the same command i wrote just replace the end with CONFIG_SCSI)
this is needed, when u compile make these things
Quote:
mknod /dev/sda1 b 8 1
hope not needed, we havent done these, if u enabled hotplug in the boot it will assign these
Quote:
and add all those entry to my fstab:
/dev/sda1 /mnt vfat noauto,users,rw 0 0
/dev/sdb1 /mnt2 vfat noauto,users,rw 0 0
/dev/sdc1 /mnt3 vfat noauto,users,rw 0 0
/dev/sdd1 /mnt4 vfat noauto,users,rw 0 0
dont do this simply.... first u let the kernel to assign the device,
how u know that it is /dev/sdb1 why not /dev/sda2-->the second device, for this u check it by plugging two devices.
also dont mount it in /mnt like
Quote:
/dev/sda1 /mnt vfat noauto,users,rw 0 0
instead create dir in /mnt, seperate folders if u want.

some times when u built in the drivers in kernel it shows some problem, so u can try them as modules. best of luck rkrishna
 
Old 01-26-2006, 11:53 PM   #17
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Smile

Quote:
Originally Posted by pdw_hu
You could try that using everything as a module.

When you run modules, does that affect stability and speed to the box?

Will the module be loaded everytime I put a compact flash card in the reader, or it will load once?

What is actually mknod do to the system? I don't really understand the option that are past to the command espacially the numbers (-b 8 1)

Litle off topic here, but I want to learn

Claude
 
Old 01-27-2006, 01:47 AM   #18
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
I don't think either using modules or built-in-kernel 'drivers' (eek :P) will slow down your system. At least you won't notice it. I use modules for NIC, USB (uhci,ohci), and soundcard, cause since i use them 24/7 why bother modularizing them? This is really a personal issue stick with what your comfortable with.
Actually the only advantage I see for using modules is when something goes wrong and you need to debug.
Well if you really want tech-savy info on mknod, google for it.

It basicly creates the 'node'-s in /dev, but those are a bit different from other files, since they represent hardware rather than data files.
For more info check man mknod
 
Old 01-27-2006, 12:33 PM   #19
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Question

Quote:
Originally Posted by rkrishna
this is needed, when u compile make these things
hope not needed, we havent done these, if u enabled hotplug in the boot it will assign these dont do this simply.... first u let the kernel to assign the device

I totally understand your point here, but this is how my system reacts when I connect a reader in it:

- Connect card reader WITHOUT compact flash card in it in a USB port = sd_mod module load, /dev/sda created NO /dev/sda1 present.

- Connect card reader WITH compact flash card in it in a USB port = sd_mod module load, /dev/sda created AND /dev/sda1 present. (so hotplug is working correctly)

This is why in the first place I wanted to do a mknod to create /dev/sda1 etc... this way, if I don't have a card in the reader, I can do a mount /dev/sda1 right away.

Is this ok?

Claude
 
Old 01-27-2006, 12:50 PM   #20
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
Why would you mount a card reader if nothing's in it, in the first place?
 
Old 01-27-2006, 01:12 PM   #21
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Well, let say I boot the system without any card in the reader (because I plan to use it, but later with a card in it) the only solution I would have would be to connect the reader with a card in it so /dev/sda1 becomes created... this is why I want to create those before so I'm not facing this issue. Is it bad to create node like this in advance?


Thanks

Claude
 
Old 01-28-2006, 05:25 PM   #22
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
No it's not
 
Old 02-09-2006, 02:07 PM   #23
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Better... but issue still present...

After mounting/unmounting about 10 flash card per hour for about 8 hour, I had the issue of sda dissapearing again (it seem that have SD_MOD as a module and entries put in fstab helped altought since it happend only twice instead of frequently asin the past)

Here is my DMESG when mount stop working for the device:
-------------------
usb 1-6: USB disconnect, address 11
usb 4-2: new full speed USB device using address 2
usb 4-2: device not accepting address 2, error -71
usb 4-2: new full speed USB device using address 3
usb 4-2: device not accepting address 3, error -71
root@prototype1:~/MASTER_FILES/current/day1# lsmod
Module Size Used by
eeprom 8712 0
w83781d 34560 0
i2c_i801 9232 0
i2c_sensor 4096 2 eeprom,w83781d
i2c_isa 3200 0
i2c_core 25088 5 eeprom,w83781d,i2c_i801,i2c_sensor,i2c_isa
sd_mod 20096 0
usb_storage 31872 4294967294
uhci_hcd 33936 0
ehci_hcd 30852 0
nvidia 3921628 72
ohci_hcd 22788 0
--------------------

Look at my usb_storage 31872 4294967294 see how big used by is! it is normally around 0 when working properly...

Any other output that could be useful if the problem again? Should I force the module to unload and reload it?

I have found that removing the device and connecting it in another USB port with flash card in it sometimes sole the issue (sda1 was accessible again...)
 
Old 02-10-2006, 02:54 AM   #24
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
Hehe, well I don't know, probably reloading it would help.
 
Old 02-10-2006, 08:28 AM   #25
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Quote:
Originally Posted by pdw_hu
Hehe, well I don't know, probably reloading it would help.
Can you reload a module that is in use? (This is what the kernmel tell me when I try to unload it) If so what is the command to do so?

Claude
 
Old 02-11-2006, 07:34 AM   #26
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
well first you have to unload the modules which are using it, naturally
rmmod is the command.
 
Old 02-11-2006, 11:46 AM   #27
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Quote:
Originally Posted by pdw_hu
well first you have to unload the modules which are using it
So if OHCI and other Usb module are in use, I have to unload those... but if I do so, all USB device such as mouse ( I have 6 connected) will stop working. Do you think that if I compile all USB related module within the kernel (not as module) I would be able to reload SD_MOD and USB_STORAGE without having the error that tells me that other modules are using it?


Hope my question is clear enough...

Claude
 
Old 02-11-2006, 05:47 PM   #28
kuitang
Member
 
Registered: Sep 2005
Distribution: Slackware, Ubuntu, OS X
Posts: 58

Rep: Reputation: 15
go into /dev and try deleting and note the majors/minors of sda and sda1. Delete them and make new ones with mknod (see man page). That's assuming USB and SCSI support work fine. This worked on my box several times.
 
Old 02-12-2006, 11:10 AM   #29
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Quote:
Originally Posted by kuitang
go into /dev and try deleting and note the majors/minors of sda and sda1.


How can you note the majors/minors of sda and sda1? By running a program? What are majors/minors? Numbers?


Not sure I understand what you want me to do...


Claude
 
  


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
forcing the order of /dev/sda /dev/sdb etc.. jdaniel Linux - Software 5 05-23-2006 07:41 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM
/dev/sda and /dev/sda1 disappeared using sii3112A striderstrahan Linux - Software 0 09-16-2004 05:00 AM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:48 PM.

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