LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 08-21-2004, 04:21 PM   #1
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Rep: Reputation: 15
usb pen drive, it wont let me write to it Mandrake 10


according to my fstab file my entry for my pen drive is

none /mnt/removable supermount dev=/dev/sda1,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-1,kudzu,codepage=850 0 0

What do I need to change to make the pen drive writable by non-root users?

 
Old 08-21-2004, 04:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Try using "umask=0000", you will need to unmount then remount the partition after changing fstab. You may also want to add a "user" option so that anyone can mount the device too.
 
Old 08-21-2004, 05:24 PM   #3
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
mandrake 10 (don't know about 9.2) automatically mounts it when hotplug detects it. Make sure it is not formatted ntfs for some silly reason, then writes will be difficult. Mine is using vfat.
 
Old 08-21-2004, 05:35 PM   #4
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
/dev/hda1 / ext3 defaults 1 1
/dev/hdb1 /Oneniisama ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hdc /mnt/cdrom auto umask=0022,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
/dev/hdd /mnt/cdrom2 auto umask=0022,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-1,sync,codepage=850 0 0
none /mnt/removable supermount dev=/dev/sda1,fs=ext2:vfat,--,umask=0000,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /proc proc defaults 0 0
/dev/sdb1 /usb1 vfat noauto,rw,users 0 0
/dev/sdb2 /usb2 vfat noauto,rw,users 0 0
/dev/sdb3 /usb3 vfat noauto,rw,users 0 0
/dev/hda5 swap swap defaults 0 0
none /mnt/hd supermount dev=/dev/ide/host0/bus0/target1/lun0/part1,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /mnt/removable2 supermount dev=/dev/scsi/host0/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-1,kudzu,codepage=850 0 0
 
Old 08-21-2004, 05:41 PM   #5
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
That is my fstab file, I noticed there are some mounts in there I want to move,
if i edit this file, does that allow me to remove mounts or move them?

/dev/sdb1 /usb1 vfat noauto,rw,users 0 0
/dev/sdb2 /usb2 vfat noauto,rw,users 0 0
/dev/sdb3 /usb3 vfat noauto,rw,users 0 0

instead of being located in the /mnt/ folder
they are just in the / folder
can i move to the /mnt/ folder by simpling editing

to

/mnt//dev/sdb1 /usb1 vfat noauto,rw,users 0 0
/mnt//dev/sdb2 /usb2 vfat noauto,rw,users 0 0
/mnt//dev/sdb3 /usb3 vfat noauto,rw,users 0 0

and thanks for the pendrive help, though I dont know what you mean about adding users

 
Old 08-21-2004, 07:31 PM   #6
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
make sure you do
mkdir /usb1
mkdir /usb2
etc. before you change the mountpoints. you might also want to change noauto to auto so it will mount automaticlly when you plug it in. If you plug one in that only has 1 partition, i don't know what will happen
 
Old 08-21-2004, 10:57 PM   #7
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
well that is odd, that you bring that up see the drive made a mount point of /removable2 which isnt valid, you can probably see that in my ftab, can I just remove that invalid mount point?

and would it be makedir /mnt/usb1 or just /usb1?

i put it on no auto cause the thing trys to mount it at boot, and its only one when i back up my data
other than that its usually off and never plugged in
 
Old 08-22-2004, 01:31 AM   #8
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
you can mkdir either /mnt/usb1 or just /usb1 (this is linux, not windows, the user gets to make decisions, not the OS ) just as long as the fstab matches. If you want you can mount it under /home/[username]/usb1 each device/mountpoint/file is treated the same as far as where in the tree it may fall, remember. As to the invalid mount point, you may remove it, but usb-storage module may re-create it, or something from hotplug may, as to that someone with more knowledge will have to help there.
 
Old 08-22-2004, 01:53 PM   #9
Whiskers
Member
 
Registered: Jan 2004
Location: Lacey, WA
Distribution: SUSE 9.2
Posts: 102

Original Poster
Rep: Reputation: 15
awesome thanks for you help, i will go make those fstab changes later today and tell you how it goes
 
Old 08-22-2004, 03:15 PM   #10
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
kewl, i hope it works 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
MDK 10.x - Mount USB Pen OK, But no permission to write Xolo Linux - Software 2 05-20-2005 06:19 AM
read & write USB pen drive?? wrangler Linux - Newbie 5 03-08-2005 04:11 PM
USB Pen Drive fuoi2 Linux - Newbie 10 09-08-2004 09:03 AM
USB Pen Drive on 2.6.x LST Linux - Hardware 1 05-02-2004 11:25 PM
usb pen drive - only root can write? BrianK Linux - Newbie 3 01-29-2004 01:50 AM


All times are GMT -5. The time now is 11:15 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 Google+: linuxquestions
Open Source Consulting | Domain Registration