Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > usb & dvd drives problem

Forgot Password?
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-03-2009   #1 (permalink)
Just Joined!
 
Join Date: Nov 2007
Posts: 50
usb & dvd drives problem

hi,
i'm using elive linux (debian )1.29v . after install front usb drive and dvd rom is not working .. there is no response if i plug pendrive...

how to mount these device manually ....
dsuresh is offline  


Reply With Quote
Old 07-05-2009   #2 (permalink)
tpl
Linux User
 
Join Date: Jan 2007
Location: cleveland
Posts: 370
when I do "lsmod |grep usb" I find these
modules mentioned: have you installed them?

usb_storage
usbcore
uhci_hcd. ehci_hcd (take your pick)
__________________
the sun is new every day (heraclitus)
tpl is offline   Reply With Quote
Old 07-10-2009   #3 (permalink)
Linux Newbie
 
lugoteehalt's Avatar
 
Join Date: Jan 2004
Posts: 128
Code:
# mkdir /media/flash
Then put a line something like this in /etc/fstab:

/dev/disk/by-id/bloody-great-long-thing vfat /media/flash noatime,users 0 0

Look at other stuff in fstab to get it right.

bloody-great-.... is found from looking in dev/disk/by-id after the drive's been plugged in - this makes sure you get the right thing every time, udev may change its name.
Code:
$ mount /media/flash
You can write a function into .bashrc to make mounting less typing.
__________________
All power is violence; all power is evil.
lugoteehalt is offline   Reply With Quote
Old 07-10-2009   #4 (permalink)
Linux User
 
saivin's Avatar
 
Join Date: Dec 2008
Location: Bengaluru, India
Posts: 294
Quote:
Originally Posted by dsuresh View Post
hi,
i'm using elive linux (debian )1.29v . after install front usb drive and dvd rom is not working .. there is no response if i plug pendrive...

how to mount these device manually ....
Hi Suresh, if I understood correctly, you are taking about usb port in the front of the desktop cabinet. Well, on my desktop too it doesnot work for most distro but noticeably so on Debian. I think it is something to do with the usb technology. usb 1.2 or usb2 connection.. something like that. Not sure if we can do something for that. I use backside ports. But I'm not sure about DVD drive.

Quote:
Originally Posted by lugoteehalt View Post
Code:
# mkdir /media/flash
Then put a line something like this in /etc/fstab:

/dev/disk/by-id/bloody-great-long-thing vfat /media/flash noatime,users 0 0

Look at other stuff in fstab to get it right.

bloody-great-.... is found from looking in dev/disk/by-id after the drive's been plugged in - this makes sure you get the right thing every time, udev may change its name.
Code:
$ mount /media/flash
You can write a function into .bashrc to make mounting less typing.
AFAIK, the second column should be mount point (i.e., /media/flash not vfat in the above example) and third column should be filesystem type. (again vfat in above example). Not sure if the above line also will work.

If you use rhetorics like '/dev/disk/by-id/bloody-great-long-thing' you are confusing others more

I would right the above mount example as,
Code:
mkdir /media/usb
mount -t vfat /dev/sdXn /media/usb
where sdXn is mostly sdb1 or sdc1 etc. which is found by running 'fdisk -l'. All the above commands should be run as root.
__________________
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
saivin is offline   Reply With Quote
Old 07-11-2009   #5 (permalink)
Just Joined!
 
Join Date: Oct 2007
Location: Mexico
Posts: 64
Code:
/dev/disk/by-id/bloody-great-long-thing vfat /media/flash noatime,users 0 0
i have used the second colum for mount point
Code:
/dev/sda1 /media/usb  vfat  rw,user,noauto 0 0
did you mentioned front usb drive and dvd-rom, next the flash drive...

is about a portable hard disk with usb plug, a external dvd-rom plugged by usb and a flash drive (pen drive) ???

your computer detects usb drive and dvd-rom without problems and pendrive creates the conflict???

chech which device is used when you external drive is detected (in order to avoid conflicts)

Code:
dmesg | tail
when i plug my pendrive and run the command, this is shown:
Code:
[ 4438.045599] sd 2:0:0:0: [sdb] 1001472 512-byte hardware sectors (513 MB)
[ 4438.046221] sd 2:0:0:0: [sdb] Write Protect is off
[ 4438.046224] sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[ 4438.046227] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4438.055220] sd 2:0:0:0: [sdb] 1001472 512-byte hardware sectors (513 MB)
[ 4438.055717] sd 2:0:0:0: [sdb] Write Protect is off
[ 4438.055721] sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[ 4438.055723] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4438.055726]  sdb: sdb1
[ 4438.056947] sd 2:0:0:0: [sdb] Attached SCSI removable disk
for example:
my pendrive is detected on sdb1
i have a external dvd-rw with usb plug and is detected on scd0
i don't have a external HDD...

i hope this will be useful for give you some ideas to find the problem.

See you.
Saltamontes is offline   Reply With Quote
Old 07-12-2009   #6 (permalink)
Linux Newbie
 
lugoteehalt's Avatar
 
Join Date: Jan 2004
Posts: 128
Quote:
Originally Posted by Saltamontes View Post
Code:
/dev/disk/by-id/bloody-great-long-thing vfat /media/flash noatime,users 0 0
chech which device is used when you external drive is detected (in order to avoid conflicts)

Code:
dmesg | tail
when i plug my pendrive and run the command, this is shown:
Code:
[ 4438.045599] sd 2:0:0:0: [sdb] 1001472 512-byte hardware sectors (513 MB)
[ 4438.046221] sd 2:0:0:0: [sdb] Write Protect is off
[ 4438.046224] sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[ 4438.046227] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4438.055220] sd 2:0:0:0: [sdb] 1001472 512-byte hardware sectors (513 MB)
[ 4438.055717] sd 2:0:0:0: [sdb] Write Protect is off
[ 4438.055721] sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[ 4438.055723] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4438.055726]  sdb: 
[ 4438.056947] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Don't quite follow but all I was trying to say was that if you have, a usb device plugged in and then unplug it and put it back in again, or something along those lines the device name sdb1 might well change to sdb2, say.

If you then try:
$ mount /dev/sdb1 or mount /media/flash it'll tell you to bugger off.

This is avoided by using one of udev's special, unvarying symlinks, such as the by-id one I mentioned above.
__________________
All power is violence; all power is evil.
lugoteehalt is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:20 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2