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
 
LinkBack Search this Thread
Old 02-07-2004, 07:29 AM   #1
pcass
LQ Newbie
 
Registered: Feb 2004
Distribution: RedHat 9
Posts: 4

Rep: Reputation: 0
usb memory stick: chown/chgrp fails


I am running RedHat 9 on an IBM T40. This question concerns using a USB memory stick (PNY 2.0, 128M).

I mount the stick with and proceed, as root, with the following commands:

> mount /dev/sda1 /mnt/mem #ok
> cd /mnt/mem
> touch foo # file foo is created
> mv foo goo # no problem here
> chown pcass goo #fail
- chown: chaning ownership of goo: operation not permitted.

The same sequence works without fail if I am on the hard drive rather than the memory stick. [NOTE: The point here is that on the usb-stick I can (as root) create a file, change its name and delete it, but i CAN'T change it's permissions]

(Incidentally, there are some anomolies with the USB stick: If there is a floppy drive on the second USB port I can't mount the stick at all. Any ideas here?)

Last edited by pcass; 02-08-2004 at 05:42 AM.
 
Old 02-07-2004, 10:41 AM   #2
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
which filesystem has the usb-stick?
if it is a vfat-fs i think it has the owner- and group-id of the user who mounted it. (this is not changeable, except you mount it as an other user)
is there an ext2-fs on it: no idea
 
Old 02-07-2004, 10:42 AM   #3
shadow.blue
Member
 
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Rep: Reputation: 15
Well, I guess the problem with the change of permissions has to do with your filesystem used on that usb-stick.

What filesystem do you use on it?
I know that if you use ext2/3 or reiserfs or some other linux fs it will work for sure, I use it myself.

Maybe it is fat32 or some sort of... Check that out.



With your floppy drive, check your drive mappings.

If you only plug your usb-stick in, it will always be sda1.

If you already have your floppy-usb attached, it wont be sda1 because maybe the floppy uses it.


This is how you solve this:
Plug your floppy in, and tail the output from /var/log/messages

There it says that the system has detected a device on usb and mapped it to a certain device (like sdaX)

Then insert the usb-stick and watch again the output from /var/log/messages

Then it tells you where your usb-stick is mapped, and it will be most likely /dev/sda2

So mount it with /dev/sda2 or whatever it is said there and you are done.


Hope that helps
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 02:49 PM
chown, chgrp Help Icarus1701 Linux - Newbie 1 10-25-2004 06:42 PM
Help: Directories magically chgrp and chown by themselves! Blazer79 Mandriva 2 09-07-2004 11:52 AM
problems with chown and chgrp apax Linux - Software 6 11-03-2003 03:44 PM


All times are GMT -5. The time now is 12:08 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration