LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2005, 10:55 AM   #1
belthi
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
Mounting a file


Hi,

i've got a file which i want to mount. I first opened the file with explore2fs, which allows to view ext2/ext3 files under windows. This worked perfectly well!
Because i want to modify the contents of the file, i copied it to my suse 9.3 workstation and tried to mount it:

mount /home/user/myfile /mnt/mydir -o loop

i also tried without -o loop, with -t ext2 or ext3, tried to losetup it to a device and mount the device, everytime ending up with the error message:
mount: wrong fs type, bad option, bad superblock on .....

I only got this problem with this specific file, i tried with others and viewed them with explore2fs and mounted them under linux without any problems.
I'm not sure, but i think the file contains a root file system, that may be a problem. But the really wired thing is the fact that explore2fs can read the file without any problems.

Any ideas how i could mount the file so i can edit its contents?

Thanks in advance
Belthazor
 
Old 06-07-2005, 11:18 AM   #2
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
what partition is your home directory on?

you can do a df -h command to show your partition table or a fdisk command.

you might have something messed up. OR if your home directory is on the same partition as your linux then you don't need to mount it

thanks,
djgerbavor3
 
Old 06-07-2005, 12:01 PM   #3
belthi
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for your answer, but my homedir is fine, i want to mount a file (myfile) but i just keep getting this error
 
Old 06-07-2005, 01:01 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Can I ask what kind of file it is? The reason I'm asking is that the overwhelming majority of files don't need to be mounted in order to be edited. The drive the file exists on has to be mounted, but the file itself doesn't.
 
  


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
Mounting file system in a file with mount Denes Programming 6 11-11-2005 01:04 PM
image file mounting cchanana Linux - Newbie 9 01-26-2005 07:24 AM
mounting a binary file thats not on any file system!?!!? aXoneX Linux - General 7 10-26-2004 03:21 AM
Mounting to file systems n e r d Linux - Hardware 3 07-22-2004 08:53 AM
mounting file systems philfighter Linux - General 5 08-20-2001 09:20 PM


All times are GMT -5. The time now is 02:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration