LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-25-2004, 11:28 PM   #1
nickoftime
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
jumpdrive problem with suse 9.2


I have recently got a 512mb jumpdrive sport. I plugged it into suse 9.2 and it recognized it right away and I was able to transfer files to it. However, when I remove the drive (hot swap) then put it in again all the file I transfered in will become executable!!! Any one seen this problem before? Also what is the correct way to remove the drive? I just unplugged it is that the problem?
 
Old 11-27-2004, 03:01 PM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Yes, you shouldn't just pull the drive. In most cases, it wont pose a problem, but I would at least type 'sync' and wait for the prompt to return before removeing the drive. When you tell an operating system to write data to a disk, they don't always do it right away, but instead pretend that they've done it, and then finish at their leasure. Linux is no exception to this. Most of the time it will finish right away, but telling it to "sync" will cause it to finish any and all pending write operations to disk.

I would be willing to bet that your drive is formated with FAT32. FAT32 is a MS Windows format that linux can safely read and write to. The catch is that it does not store Unix style permisions. Everything on the whole disk is treated as having the same permissions. Since directories must be executable, so also the files are.

The best solution I can think of would be to alter (or add) the line from your /etc/fstab. If you add 'sync' to the options list, then data to that drive will remain syncronized. If you add 'noexec', then it will prevent execution of files from the drive. You can get more options and help from the -o section of:

man mount

I don't know for sure that the hotplug / auto mount systems will honor the /etc/fstab (though I believe they do), so you will want to verify that the options show up in:

cat /proc/mounts

after you have inserted and mounted the drive.
 
  


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
Jumpdrive Secure - password-protected partition problem dmckee8615 Linux - Hardware 2 11-07-2005 08:12 AM
Lexar Media JumpDrive 512MB JDA512-00-501 problem EnigmaX Linux - General 2 05-29-2005 11:01 AM
How do I use my USB Jumpdrive? yzrider210 Linux - Hardware 1 11-30-2003 08:32 AM
problem whit usb jumpdrive of lexar PaAaScAl Programming 3 10-25-2003 06:12 AM
jumpdrive is read only ezra143 Linux - Hardware 12 10-02-2003 07:30 AM

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

All times are GMT -5. The time now is 01:59 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