Fstab and JFS
Alexander Skwar
listen at alexander.skwar.name
Wed Jul 5 13:06:00 UTC 2006
Gabriel M Dragffy wrote:
> Using that line doesn't work because it includes "user",
You're wrong.
$ LC_ALL=C sudo mount -v -o user /dev/mapper/Volume00-JFSTest /mnt/temp/
mount: you didn't specify a filesystem type for /dev/mapper/Volume00-JFSTest
I will try type jfs
/dev/mapper/Volume00-JFSTest on /mnt/temp type jfs (rw,noexec,nosuid,nodev)
> as I already
> pointed out using options such as umask, users, user, uid, gid don't
> work. Have you tried it?
I haven't tried using umask,uid,... with JFS, as it's not listed
in man mount as one of the available options for JFS. So, why *should*
it even work? BTW: Why are you trying out JFS? It's one of the filesystems
on Linux, that's used rather seldom. reiserfs, xfs or ext3 are far more
frequently used.
Anyway, option "users" should work, though. At least according to
documentation. But it doesn't make sense to use it on a "mount"
command line - it's only useful for a fstab line. Or at least I can't
see a sense in doing this.
$ LC_ALL=C sudo mount -v -o users /dev/mapper/Volume00-JFSTest /mnt/temp/
mount: you didn't specify a filesystem type for /dev/mapper/Volume00-JFSTest
I will try type jfs
/dev/mapper/Volume00-JFSTest on /mnt/temp type jfs (rw,noexec,nosuid,nodev)
As was to be expected, "users" works as well.
> Thanks for the suggestion of reading man pages
> and howtos,
No problem!
> I have been trawling through the mans of mount and fstab and
> as I said in email earlier already spent considerable time bouncing
> around the net. 8 hours later I am still exploring.
> Also I had already included a description of the error I see when
> attempting to mount a jfs partition using such switches as
> user/users/gid/uid. For your reference I have included it again below:
>
> mount: wrong fs type, bad option, bad superblock on /dev/hda5,
> missing codepage or other error
As I said: read the man page. In there, you'll find the available
options for all the filesystems. For your reference, here's an excerpt
of man mount:
Mount options for jfs
iocharset=name
Character set to use for converting from Unicode to ASCII. The default is to do
no conversion. Use iocharset=utf8 for UTF8 translations. This requires CON-
FIG_NLS_UTF8 to be set in the kernel .config file.
resize=value
Resize the volume to value blocks. JFS only supports growing a volume, not
shrinking it. This option is only valid during a remount, when the volume is
mounted read-write. The resize keyword with no value will grow the volume to the
full size of the partition.
nointegrity
Do not write to the journal. The primary use of this option is to allow for
higher performance when restoring a volume from backup media. The integrity of
the volume is not guaranteed if the system abnormally abends.
integrity
Default. Commit metadata changes to the journal. Use this option to remount a
volume where the nointegrity option was previously specified in order to restore
normal behavior.
errors=continue / errors=remount-ro / errors=panic
Define the behaviour when an error is encountered. (Either ignore errors and
just mark the file system erroneous and continue, or remount the file system
read-only, or panic and halt the system.)
noquota / quota / usrquota / grpquota
These options are accepted but ignored.
Do you see "uid" there? No? This should tell you something.
>
> On Wed, 2006-07-05 at 11:47 +0200, Alexander Skwar wrote:
>> > Using a line like
>> > sudo mount -t jfs -o rw,user /dev/hda5 /server
>> > DOESN'T WORK
>>
>> How does it NOT work? Filesystem is mounted, no? If not, that's strange.
>>
>> > sudo mount -t jfs -o rw /dev/hda5 /server
>> > Does work, but only superuser has write permissions. What gives?
>>
>> Gives, that you should read the man page again. Or maybe some basic
>> unix howto.
>>
>> Alexander Skwar
>> --
>> The more laws and order are made prominent, the more thieves and
>> robbers there will be.
>> -- Lao Tsu
>>
Alexander Skwar
--
The more laws and order are made prominent, the more thieves and
robbers there will be.
-- Lao Tsu
More information about the ubuntu-users
mailing list