PDA

Bekijk de volledige versie : Help: cannot use ext2 on usb flash stick with Oleg 1.9.2.7-10 (but can use ext3)



pvl
17-08-2008, 00:39
Hi,

When reading several articles on mounting usb flash devices under linux,
many of them advice to use ext2 i.s.o. ext3 to prevent premature flash wearout, in combination with mounting such partitions with -o noatime.

However, when trying to get this to work with Oleg's firmware 1.9.2.7-10
it will not mount the ext2 partition.

I used fdisk to wipe all partitions and make a fresh one:

fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 131 MB, 131072000 bytes
16 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 500 127984 83 Linux

I formatted to ext2 partition with

mke2fs /dev/discs/disc0/part1

which completed succesful.

Trying to mount it however will fail
mount -t ext2 /dev/discs/disc0/part1 /opt
mount: Mounting /dev/discs/disc0/part1 on /opt failed: No such device


If however I format using ext3, everything is A OK.
mke2fs -j /dev/discs/disc0/part1
mount -o noatime /dev/discs/disc0/part1 /opt

df gives:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3072 3072 0 100% /
/dev/discs/disc0/part1 123939 4127 113413 4% /opt

How to proceed? I thought ext2 should work in all situations??
I really want to prevent flash wearout due to ext3, and want to use ext2.

oleo
18-08-2008, 11:11
See supported filesystems with

cat /proc/filesystems

and you will notice that ext2 is not included

pvl
21-08-2008, 20:19
is it possible to add it without having to recompile the kernel myself?