memnus: Stepmania "hold" arrows and the phrase "HOLD ME". (Hold me.)
Brian ([personal profile] memnus) wrote2006-11-10 01:41 pm
Entry tags:

Last Linux question (maybe)

So I've got LAGBANE booting happily in runlevel 5, etc, and just about ready to go. The only problem I have left is with hdb1, the FAT32 partition on my spare hard drive, where just about everything can live. The problem is that I can't write to it. When it mounts, root is the owner and it's chmodded 755 (along with everything on it), and I can't set write permissions at all. Even though fstab says to load it as defaults, mtab still lists it as noexec and some other stuff. LVM says that it's a "foreign boot partition", which it's not, and I can happily clear out all the Windows system files it had lying around without any trouble. The question is, then is there anyway to get LVM to recognize it properly without removing the files, reformatting from Linux instead of Windows, and putting them all back?

Google and man pages are supremely unhelpful for things like this.

click

[identity profile] bjencks.livejournal.com 2006-11-10 10:33 pm (UTC)(link)
I don't think LVM should have anything to do with it. Look in the mount(8) man page, under "Mount options for fat", specifically the umask, dmask, and fmask options. Appropriate settings of these in fstab should get the permissions right.

[identity profile] macdaddyfrosh.livejournal.com 2006-11-12 06:53 pm (UTC)(link)
IIRC, there's a "uid" and / or "gid" option in mount as well, so you can say "mount this sucker with me as the owner".

It may be necessary to have you own the mount point; I can't remember.