Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-27-2004, 04:46 AM
|
#1
|
Member
Registered: Sep 2003
Location: France
Distribution: Mandriva2007, Debian, OpenSuse, Slack10, FC6, PC-BSD, Solaris10
Posts: 65
Rep:
|
No USB module loaded /dev/sda1 not created
I (try to) use Mandrake 9.2 with Kernel 2.6.2-3 on a Laptop.
I cannot use my USB memory key, /dev/sda1 is not created and no USB module is loaded.
Any idea ?
(As I have many problems I have written a web page with (too ?) much information on
my Linux installation see link )
Thanks for help.
|
|
|
02-27-2004, 05:30 AM
|
#2
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
hmm...my memory stick (usb) uses /dev/sda4, but nevertheless...let's see.
you see your loaded modules (in terminal) like this:
lsmod
and probably you won't see any usb-stuff there. if you wish to see available usb-related modules, (in terminal) do this:
modprobe -l | grep usb
and you should get a list. then load the appropriate modules, I think what you need is usb-storage and perhaps usb-uhci....the list you get is just a list of locations to modules, like
/lib/modules/2.6.1/kernel/drivers/usb/storage/usb-storage.ko
for example. now this module is loaded by using "usb-storage" as the modulename (no quotes)...so no path nor .ko in it well, now load these modules (if you haven't build them into kernel, but have them as modules):
modprobe usb-storage
modprobe uhci-hcd
modprobe ohci-hcd
I guess the two first should be enough...if the "usb-storage" isn't enough itself after you've modprobed those, check out what sda's you got in your /dev/ (or did you got any) and then just mount what you need.
|
|
|
02-27-2004, 07:27 AM
|
#3
|
Member
Registered: Sep 2003
Location: France
Distribution: Mandriva2007, Debian, OpenSuse, Slack10, FC6, PC-BSD, Solaris10
Posts: 65
Original Poster
Rep:
|
Many thanks for your reply, it was sufficient to modprobe
usb-storage and uhci-hcd
May I ask two additional questions ?
- when I log out and log in I have to type again
su .... modprobe... is it possible to have the modules automatically
loaded ?
- is it necessary tu umount the memory stick before log out
(root required to umount) ?
Thanks again
|
|
|
02-27-2004, 07:38 AM
|
#4
|
Member
Registered: Aug 2003
Location: Aarhus, Denmark
Distribution: Slackware, Ubuntu
Posts: 122
Rep:
|
You can definitely load the modules at boot. Hopefully only small adjustments are needed. How does your /etc/modules.conf look like? Does it have a line:
probeall usb-interface usb-uhci
At least mine do, and my usb-stick works like a charm.
greetings,
kamstrup
|
|
|
02-27-2004, 03:11 PM
|
#5
|
Member
Registered: Sep 2003
Location: France
Distribution: Mandriva2007, Debian, OpenSuse, Slack10, FC6, PC-BSD, Solaris10
Posts: 65
Original Poster
Rep:
|
Thanks for your reply
I have tried your solution but I probably misunderstood as it didn't work.
I have added the two lines
modprobe usb-storage
modprobe uhci-hcd
at the end of /etc/rc.d/rc.local
Now it is okays.
@+
|
|
|
02-27-2004, 03:35 PM
|
#6
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
nice if it works.. and to your question about the umounting of the stick: unless the stick is umounted, there is a real possibility (danger!) to a _data loss_, that means, if you don't umount it, the files you've saved to it may become unworkable or get missing...so I suggest you _do_ umount it when logging out. BUT - if you don't remove it (if you _do_ leave it in the usb-port), and the machine stays powered on, I guess there is no need to umount it. only if you reboot/turn off your PC/plug the stick out, then it's needed to umount.
and about the root privileges...have a look at /etc/fstab file, it should contain a line for your stick, looking somehow like this:
/dev/sda1 /mnt/memstick auto user,noauto,unhide 0 0
(first is device, then the mountpoint, then the used filesystem (auto -> autodetected), then options and dump/pass). you should have this line, where it is told what device it is, where it is mounted when it's mounted, what fs it uses (auto is good), and options - if you specify "user" in options, a user should be able to both mount AND umount the device! noauto means that it's not automatically mounted at boot....so try that one out. remember to put the mountpoint and device paths to what they are in your machine...if you put them wrong, it's nothing dangerous I think but the stick may not mount correctly unless the fstab -file is being corrected (and possibly a reboot is needed?)
so a line in the fstab, like the one above, and then try mounting/umounting as user, should work? not sure..ther might be some other option too which you must enable to let your users u/mount the devices...but try.
|
|
|
02-27-2004, 04:01 PM
|
#7
|
Member
Registered: Sep 2003
Location: France
Distribution: Mandriva2007, Debian, OpenSuse, Slack10, FC6, PC-BSD, Solaris10
Posts: 65
Original Poster
Rep:
|
This is the line that was added to the file /etc/fstab I do not recognize your syntax ! Anyway it works.
none /mnt/hd supermount dev=/dev/sda1,fs=ext2:vfat,--,iocharset=iso8859-15,codepage=850,kudzu 0 0
Thanks
|
|
|
02-29-2004, 03:11 PM
|
#8
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
hmm...ok, that seems a bit different than what I've used to see in fstab guess your distro has some own way of doing...but good if it works.
|
|
|
All times are GMT -5. The time now is 01:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|