Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount command says "can't find image2 in /etc/fstab" #8

Open
elitestar opened this issue Mar 30, 2017 · 4 comments
Open

mount command says "can't find image2 in /etc/fstab" #8

elitestar opened this issue Mar 30, 2017 · 4 comments

Comments

@elitestar
Copy link

mount command says "can't find image2 in /etc/fstab" , any idea what could have gone wrong. This is simplefs built on ubuntu 16

ubuntu:/code/sankar/simplefs-master$ dd bs=4096 count=100 if=/dev/zero of=image2
100+0 records in
100+0 records out
409600 bytes (410 kB, 400 KiB) copied, 0.0290435 s, 14.1 MB/s
ubuntu:
/code/sankar/simplefs-master$ ./mkfs-simplefs image
Super block written succesfully
root directory inode written succesfully
journal inode written succesfully
welcomefile inode written succesfully
inode store padding bytes (after the three inodes) written sucessfully
Journal written successfully
root directory datablocks (name+inode_no pair for welcomefile) written succesfully
padding after the rootdirectory children written succesfully
block has been written succesfully

ubuntu:/code/sankar/simplefs-master$ sudo mount -o loop -t simplefs image2
mount: can't find image2 in /etc/fstab
ubuntu:
/code/sankar/simplefs-master$

@elitestar
Copy link
Author

while pasting somehow strikethrough got into github comment.

@psankar
Copy link
Owner

psankar commented Mar 30, 2017

You are doing mkfs on image and mounting image2 ?

@elitestar
Copy link
Author

oops my mistake, here is the output with image2 .

ubuntu:~/code/sankar/simplefs-master$ ./mkfs-simplefs image2
Super block written succesfully
root directory inode written succesfully
journal inode written succesfully
welcomefile inode written succesfully
inode store padding bytes (after the three inodes) written sucessfully
Journal written successfully
root directory datablocks (name+inode_no pair for welcomefile) written succesfully
padding after the rootdirectory children written succesfully
block has been written succesfully

ubuntu:~/code/sankar/simplefs-master$ sudo mount -o loop -t simplefs image2
[sudo] password for jsridhara:
mount: can't find image2 in /etc/fstab

@psankar
Copy link
Owner

psankar commented Apr 1, 2017

I believe that you need to give a mount location too. If you look at the docs in 30a0ffa the command that you need to give is:

linux-9dni:/home/psankar/src/simplefs # insmod simplefs.ko ; mount -o loop -t simplefs image /home/psankar/src/simplefs/mount/ ; dmesg

Replace the paths according to your configuration. Also, try to follow the README in the commits verbatim. If something is not working, read the next commit in the git history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants