Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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?)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.