[HLUG] mounting EXT2

John Hedges john at drystone.co.uk
Tue Jan 17 14:49:16 GMT 2006


On Mon, Jan 16, 2006 at 05:19:26PM +0000, Emon wrote:
> 
> Hi all
> 
> I had the following line in my /etc/fstab
> 
> /dev/hda14  /mnt/hd/MAGIC-STORE vfat  uid=1000,gid=100,fmask=133
>  1  0
> 
> but I just converted the partition to EXT2, and now the line is
> 
> /dev/hda14  /mnt/hd/MAGIC-STORE ext2  defaults  1  0
> 
> but now I get read-only access to the partition; one way around
> it is to change the "defaults" option to "noauto,user" but then
> I will have to manually mount the partition every time.
> 
> So is there any way to mount it automatically at boot time &
> also give me read-write access??
> 
> I tried reading the man pages for "mount" & "tune2fs" but failed
> to notice anything helpful, may be I missed something......
> 
> Thanks
> Emon
> 

Hi Emon

Default mount options include, as far as I konw, rw. It may be that your
individual file and directory permissions are denying writes. After
mounting with defaults, what does 'ls -la /mnt/hd/MAGIC-STORE' show?

hda14 ... thats a lot of partitions! Great to see the back of vfat,
horrible, horrible msfs :) Having changed to ext2, have you considered
adding a journal (and so going ext3). It's more robust in that you won't
get file system corruption if you lose power during a write. I think you
do this with 'tune2fs -j /dev/hda14' and replace ext2 with ext3 in
/etc/fstab. The downside is a slight loss of performance. Check the
tune2fs man page for more details.

Cheers

John




More information about the Herefordshire mailing list