LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   couldn't mount because of unsupported optional features (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/couldnt-mount-because-of-unsupported-optional-features-4175561482/)

hardikgohil1988 12-15-2015 03:26 AM

couldn't mount because of unsupported optional features
 
Hello I am working on Embedded Board which runs on 3.2.0 Linux.

I facing problem while trying to mount SRAM disk
---------------------------------------------
root@CPU7001:~ mke2fs -t ext2 /dev/sram
mke2fs 1.42.4 (12-June-2012)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
1024 inodes, 4096 blocks
204 blocks (4.98) reserved for the super user
First data block=1
Maximum filesystem blocks=4194304
1 block group
8192 blocks per group, 8192 fragments per group
1024 inodes per group

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

------------------------------------------------------
root@CPU7001:~ e2fsck -y /dev/sram
e2fsck 1.42.4 (12-June-2012)
e2fsck: Filesystem revision too high while trying to open /dev/sram
The filesystem revision is apparently too high for this version of e2fsck.
(Or the filesystem superblock is corrupt)


The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>


----------------------------------------------------------
root@CPU7001:~ mount -t ext2 /dev/sram /sramdisk/
[ 442.566345] EXT2-fs (sram): error: couldn't mount because of unsupported optional features (2000200)
mount: mounting /dev/sram on /sramdisk/ failed: Invalid argument

----------------------------------------------------------
root@CPU7001:~ e2fsck -b 8193 /dev/sram
e2fsck 1.42.4 (12-June-2012)
e2fsck: Invalid argument while trying to open /dev/sram

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

coltree 12-15-2015 04:37 PM

You could of course use a ramfs which just gets mounted and unmounted
mount -t ramfs ramfs /mnt
the system works it all out for you


I'm on Slackware, so /devs possibly different,
looking through my /dev/directory I have devices ram0 ram1 ---> ram15
but no /dev/sram

mkfs /dev/ram1 8192
8192 is the number of blocks
don't push it to make a particular filesystem type
it will work itself out



as an example
make the file system on /dev/ram1
mount it
see how much space is available



bash-4.2# mkfs /dev/ram1 8192
mke2fs 1.42.8 (20-Jun-2013)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
2048 inodes, 8192 blocks
409 blocks (4.99) reserved for the super user
First data block=1
Maximum filesystem blocks=8388608
1 block group
8192 blocks per group, 8192 fragments per group
2048 inodes per group

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

bash-4.2# mount /dev/ram1 /mnt

bash-4.2# df /mnt
Filesystem 1K-blocks Used Available Use Mounted on
/dev/ram1 7931 45 7477 1 /mnt

hardikgohil1988 12-17-2015 01:34 AM

Actually I want mount Static RAM for which device file is /dev/sram as ext2 filesystem.

coltree 12-17-2015 06:58 AM

may corrupt data
 
ok, it's for a fairly specific device
try talking to these guys
arbsramdrv

when you find a note in the source which says
"may corrupt data"

your on your own

cesarbergara 12-21-2015 12:08 PM

Hi. Are you trying to format on a hardware drive or file?

When I create a ramdisk file (for example a diskette or booteable diskette), i do:
dd if=/dev/zero of=diskette.file bs=1024 count=1440
mkfs.ext2 diskette.file
then, i can mount like:
mount -loop -t ext2 diskette.file /media/floppy

Have a nice day.


All times are GMT -5. The time now is 03:00 PM.