LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-03-2005, 05:42 AM   #1
zparihar
Member
 
Registered: Sep 2004
Distribution: Fedora, Debian
Posts: 59

Rep: Reputation: 15
USB key /dev/sdb1 permissions problem...


Hello everybody!

Just wondering if someone could help me out...

I want to use mtools so that i can use my USB Flash Key without mounting and unmounting it all the time...

i added the following line to /etc/mtools.conf

drive u: file="/dev/sdb1" exclusive mformat_only

then i created a link on my desktop to ' floppy:/u '

It did not work because my permission on /dev/sdb1 were set to 700 (only for root)
So i changed it to 777 and got it working perfectly.

However, when i unplug the usb key and then plug it back in, my permissions get set back to 700 for /dev/sdb1

I tried doing a mknod for /dev/sdb1 and then changing the permissions to 777. It worked great, but when i unplug the USB key again... the device /dev/sdb1 dissapears...

when i plug it back in, it reappears but with the permission 700 (for root only).

I don't want to keep doing a chmod 777 /dev/sdb1 each time i want to use mtools.

Can anyone point me in the right direction where when i plug my usb key in, i can get the permissions to automatically be set to 777...?


I'm Running Fedora Core 3

Thanks

Zubin Parihar
 
Old 02-03-2005, 06:42 AM   #2
Cydizen
LQ Newbie
 
Registered: Feb 2005
Location: AZ, USA
Distribution: Slackware 10 | 2.6.7(custom compiled) | Enlightenment E16 / DR17
Posts: 11

Rep: Reputation: 0
Have you tried setting the UDEV permissions?
 
Old 02-03-2005, 06:42 AM   #3
Cydizen
LQ Newbie
 
Registered: Feb 2005
Location: AZ, USA
Distribution: Slackware 10 | 2.6.7(custom compiled) | Enlightenment E16 / DR17
Posts: 11

Rep: Reputation: 0
Have you tried setting up UDEV permissions? (I assume you are running a 2.6.x kernel since you are on FC3)
 
Old 02-03-2005, 04:29 PM   #4
zparihar
Member
 
Registered: Sep 2004
Distribution: Fedora, Debian
Posts: 59

Original Poster
Rep: Reputation: 15
Genious...pure genious!

You're a genious Cydizen!

Thanks for your help!

I'm gonna write up small howto for everyone!


Zubin Parihar
 
Old 02-03-2005, 04:37 PM   #5
zparihar
Member
 
Registered: Sep 2004
Distribution: Fedora, Debian
Posts: 59

Original Poster
Rep: Reputation: 15
Just to let everyone know what i did...

Just to let everyone know what i did:

1) I went to the directory /etc/udev/permissions.d

2) opened the file ' 50-udev.permissions '

3) I changed the line :

sd*:root:disk:0660

to

sd*:root:disk:0777

4) Thats it! got it working!



Zubin Parihar
 
Old 02-03-2005, 05:24 PM   #6
zparihar
Member
 
Registered: Sep 2004
Distribution: Fedora, Debian
Posts: 59

Original Poster
Rep: Reputation: 15
Link to my howto

Here is the link to my Howto


http://www.linuxquestions.org/questi...hreadid=285916


Zubin Parihar
 
Old 02-03-2005, 06:22 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Congrats on solving the problem, and thanks especially for posting back with the specific steps you took. This kind of thing is hugely helpful to future readers who may come upon this thread. -- J.W.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount: /dev/sdb1 is not a valid block device zaltar Linux - General 8 07-13-2005 03:07 AM
External USB HDD"Mounting local filesystems: /dev/sdb1 is not a valid block device" manudath Linux - Hardware 3 12-13-2004 10:59 PM
/dev/usb/lp0 permissions problem Seth Kinast Linux - Hardware 3 10-27-2004 04:36 PM
Problem with USB Key and creating the /dev/sda1 block device Ben2210 Slackware 5 08-04-2004 03:42 AM
mount: wrong fs type, bad option, bad superblock on /dev/sdb1 pmoreira Linux - Hardware 5 02-26-2004 11:31 AM


All times are GMT -5. The time now is 09:37 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration