Comments (1)
On Thu, Nov 12, 2015 at 10:33:39AM -0800, Shubajit Saha wrote:
I tried to mount the file system after inserting the simplefs kernel module. But it is giving error while initializing journal block. The dmesg report is given below.
kernel version: 3.13.0-32-generic[24820.367435] The magic number obtained in disk is: [268640275]
[24820.367440] simplefs filesystem of version [1] formatted with a block size of [4096] detected in the device.
[24820.367465] jbd2_journal_bmap: journal block not found at offset 0 on loop0-2
[24820.367466] jbd2_journal_init_inode: Cannot locate journal superblock
[24820.367469] Can't load journal
How are you creating journal+fs?
I guess that you don't created correct journal, you can use the
following commands to do this (copied from simple-test.sh, and slightly
edited):
$ function create_journal()
{
dd bs=1M count=10 if=/dev/zero of="$1"
mke2fs -b 4096 -O journal_dev "$1"
}
$ function create_test_image()
{
dd bs=4096 count=100 if=/dev/zero of="$1"
./mkfs-simplefs "$1"
}
$ function mount_fs_image()
{
insmod simplefs.ko
test_journal_dev=$(losetup -f --show "$1")
mount -o loop,owner,group,users,journal_path="$test_journal_dev" -t simplefs "$2" "$3"
}
$ create_test_image image
$ create_journal journal
$ mount_fs_image journal image /mnt
from simplefs.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simplefs.