LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-16-2004, 10:09 AM   #1
homesp
Member
 
Registered: Feb 2004
Location: Tianjin,China
Distribution: RedHat9.0
Posts: 32

Rep: Reputation: 15
how to mount .bin file


The file is on my D: which is fat32 filesystem.
 
Old 09-16-2004, 10:16 AM   #2
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Rep: Reputation: 31
if you use KDE, you can add this to your service menu..

http://www.kde-apps.org/content/show.php?content=11577

i read your other post, and it seems that you use Gnome. I'll look for a Gnome-based solution as well..

-myk
 
Old 09-16-2004, 10:17 AM   #3
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Rep: Reputation: 31
here you are:

http://cdemu.sourceforge.net/

don't know how keen you are with command line, but this app will do the trick. It has good documentation, so should be relatively easy to figure out.

-myk
 
Old 09-16-2004, 10:23 AM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Are you asking how to mount the D: drive?
In this case, you first have to identify the device and partition on which the D: drive resides.

In general, the format for a hard disk device is /dev/ followed by “hd” for an IDE or ATAPI hard disk, or “sd” for a SCSI disk. Then a letter corresponding to the disk itself - “a” for the primary master or first SCSI, “b” for the primary slave or second scsi, “c” for the secondary master or third scsi, “d” for the secondary slave or fourth SCSI, and so on.

You can list the partitions on a disk with
Code:
fdisk -l /dev/whatever
Follow the disk device's name with the partition number to get the partition device's name. So your D: drive might be /dev/hdc1, for instance.

Now you just have to mount it:
Code:
mount /dev/hdc1 /mnt/ -t vfat
This will put it into /mnt/, or you can create a directory somewhere else to mount it on.

If you're also saying that the .bin file is a filesystem image, and you want to mount that as well, then the command is:
Code:
mount /mnt/path/to/file.bin /mnt2 -t auto -o loop
I've assumed that you have a directory /mnt2 to mount this in. /path/to/file.bin should be the full pathname of the .bin file, relative to your D: drive.

You will need loopback device support in the kernel for -o loop to work (to mount a file), so if you get an error here try
Code:
modprobe loop
to load loopback support.

You can also add lines to /etc/fstab to have this done automatically on boot; see
Code:
man fstab
 
Old 09-16-2004, 10:43 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Here's an example of just that (/etc/fstab), on my RH9 box:
/dev/sda1 /mnt/win_d vfat defaults,umask=000 0 0
 
Old 09-16-2004, 10:09 PM   #6
homesp
Member
 
Registered: Feb 2004
Location: Tianjin,China
Distribution: RedHat9.0
Posts: 32

Original Poster
Rep: Reputation: 15
I don't want mount D,because I have done it.I want to know how to mount the .bin file on my D.
How should I do if I use the command line?
 
Old 09-17-2004, 08:05 AM   #7
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally posted by rjlee
If you're also saying that the .bin file is a filesystem image, and you want to mount that as well, then the command is:
Code:
mount /mnt/path/to/file.bin /mnt2 -t auto -o loop
I've assumed that you have a directory /mnt2 to mount this in. /path/to/file.bin should be the full pathname of the .bin file, relative to your D: drive.

You will need loopback device support in the kernel for -o loop to work (to mount a file), so if you get an error here try
Code:
modprobe loop
to load loopback support.

You can also add lines to /etc/fstab to have this done automatically on boot; see
Code:
man fstab
Note that this assumes you have (what DOS/Windows would call) D: mounted on /mnt/; change this to the appropriate mount point in the above.
 
Old 09-18-2004, 06:13 AM   #8
homesp
Member
 
Registered: Feb 2004
Location: Tianjin,China
Distribution: RedHat9.0
Posts: 32

Original Poster
Rep: Reputation: 15
It said that "mount:you must specify the filesystem type".
what can i do??
 
Old 09-18-2004, 07:29 AM   #9
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
What kind of filesystem is on the .bin file in question?
If it's an image of a CD or DVD, that will be an iso9660 filesystem, and you can pass -t iso9660 to mount (or specify it in the filesystem type field of /etc/fstab).

Alternatively, try going through the list. Your system's supported filesystems are given in /proc/filesystems; ignore anything that's marked with “nodev” as it won't look at the .bin file at all.
 
Old 09-18-2004, 07:52 AM   #10
homesp
Member
 
Registered: Feb 2004
Location: Tianjin,China
Distribution: RedHat9.0
Posts: 32

Original Poster
Rep: Reputation: 15
Error:
mount /mnt/win_d/SoftMedia/photoshop.bin /mnt/iso -t vfat -o loop
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?)
 
Old 09-18-2004, 08:38 AM   #11
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
What is the file supposed to be?
 
Old 09-18-2004, 10:16 AM   #12
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally posted by homesp
Error:
mount /mnt/win_d/SoftMedia/photoshop.bin /mnt/iso -t vfat -o loop
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?)
ide-scsi is a SCSI emulation layer for IDE type devices, used to enable things like the eject button on certain IDE CD-ROM drives. If the .bin file is a file (not a device) then ide-scsi can't help you here.

The -loop option makes the file itself available through the device-special file /dev/loop0, which in turn allows the filesystem to be mounted like any other device (because you can only mount a device-special file like /dev/loop0).

The error message you're getting is a generic error saying that the device couldn't be mounted. This probably means that there's no vfat (FAT16 or FAT32) filesystem image on the file, or if there is then it might be broken (i.e. has a bad superblock or file allocation table). Its unlikely that you have too many mounted filesystems.

Normally you can use -t auto to guess the file type. If that doesn't work, you have to specify it by hand. If you're mounting it on /mnt/iso then this is probably a CD image, and you should be using -t iso96660 instead of -t vfat. If it's a windows filesystem image then it could be NTFS; try -t ntfs. If none of these work, run this command:
Code:
grep -v nodev /proc/filesystems
which will list all the filesystems your kernel can support, and try each of these in turn after -t.

If you do this and it still doesn't work, please post what you did. Also post the result of the command
Code:
file /mnt/win_d/SoftMedia/photoshop.bin
which will give us a guess at what this .bin file might be.
 
Old 09-18-2004, 10:43 AM   #13
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
http://www.linuxquestions.org/questi...threadid=90498
 
  


Reply



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
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
mount .bin file easyE Linux - General 4 05-04-2005 11:13 PM
user cant mount after chmod 777 /bin/mount misterwiddle Linux - General 2 04-06-2005 05:36 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM
Autorun.sh script to mount CD and run .bin file kulkarni08 Linux - General 2 06-24-2003 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 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
Open Source Consulting | Domain Registration