Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mounting a usbkey
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Wed May 18, 2005 1:05 am    Post subject: mounting a usbkey Reply with quote

hi im trying to mount a usb key, I know it found it because when I do an lsusb it says

Code:

root@tux fuag # lsusb
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 003: ID 066f:821c SigmaTel, Inc.
Bus 002 Device 002: ID 046d:c024 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000


However, there is no /dev/sda...

Code:

root@tux fuag # /dev/
.udevdb  cdroms   fd       input    pty      snd      vc       
ataraid  discs    ida      misc     rd       sound    vcc     
cciss    fb       ide      pts      shm      tts     
root@tux fuag # /dev/
Back to top
View user's profile Send private message
mikecore
Guru
Guru


Joined: 29 Dec 2003
Posts: 342
Location: Toledo, Ohio

PostPosted: Wed May 18, 2005 1:45 am    Post subject: Mine is under Reply with quote

I found mine under

/dev/ub/a/part1

It used to be under "/dev/usb" but i updated my system and world
after that it changed to what it is now <-- don't know why <--really didn't care too
much, but it would be nice to know why it changed!

anyhow try there.
Back to top
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Wed May 18, 2005 1:57 am    Post subject: Reply with quote

never mounted any usb thing in linux before so no clue even how to tell if I have found it, all though I would assume it would be a directory in /dev/ whose subdirectory has all my usb files in it, but there is not /dev/ub :cry:
Back to top
View user's profile Send private message
mikecore
Guru
Guru


Joined: 29 Dec 2003
Posts: 342
Location: Toledo, Ohio

PostPosted: Wed May 18, 2005 2:55 am    Post subject: Reply with quote

did you build support for usb storage into your kernel?
Back to top
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Wed May 18, 2005 3:34 am    Post subject: Reply with quote

yeah, have it enabled in biios turns out sda1 was there I was just bieng retarded and I still cant mount it, but i know it detects it because of lsusb, if i know it detects it, isnt there some way of finding out hwere it is?

Code:

mount: /dev/sda is not a valid block device
root@tux fuag # mount /dev/sda2 /mnt/usbstick/
mount: /dev/sda2 is not a valid block device
root@tux fuag # mount /dev/sda3 /mnt/usbstick/
mount: /dev/sda3 is not a valid block device
root@tux fuag # mount /dev/sda4 /mnt/usbstick/
mount: /dev/sda4 is not a valid block device
root@tux fuag # mount /dev/ub/a/part1 /mnt/usbstick/
mount: special device /dev/ub/a/part1 does not exist
root@tux fuag # mount /dev/sda1 /mnt/usbstick/
mount: /dev/sda1 is not a valid block device
root@tux fuag # mount -t vfat /dev/sda1 /mnt/usbstick
mount: /dev/sda1 is not a valid block device
root@tux fuag # mount -t vfat /dev/sda /mnt/usbstick
mount: /dev/sda is not a valid block device
root@tux fuag # mount -t vfat /dev/sda2 /mnt/usbstick
mount: /dev/sda2 is not a valid block device
root@tux fuag # mount -t vfat /dev/sda3 /mnt/usbstick
mount: /dev/sda3 is not a valid block device
root@tux fuag # mount -t vfat /dev/sdb /mnt/usbstick
mount: /dev/sdb is not a valid block device
root@tux fuag #



thats code of me going crazy and pulling hair out whachig my usbstick and thinking of the valuable mp3's inside, :lol:
Back to top
View user's profile Send private message
mikecore
Guru
Guru


Joined: 29 Dec 2003
Posts: 342
Location: Toledo, Ohio

PostPosted: Wed May 18, 2005 4:29 am    Post subject: Reply with quote

yeah, have it enabled in biios turns out sda1 was there I was just bieng retarded and I still cant mount it"

It must be built into the kernel or as a module that can be loaded.

You need vfat file system support in the kernel
You USB support in the kernel under "device drivers" section and under that you need mass
storage support. those are all options for the kernel config.

Im not sure what you ment it is enabled in the bios
Back to top
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Wed May 18, 2005 5:03 am    Post subject: Reply with quote

yeah, I meant to say kernel, have all those compiled in. :?
Back to top
View user's profile Send private message
HoLzPLatTeN
n00b
n00b


Joined: 11 Feb 2005
Posts: 57
Location: The middle of nowhere

PostPosted: Wed May 18, 2005 8:40 am    Post subject: Reply with quote

Check your kernel config: usb storage and scsi disk support is needed to be able to mount a usb storage device.
You will also need vfat or ntfs support if it has a vfat or ntfs filesystem ;)
_________________
Unanswered posts
Back to top
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Wed May 18, 2005 4:55 pm    Post subject: Reply with quote

affirmative, made sure vfat, ntfs, usb support, and usb mass storage device support were in my bios, wait I dont think i did scsi support, I'll go double check that, but doesnt the fact that lsusb lists the usbdrive mean that my bios is detecting it and assigning a driver to it? :?
Back to top
View user's profile Send private message
racer_alpha
n00b
n00b


Joined: 28 Apr 2005
Posts: 25

PostPosted: Wed May 18, 2005 7:28 pm    Post subject: Reply with quote

There is two seperate sections in the kernel that deal with mounting a USB filesystem. You want to enable the older one that uses SCSI, and disable the newer one as it can cause some goofiness (read the help on any option pertaining to USB Disks... one of them says it can break something, that's the one you want to disable). The newer one puts your USB stuff in something like /dev/ub/only_god_or_linus_knows, and the older SCSI option put's it under something like /dev/sda1. Then I suggest looking into HAL and DBUS and whatnot, those programs can help you mount this stuff automatically.
Back to top
View user's profile Send private message
Frelon
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2004
Posts: 149
Location: France

PostPosted: Wed May 18, 2005 8:18 pm    Post subject: Reply with quote

I have an Ipod shuffle and it can't be recognize with the front usbay port.
Otherwise, with the rear ones no problem.
add something like tath in teh /etc/fstab (and mkdir /mnt/ipod):
/dev/sda1 /mnt/ipod vfat sync,user,noauto,umask=000 0 0


then mount /mnt/ipod.


(nota : gtkpod really rOOx where itunes Sux)
_________________
http://stan.openmod.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum