LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-15-2015, 03:26 AM   #1
hardikgohil1988
Member
 
Registered: Sep 2014
Posts: 63

Rep: Reputation: Disabled
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>
 
Old 12-15-2015, 04:37 PM   #2
coltree
Member
 
Registered: Nov 2003
Location: Jacobs Well, Queensland AU
Distribution: OpenBSD
Posts: 102
Blog Entries: 1

Rep: Reputation: 34
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

Last edited by coltree; 12-15-2015 at 04:58 PM.
 
Old 12-17-2015, 01:34 AM   #3
hardikgohil1988
Member
 
Registered: Sep 2014
Posts: 63

Original Poster
Rep: Reputation: Disabled
Actually I want mount Static RAM for which device file is /dev/sram as ext2 filesystem.
 
Old 12-17-2015, 06:58 AM   #4
coltree
Member
 
Registered: Nov 2003
Location: Jacobs Well, Queensland AU
Distribution: OpenBSD
Posts: 102
Blog Entries: 1

Rep: Reputation: 34
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
 
Old 12-21-2015, 12:08 PM   #5
cesarbergara
Member
 
Registered: Feb 2012
Location: Buenos Aires, Argentina
Distribution: Debian, Suse, Mandrake,
Posts: 92

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] couldn't mount because of unsupported optional features (240) Willian Slackware 3 12-11-2012 07:23 AM
[SOLVED] EXT2-fs: sda5: couldn't mount because of unsupported optional features (4). deep kumar Red Hat 1 04-25-2012 05:11 AM
Hard disk failure : couldn't mount because of unsupported optional features sumanc Linux - Hardware 2 03-22-2010 05:11 PM
couldn't mount because of unsupported optional features (2000200) CrashedAgain Linux - General 0 01-26-2008 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration