You are not logged in.

#1 2004-08-07 23:26:51

bigpod
Member
Registered: 2004-04-13
Posts: 16

Problem with usb stick

Hello Everybody,

I have a problem with my 128mb ThumbDrive Secure,
I have installed hotplug and placed it in my rc.conf.
I modprobe usb_storage, sd_mod and i try to mount but i neither found
/dev/discs/discX or /dev/sdX i my /dev folder as i' ve seen in wiki(and other topics).

Does anyone know what to do ?  :shock:

Thx in advance.

Offline

#2 2004-08-08 00:27:21

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: Problem with usb stick

are you running stock or customized kernel?  you need the scsi storage support enabled.  and it might help to have the stick plugged in during bootup, so hotplug will detect it and load the modules.

under /dev, does anything sd* exist?  sometimes you need to mount sda, or sda1, depending on your usb stick.

Offline

#3 2004-08-08 04:17:29

colnago
Member
From: Victoria, BC
Registered: 2004-03-25
Posts: 438

Re: Problem with usb stick

I have a usb stick that works.  In my rc.conf I have hotplug and MODULES=(... usb_storage sd_mod), then I added tis to fstab:

/dev/sda  /mnt/usb vfat noauto,users,exec 0 0
/dev/sda1 /mnt/mp3 vfat noauto,users,exec 0 0

Since i have a usb mp3 player and a memory stick and they show up differently. 

Then I just plug it in and go to konquerer and navigate to the /mnt/... I have not checked if they show up as devices.  I use udev and set the permissions for ...root:users... to the sda*.  I did not make any rules for the usb like for cdrom, maybe I will try that and see if there are any benefits.  No special kernel compile, the 2.6.7 one from pacman.  The /dev/sda... should be there.

Check to see if the usb ports are off in your bios.

Offline

#4 2004-08-08 10:30:26

Fox
Member
Registered: 2004-07-28
Posts: 124

Re: Problem with usb stick

What's the output of dmesg?

Offline

#5 2004-08-09 09:09:38

torindan2
Member
Registered: 2004-07-15
Posts: 74

Re: Problem with usb stick

I'm not using hotplug, in $MODULES i have sd_mod usb_storage, and i'm using stock ide kernel.

when i was using devfs, after plugging my usbstick an entry in /dev were created. It's not always sd?1, some manufactures format them differently
and you may find it as sd?[234].

Try to unplug and insert again your usbstick (while computer is running !!!) so it would generate hotplug event.

The problem with devfs was that i wasn't sure if sda1 is my stick or something else (sometimes it was sdb1)

now on udev, i can have /dev/stick for stick /dev/camera for camera and so on. You can put this lines into /etc/udev/rules.d/00-myudev.rules

## MY STICK
BUS="usb", SYSFS{serial}="DAAAA13212748", kernel="sd?1" NAME="%k" SYMLINK="stick"

get serial number with usbview or search it in /sys (mounted as sysfs).

to mount a stick you must be root or have something like this in /etc/fstab

/dev/stick             /mnt/stick  auto      rw,users,noauto,noexec 0      0

Just be sure that you have an entry in /dev, and after that it should be no problem to mount it.

Offline

#6 2004-08-11 21:20:18

bigpod
Member
Registered: 2004-04-13
Posts: 16

Re: Problem with usb stick

Sorry for the late reply,
I have a stock kernel "kernel 2.6.6-1".
When i plug my usb stick i don' t find any /dev/sd* somenthing,
if i do a lsusb i can see stick in the list.

Btw i have the usb_storage and sd_mod in my rc.conf modules.

Thx for the replys.

Offline

#7 2004-08-11 22:49:39

neocephas
Member
From: orange, ca
Registered: 2004-02-14
Posts: 30

Re: Problem with usb stick

Hmm... I have the ide-scsi module loaded in my rc.conf and I can get /dev/sd* ... could that be the missing module?  Btw, I am only using udev and have hotplut disabled.

Also are the sd_mod and usb_storage modules actually loaded, or did u just put them in rc.conf.  After you put them in rc.conf, you have to either restart your computer or modprobe them.  (Sorry if you already know this)

Offline

#8 2004-08-12 22:46:04

bigpod
Member
Registered: 2004-04-13
Posts: 16

Re: Problem with usb stick

Probably it is because i had ide-scsi disabled in my rc.conf,
but now i don' t have my usb stick here to check it, when i' ll have it,
i will post to inform if the problem is solved.

Thx all the people who replied.  big_smile

PS. neocephas i had modprobed the modules big_smile ,  thx for the reply.

Offline

Board footer

Powered by FluxBB