LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-09-2008, 06:04 AM   #1
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Are Kingston Pen drives compatible with Linux? I have serious problems in using it.


Hello, I am very desperate to get this Pen drive to work. Please help me out.

Problem: recently, I bought a Kingston Pen Drive. The cover says that it is supported by Windows and by Mac OS. When I asked the shopkeeper, he was not so sure about the support on Linux. But, I think it should be supported by Linux if it is supported by Mac.

Now, when I insert the Pen drive on Fedora 8, for sometime, everything is OK. But after sometime, it says that I do not have the "Write" permissions. I cannot delete from it. I am really frustrated. Even as root, I am not able to delete stuff from it. It says Read-only drive.

What to do? How to get it working? It works fine on Windows (I do not have this OS). I had the same problem on Debian and SUSE

I have put the /etc/fstab entry here:
Code:
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
The thing is, it is OK for sometime till I copy some files, but suddenly the error messages pop up. What to do?
 
Old 01-09-2008, 06:24 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,710

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
I constantly use (1 Gig) Kingston USB sticks on Arch linux and Ubuntu Grunty (7.10) - on Grunty they even get recognised and mounted as "Kingston". Never seen any problem.
 
Old 01-09-2008, 06:36 AM   #3
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334

Original Poster
Blog Entries: 1

Rep: Reputation: 31
So now, what do I do? I have given all kind of permissions. I cannot delete any file as root. But if I reboot, I can do it for sometime (as I had mentioned), till I copy some files. After that, the problem occurs again.
 
Old 01-09-2008, 06:36 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,808

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Typically, these things get automatically recognized when they are plugged in. The mount point will be in /mnt or /media. The "mount" command with no arguments will tell you where. The entries in /etc/fstab are not relevant---those are only for devices to be automatically mounted at boot time.
Here is an excerpt from the output of the "mount" command after my pen-drive has been inserted:
Quote:
/dev/sdc1 on /media/LEXAR type vfat (rw,nosuid,nodev,noatime,uhelper=hal,flush,uid=501,utf8,shortname=lower)
Among other things, this tells me the device is formatted FAT, and is mounted read-write

Let's assume your device is getting mounted at /media/kingston. Go to /media, and do "ls -l" to see the permissions. Check this if the device stops working, gives error messages, etc. Also, post here the exact error messages.

Is it possible that your device has a "write-protect" switch? (A quick glance at the Kingston site doesn't give any info on this.)
 
Old 01-09-2008, 06:42 AM   #5
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Here is mine:
Code:
/dev/sdb1 on /media/DEEPAKBM type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500)
I cannot use chmod to change permissions. It says it is Read-only. Also, as you told, there is not "write-protect" switch on the stick. I know that some sticks have this.
 
Old 01-09-2008, 06:50 AM   #6
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334

Original Poster
Blog Entries: 1

Rep: Reputation: 31
I have a Laptop next to me, and I have Windows on that. I can Read-Write on the stick. But, on my Linux, it just does not work. Fedora 8 does support FAT.
 
Old 01-09-2008, 07:46 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,808

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
With mine, I can use chmod (as root) to change the permissions..

When the drive is first mounted, what are the permissions? (ls -l /media/DEEPAKBM) The output of "mount" says it has been mounted read-write.

I don't know if this is relevant, but how did your pendrive get that name?

I suppose another thing to try would be to manually UNmount it and then mount it manually. (umount and mount commands)
 
Old 01-09-2008, 08:14 AM   #8
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I've used (and use) several Kingston USB pen drives/flash keys, and they've worked ok. One of them got fried, but the pc fried the same day, so I guess it wasn't because of the Kingston-made key..and I wonder why they still print the "compatible operating systems" at the back, since they should work in any operating system with usb ports and the usual drivers to handle such simple storage devices. Maybe it's just to make those users feel secure who aren't interested in small things.

The filesystem on the pen drives is usually FAT (FAT16 or 32), which doesn't hold permissions. Therefore when copying something onto the drive you might get a warning saying that permissions couldn't be set (or something like that). It's ok, and means what it says - but the data should be ok. You might want to check your drives' filesystem, and if it's not FAT, format it to FAT (if you plan to use it outside Linux) or some Linux format, like ext (if you plan to use with Linux only, or operating systems that have support for that filesystem you chose). The filesystem should not be NTFS, but if it is, get rid of it - it's rubbish
 
Old 01-10-2008, 12:21 AM   #9
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Thanks for the reply. The permissions when I mount are:
Code:
drwxrw-rw-
The file system is FAT. And yeah, as far as the name of the Pen drive is concerned (i.e., DEEPAKBM), I used it at the shop for the first time, just to check. He had Windows and I changed the name there!

I may change the file system to one of the 'ext' file systems, but then it may have issues on other OS's.
 
Old 01-10-2008, 01:13 AM   #10
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Now, here comes one more problem. I cannot even copy files from the USB stick. The output is:
Code:
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/rpm' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/rpm'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/docs' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/docs'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/help' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/help'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libpostproc' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libpostproc'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/tools' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/tools'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libmpcodecs' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libmpcodecs'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/input' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/input'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libaf' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libaf'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libvo' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libvo'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/osdep' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/osdep'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/vidix' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/vidix'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libswscale' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libswscale'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libmpdemux' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libmpdemux'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/drivers' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/drivers'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libmenu' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libmenu'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/dvdread' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/dvdread'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/debian' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/debian'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libavcodec' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libavcodec'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/liba52' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/liba52'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libao2' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libao2'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libass' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libass'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/loader' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/loader'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/mp3lib' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/mp3lib'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/stream' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/stream'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/tremor' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/tremor'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libfaad2' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libfaad2'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libmpeg2' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libmpeg2'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libavformat' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libavformat'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libavutil' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libavutil'
cp: will not create hard link `/home/Deepu/MPlayer-1.0rc2/libdvdcss' to directory `/home/Deepu/MPlayer-1.0rc2/etc/.*/libdvdcss'
I am really frustrated Please help me out.
 
  


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
Kingston pen drive apffal SUSE / openSUSE 3 06-27-2007 05:21 AM
Install a linux distro into 2 pen drives. Luca_VR Linux - General 8 10-31-2006 11:13 AM
Kingston USB 2.0 Pen Drive Ravendark Linux - Hardware 5 05-17-2006 02:56 AM
mount Kingston USB 2.0 pen drive muru Fedora 2 02-16-2006 07:02 AM
Kingston pen drive apffal SUSE / openSUSE 3 02-14-2006 07:13 AM

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

All times are GMT -5. The time now is 05:09 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
Open Source Consulting | Domain Registration