LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-27-2005, 11:23 AM   #1
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Rep: Reputation: 35
Getting my USB to work


Hi all

I have got a MP3 player, which plugs directly into USB to transfer songs, etc.

In windows, I pluuged it in, went My Computer and opened the drive..

In knoppix...nothing happens. Where do I go, what do i do?

Thanks

hong
 
Old 02-27-2005, 11:38 AM   #2
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Ok, I found the device on /proc/bus/usb. I just need to make it writeable...

In vain, i tried properties>permissions>everything to view & modify content

Also chmod +777 /proc/bus/usb

Also edited my fstab to say noauto,users,exec,rw,unask=000 0 0

I DID say just 'defaults'

No go. Any clues here?

Thanks
 
Old 02-27-2005, 12:09 PM   #3
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
I am no expert by any means, but I think the /proc is for running processes.
I would look for USB in /mnt
 
Old 02-27-2005, 12:19 PM   #4
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
yes i think the c/proc is the wrong one...

nothing under /mnt tho...

help!
 
Old 02-27-2005, 12:21 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
You are in the wrong area. That area defines system opertions and is where info is pulled from. Run this command as root ' /sbin/fdisk -l ' Look to see if it list a /dev/sd* device. If it does then you do the following

1. make a dir to mount to. run command as root ' mkdir /mnt/mp3 '
2. run command where * is the value seen from fdisk ' mount -t vfat /dev/sd* /mnt/mp3 '

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 02-27-2005, 01:54 PM   #6
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Ok, did all that.

It brought up the device called sda1, so I ran all the commands.

Now at /mnt/usb, when I try to move a file there it says Access Denied.

How to I enable read/write access?

And do I have to do this everytime I want to use my USB pen drive or MP3 player? Is there a way to get it to be plug n play like Windows?

If I remember correct, when I ran Knoppix as a Live CD, USB showed up on the desktop when I plugged it in...

Thanks

Hong
 
Old 02-27-2005, 02:59 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Easy fix is create a line in /etc/fstab to allow total access to any user.
Example: /dev/sda1 /mnt/usb auto umask=000,users,noauto,owner,rw,sync,dirsync 0 0
Now mount like ' mount /dev/sda1 ' and to ' umount /dev/sda1 '

If using KDE then on the Desktop, right click and select Create New > Device > Hard Disc Drive. On first page that opens name it something like usb1 for example. Goto Device Tab and click the downarrow in the box. Select the line that matches the usb device you are using. NOTE: This will only work if you create the line in the /etc/fstab file. Hit OK.

Now you can hit the icon on the desktop and it automounts the device and opens a konqueror window. To unmount hit right click and select umount option.

Brian1
" Google the Linux way @ http://www.google.com/linux "

Last edited by Brian1; 02-27-2005 at 03:07 PM.
 
Old 02-27-2005, 03:03 PM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Also one can also change the permissions on /mnt/usb with the command ' chmod 777 /mnt/usb '.

Or change ownership of the directory. ' chown your_user_name /mnt/usb
And change Group also. ' chgrp your_group_name /mnt/usb

I think that would work also. I perfer the fstab idea. It works very well for me and other users.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 02-27-2005, 03:14 PM   #9
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Fantastico!!

Brian1 you have my thanks!! It works!!

Now, just one more thing

In my fstab, I have a drive I want to make writeable. Here's what it currently says:

/dev/hdb3 /mnt/hdb3 ext3 noauto,users,exec 0 0

How would I modify it to writable?

thanks

Hong
 
Old 02-27-2005, 03:37 PM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I am working on it. I think you need to set the directory permissions. ' chmod 777 /mnt/hdb3 ' I cannot find my link to a webpage that defines fstab options per filesystem type. Might also require that you add yourself to the users group also.

The way I have is I have ownership and groupship to the directory.
chown username /mnt/hdb3
chgrp groupname /mnt/hdb3

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 02-27-2005, 03:58 PM   #11
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Ha! It worked. I just did chmod 777 and chown.

Quote:
I cannot find my link to a webpage that defines fstab options per filesystem type.
If you find it, I hope you wouldnt mind posting it as it seem it would come in quite handy!

Thanks

Hong
 
Old 02-27-2005, 04:54 PM   #12
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
This is not the pretty one I have seen but this is the updated one mentioning ext3 options. http://www2.yo-linux.com/cgi-bin/man.cgi?topic=mount . There is one in all color and pretty fonts and stuff. Anyone know which one I am thinking of.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 02-28-2005, 01:32 AM   #13
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Thanks Brian1!
 
  


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
USB 2.0 jump drive in USB 1.1 slot won't work? zwyrbla Slackware 2 09-27-2004 08:26 PM
USB thumb drive works great, but I still can't get my USB mouse to work. blk96gt Slackware 8 06-22-2004 01:52 AM
USB 2.0 External Disk Wont Work, but almost in USB 1.1 integr8er Linux - Hardware 2 03-13-2004 09:22 AM
Usb 2.0 does it work? DavidTempler Linux - Hardware 7 03-12-2004 03:01 AM
why won't my usb work? Derek-kun Linux - Newbie 3 09-21-2003 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:10 AM.

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