Re: [SLUG] Stupid Floppy Tricks

From: Dylan William Hardison (dylanwh@tampabay.rr.com)
Date: Sun Jul 18 2004 - 21:34:32 EDT


Spake Paul M Foster on Sunday, July 18, 2004 at 09:04PM -0400:
> On Sun, Jul 18, 2004 at 08:30:52PM -0400, Dylan William Hardison wrote:
>
> > Spake Paul M Foster on Sunday, July 18, 2004 at 06:56PM -0400:
> > > This seems like a really dumb question to me, but for some reason I
> > > can't figure it out. As a regular user, I want to mount, unmount and
> > > write to my floppy drive.
> > >
> > > The mount and unmount parts work fine with sudo. It's copying files to
> > > the floppy that present the problem. The floppy (and other devices) are
> > > mounted at the /media hierarchy. I've set all these directories to
> > > root.disk ownership, with group write permissions, and I'm in the disk
> > > group. But when the floppy _mounts_, it has root.root ownership and the
> > > group write permissions are gone.
> > >
> >
> > Looks like you need the "user" option in fstab or to the mount
> > command. Also possibly you want to use uid=0,gid=$GID_OF_DISC.
>
> I already have "user" as an option for the mount command. This option
> only applies to mounting and unmounting (which work fine), according to
> the man page.
>
> The uid/gid options only work with msdos, fat and vfat options. Using
> them with ext2 garners an error message and failure to mount.
>

Oh, an ext2 floppy? Nifty. Unless you leave it in the drive
when the computer reboots (Well, just a black screen and having to
control-alt-del).

In that case, mount the floppy, chown -R root.disk /media/floppy,
and you're set. Now just pray that group "disk" has the same gid on every system that
this floppy is going to be on. :)

-- 
The three laws of thermodynamics:
        (1) You can't get anything without working for it.
        (2) The most you can accomplish by working is to break even.
        (3) You can only break even at absolute zero.
-
GPG Fingerprint=D67D 2B75 53C6 9769 30E4  D390 239F C833 F32C F6F6
GPG KeyID=F32CF6F6
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:35:41 EDT