LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-15-2007, 05:04 PM   #1
mikej_w
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
How to mount a filesystem


Hello,

I cannot figure out how to mount this file system. I have a cramfs, that I have copied from it's flash location to ram:

cp /dev/mtd0 /tmp/cram0

Now I want to pivot_root to this copy of the filesystem, but, what is the syntax to mount this filesystem?

Mike
 
Old 11-15-2007, 06:41 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
it would be
Code:
mount -t cramfs /tmp/cram0 /mnt/mntpoint
Where /mnt/mountpoint is replaced with wherever you want to mount to.
 
Old 11-16-2007, 12:14 PM   #3
mikej_w
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you VERY much for your reply. I seem to be having a problem in selecting a correct mount point. As you can see in the results below. Of course, the /mnt directory is IN the original cramfs, so the read-only result makes sense.

Code:
# ls /tmp
cram0     ifstate   log       messages  mnt
# rm -rf mnt
# ls
cram0     ifstate   log       messages
# mount -t cramfs /tmp/cram0 /mnt
mount: Mounting /tmp/cram0 on /mnt failed: Block device required
# mkdir /mnt/cram0
mkdir: Cannot create directory `/mnt/cram0': Read-only file system
# mkdir /tmp/crammountpoint
# mount -t cramfs /tmp/cram0 /tmp/crammountpoint
mount: Mounting /tmp/cram0 on /tmp/crammountpoint failed: Block device required
What does this "Block Device required" result mean though?
Thanks - Mike
 
Old 11-16-2007, 01:31 PM   #4
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Oh, sorry, I forgot. The command is more like this:

Code:
mount -t cramfs -o loop /tmp/cram0 /tmp/crammountpoint
The -o loop tells the mount command that this is a file, not a physical device, that's what it meant by "Block Device Required". Also, I don't know what you're using it for, but it's more canonical to put mountpoints under /mnt or /media. It's not the only right way, just the canonical, "normal" way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
Can't mount filesystem !! tuxuser19 Slackware 1 12-14-2005 06:59 PM
HELP!!! Can't mount filesystem!!! SteelTitan Linux - General 2 06-28-2005 01:57 PM
HELP: I cannot mount my filesystem. Manuel-H Linux - Software 1 06-19-2004 08:14 AM
Can't mount filesystem bureado Linux - Newbie 1 10-29-2003 05:04 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration