LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-08-2009, 02:39 AM   #1
akshath
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
Mounting virtual disk in linux


Hi All,
i have created virtualdisk created in linux machine fro running vxsim.
I want to view all the files cretaed in this virtualdisk in linux desktop.
The virtual disk had DOS filesystem and i am trying to mount this in linux

[root@akshath-OME sp2_vx15]# mount -t vfat /omesim/scripts/sim_ws1/sp2_vx15/virtual_disk_root /mnt/sim
mount: /omesim/scripts/sim_ws1/sp2_vx15/virtual_disk_root is not a block device (maybe try `-o loop'?)
[root@akshath-OME sp2_vx15

Also tried with -o option

[root@akshath-OME sp2_vx15]# mount -o loop -t vfat /omesim/scripts/sim_ws1/sp2_vx15/virtual_disk_root /mnt/sim
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)


Any idea what is the issue here?

Thanks in advance,
aks
 
Old 05-08-2009, 03:02 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Look at the file with "file <filename>" as root.

You need to indicate the mount point as well, if it isn't in the fstab file.
 
Old 05-11-2009, 12:10 AM   #3
akshath
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
hi,
the file >filename" shows it as data. what do e understand from this?
No i have not mentioned abt mount point in fstab.
i just cretaed a directory callec sim in /mnt and wnat to see contents here.. coreect me if i am wrong this is my first experience with mount !!


[root@akshath-OME sp2_vx15]# file virtual_disk_root
virtual_disk_root: data



command i gave :

mount -o loop -t vfat /omesim/scripts/sim_ws1/sp2_vx15/virtual_disk_root /mnt/sim
please let me know if i need to chnage anthing here .. i want to see all the files inside this virtual disk in linux machine... vfat is the correct filesystem right?
 
Old 05-12-2009, 04:33 AM   #4
akshath
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
mount -oloop,offset=48 <path to virtual disk file> <path to where
you want to mount it>

this works!! refer below link
http://groups.google.com/group/comp....996238baf9b1c#

thanks all for the info..
 
  


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
How to create a second virtual disk for Linux VM orla999 Linux - Newbie 1 04-17-2009 03:45 PM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 12:30 PM
Mounting an Irix disk on a Linux box monz Other *NIX 1 05-05-2006 09:02 AM
Help! linux freezes for a while after mounting flash disk themuppeteer Linux - General 0 12-03-2002 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration