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 07-21-2006, 11:36 AM   #1
NoobDave
Member
 
Registered: Jun 2006
Posts: 43

Rep: Reputation: 15
USB drives in Mandriva


Hi,

I'm running the latest version of Mandriva and everything seems to be going smoothly except for the fact that whenever I put a file onto a USB drive (I've tried it on several) as soon as I remove the device, it becomes empty (i.e. I can't put anything onto USB drives)

Anybody got any ideas about what I should do?

Cheers

Dave
 
Old 07-21-2006, 11:47 AM   #2
sdexp
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu Linux
Posts: 103

Rep: Reputation: 15
If you had to mount the USB drive onto the system via something like /dev/sda1 onto a directory such as /mnt/removable using
Code:
mount /dev/sda1
after you plugged in the drive, then you should unmount it also after you are finished before unplugging with
Code:
umount /dev/sda1
. If you already did that then try some other umount options such as -l to ensure applications are finished accessing it or -f to unmount the drive regardless.
 
Old 07-22-2006, 04:08 PM   #3
NoobDave
Member
 
Registered: Jun 2006
Posts: 43

Original Poster
Rep: Reputation: 15
I did what you said and now it wont let me write to the USB device any more. It says that I don't have permissions (which I do) even when I try it from root!

Are there any known-issues with USB devices in Mandriva?

Any help would greatly be appreciated as my USB drive is very important for my work

Cheers

Dave

Last edited by NoobDave; 07-22-2006 at 05:17 PM.
 
Old 07-23-2006, 12:08 PM   #4
sdexp
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu Linux
Posts: 103

Rep: Reputation: 15
For that matter you may have to edit your /etc/fstab file.

I will tell you that in my fstab file my USB drive entry is this:
Code:
/dev/sda1 /mnt/removable auto user,kudzu,exec,iocharset=iso8859-1,noauto,umask=0,codepage=850 0 0
This shows that anyone can mount it (by including the "user" parameter). You could also add the "rw" parameter for read-write accessibility.

Make sure the directory mounted to (in my case this would be /mnt/removable) also has read-write permissions (chmod 0765 or something like that).
 
Old 07-24-2006, 01:36 PM   #5
NoobDave
Member
 
Registered: Jun 2006
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks alot, it works!

However, I need to do this everytime I boot up the computer. Is there some way to make it more permanent? Like I said, I'm quite new to linux so am probably missing something obvious.

Thanks for all of your help

Dave
 
  


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
Mandriva 2006 cannot reconigze my SATA drives zhuqing8027 Mandriva 5 02-14-2006 08:20 AM
Mandriva 2006.0 installing problems on nVidia's SATA drives M K Mandriva 3 01-25-2006 02:02 AM
Now Mandriva does not detect external drives (it did once) wearetheborg Linux - Hardware 3 12-26-2005 08:32 PM
Dual boot grub Mandriva WinXP separate drives McNider Linux - General 2 06-17-2005 05:49 AM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 05:30 PM

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

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