Forum Home
Press F1
 
Thread ID: 51656 2004-11-26 07:40:00 Fedora Core 2 image mounting lagbort (5041) Press F1
Post ID Timestamp Content User
296626 2004-11-26 07:40:00 I have just instaled my first ever linux distro, fedora core 2,.
Now while its updating (3.5 hours and still going...) i thought i would go and find out how to mount images under linux, as i want to run this as a game server for LAN's

I want to install a game which i ahve a .mdf image of, but try as i might i cannot find any info on how to mount a .mdf image under linux.

cansomeone please help me.

and remember me=linux noob :p

thanks
lagbort (5041)
296627 2004-11-26 07:43:00 Open up a console/bash prompt and type:
su -
^^This will prompt you for your password. You're now root^^

mkdir /mnt/localcd

^^This is where its going to be mounted^^

mount -t iso9660 -o loop /home/username/gamename.mdf /mnt/localcd

^^Specify CD Filesystem, Its a "loopback" mount, and the mount from/to points^^

Cheers


Chill.
Chilling_Silence (9)
296628 2004-11-26 07:52:00 Im probably doing something really dumb here, i did that and i keep getting this list of commandsappear below the command whenever i sue it, they look like instructions as to the proper use of the command but they offer no real help lagbort (5041)
296629 2004-11-26 08:29:00 After which command did you get the help info displayed?

Just to make sure you are on the right track: :)

1. In the terminal/shell/konsole etc window, enter in su - not forgetting the '-' after the su which you must include. Then enter in root's password at the prompt. You will notice the bash prompt shows a # symbol now instead of the $

2. Each command string given on a separate line by Chill is to be entered one at a time.

3. Everything is cAsE sensitive, and the white spaces between commands on a single line must exist (these are easy to miss, so look carefully for them).
Jen C (20)
296630 2004-11-26 08:38:00 i get the help info after the last command

just to clarify, what am i supposed to call the place im mounting it to (as i said noob, have no idea)

this is what i was using

mount -t iso9660 -o loop /home/root/opt/gamename.mdf /mnt/localcd

what have i dont wrong? :'(
lagbort (5041)
296631 2004-11-26 08:42:00 > mount -t iso9660 -o loop /home/root/opt/gamename.mdf
> /mnt/localcd

/home/root is wrong unless you have called your username 'root'??

it should be /home/lagbort/gamename.mdf /mnt/localcd

This is assuming you have the mdf saved in /home/lagbort
Jen C (20)
296632 2004-11-26 08:43:00 i am curretnly running under the username root, and the file is located in (according to the bar at the top of the screen) file:/opt/unreal tournament 2004.mdf

the error message i get back is as follows

Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
lagbort (5041)
296633 2004-11-26 08:50:00 right i shifted the file to /home/rob/UT2004.iso (i converted it )

and am now using the command

mount -t iso9660 -o loop /home/rob/UT2004.iso /mnt/localcd

but still to the same results
lagbort (5041)
296634 2004-11-26 10:32:00 > i am curretnly running under the username root,
It's ok if you are doing it just to get the game running but it is not considered good form to run as root
mikebartnz (21)
296635 2004-11-26 19:40:00 ok im on to the next stage now, i found a shell script which added a "manage iso> mount iso" option to my right click menu, so now i have the game mounted i have hit another roadblock.

whenever i try to execute the "linux-installer.sh" file i get an error message saying "Bash: ./linux-installer.sh: /bin/sh: bad interpereter: Permission denied"
lagbort (5041)
1 2