- How to mount mdf on linux
- Монтирование iso, nrg, mdf, bin, img образов в Linux
- Introduction
- Mounting ISO Files
- Manipulating Other Formats
- CloneCD/IMG Images
- CUE/BIN Images
- MDF Images
- NRG Images
- DMG Images
- Installation
- To Convert to IMG
- To Mount
- Creating the ISO
- Disc Image Integration for Nautilus
- Archive Mounter
- See Also
How to mount mdf on linux
There are lots of times where you’d want to mount a CD/DVD image. Say your friend who uses his Windows box has given you a .iso file or a .mds/mdf file, created using Alcohol 120%. How would you mount them in Linux? Using the Terminal and making use of the loop device,there is no need for any external software tools and utlities.
- Open the Terminal/Console.
- Switch to root user(mounting more often than not requires root privileges, we’ll have a look as to how make media user-mountable later) by typing su root *buntu users and others distros in which the root account is disabled, can skip this step.
- Type mount -o loop -t iso9660 /windows/movies/movies.mdf /movies/ For users of distros where root account is disabled(like Ubuntu) prefix sudo to the above. So the command is sudo mount -o loop -t iso9660 /windows/movies/movies.mdf /movies/
If the above command looks confusing,it’s pretty simple! Let’s dissect it.
mount command is pretty obvious, it’s the commnad used for mounting storage media and images of storage media.
-o loop(note that o is the letter o not the numeral zero, ie, 0) instructs the mount command to use the loopback device. -o stands for option, loop indicates loop back device. Intuitive, ain’t it?
-t iso9660 instructs the mount command that the image is of iso9660 format.
The next argument is the path to where the .mdf file is located.
The last argument is the path to which directory the media must be mounted.
The image below shows an example.
If all goes well, you shouldn’t be getting any messages, as in the image. For .iso files, the steps are the same, just replace the .mdf file by the .iso file. The above method should work for CloneCD’s .ccd and Nero’s .nrg files(I remember it worked long time ago, not so sure though, if anyone can confirm this it’d be great!)
Монтирование iso, nrg, mdf, bin, img образов в Linux
-Эти команды смотрируют образ имя_образа в каталог /mnt/ (стандартный каталог для примонтированных устройств).
Для просмотра и работы с содержимом можно использовать команду:
cd /mnt && ls
Или зайти в коренная папка -> mnt через графический файловый менеджер. Также в качестве последнего аргумента команды mount можно указать свой путь для монтирования.
Монтируем nrg
Если у вас образ nrg, то рекомендую переконвертировать его в iso и смонтировать способом для iso, либо воспользоваться утилитой AcetoneISO.
Для переконвертирования в iso необходимо установить пакет (должен присутствовать в репозитории) nrg2iso .
После этого можно использовать эту утилиту в терминале:
nrg2iso имя_образа.nrg имя_переконвертированного_образа.iso
AcetoneISO — монтирование практически всех образов через графический интерфейс.
AcetoneISO предоставляет графический интерфейс для монтирования или создания образов.
Для получения программы установите пакет acetoneiso .
Программа проста в работе и не требует пояснений.
С ее помощью можно монтировать ISO BIN NRG MDF IMG.
Gmountiso
Также есть более легковесная утилита gmountiso которая позволяет монтировать iso образы через графический интерфейс.
P.S AcetoneISO на Qt; Gmountiso на GTK.
Автор: IamCrazy, дата: 21 мая 2010 , время: 16:15:13 (MSK).
nrg2iso устарела и часто после нее вообще ничего не получается.
Есть более универсальная
iat
http://iat.berlios.de
Автор: Sveolon, дата: 29 мая 2010 , время: 09:23:01 (MSK).
nrg можно смонтировать или сконвертить в iso безо всяких утилит.
mount -t udf,iso9660 -o loop,ro,offset=307200 file.nrg /каталог/монтирования
dd if=[твой .nrg образ] of=[выходной .iso образ] skip=307200 bs=1
Автор: Белка, дата: 10 марта 2012 , время: 21:48:04 (MSK).
А вот интересно, автор поста понимает, что команда mount -o loop -t iso9660 имя_образа.iso /mnt/ работает только в отношении .iso, находящегося в домашней директории? Может, этих изошников у кого-то сто штук, и они собраны в отдельном месте, где-нить на внешнем устройстве, и копировать их оттуда в /home/username глупо, да и места свободного может не быть? Как из консоли смонтировать .iso в этом случае? Вот вопрос. А переписывать одну и ту же команду (уже в пяти местах читаю одно и то же) легче всего.
Автор: Subsanek, дата: 19 марта 2012 , время: 13:38:33 (MSK).
Белка, а что мешает использовать команду cd или указать абсолютный путь до iso?
Автор: SU, дата: 11 марта 2015 , время: 07:52:28 (MSK).
Sveolon, спасибо! Смонтировать или сконвертить в iso безо всяких утилит, действительно работает. Интересно для чего существуют тогда утилиты для конвертирования?
Автор: mi, дата: 03 июня 2017 , время: 17:55:15 (MSK).
Чему вы учите людей? Бездумному тупому запоминанию никому непонятных символов?
что значит «-о», что значит «-t» может как-то будете разъяснять что это, что бы люди ронимали что это и зачем?
Introduction
For an introductory explanation of ISO images, instructions for creating and also burning them see IsoImage.
Mounting ISO Files
For instructions on how to mount an ISO, see MountIso.
Manipulating Other Formats
There are many other formats of archives that have been created over the years for numerous reasons. To mount them, it is usually necessary to convert them to ISO and then use your preferred means. Unless otherwise specified, these programs are available in the Universe repository and can be installed by numerous means. For convenience apturl links have been made, click the package names and they will install as long as the protocol is supported. None of these programs are installed by default.
The following exclusively deals with the command line.
CloneCD/IMG Images
ccd2iso /path/to/example.img /path/to/example.iso
sudo mount -o loop /path/to/example.iso /media/example
CUE/BIN Images
bchunk /path/to/example.bin /path/to/example.cue /path/to/example.iso
MDF Images
mdf2iso /path/to/example.mdf /path/to/example.iso
sudo mount -o loop=/dev/loop0 /path/to/example.iso /media/example
NRG Images
nrg2iso /path/to/example.nrg /path/to/example.iso
sudo mount -o loop,offset=307200 /path/to/example.nrg /media/example
DMG Images
DMG (.dmg) images are primarily used by Apple, conversion of these files will allow data to be accessed. It will not allow the running of OSX programs on Linux without considerable effort not outlined in this guide. The following process will first convert to IMG and then to ISO, you may however stop at the first step if you wish and mount or burn.
Installation
For instructions on installation, see DMG2IMG.
To Convert to IMG
The following command will convert the example file from DMG to IMG.
dmg2img /path/to/example.dmg /path/to/example.img
Do NOT follow the instructions for mounting the file at the end of the conversion. It is not advisable to mount to the /mnt directory.
To Mount
As always a directory will be created in /media, the next step will ensure hfsplus support is available, lastly the IMG file mounted to the directory.
sudo mount -t hfsplus -o loop example.img /media/example
At this point, the image is available for browsing under the /media/example directory. These files can now be transferred to hard drive or elsewhere for storage. If you want an ISO file, continue to the next section.
Creating the ISO
The IMG file we now have is still an hfsplus archive, which cannot simply be converted into an ISO. As such, we will have to use an intermediary step to convert the data from its stored format to an ISO. Since we’ve already mounted it to a directory, the easiest way is simply to create a new ISO with any disc authoring program you are familiar with. Brasero, GnomeBaker and K3b are just a few options for this.
Simply open your software of choice and start a new data disc. Then add the files from the mounted archive to this new data disc project. Once satisfied, select Burn and instead of recording a CD or DVD, choose to make an ISO file.
For most users, Brasero will be available, for those inexperienced in it’s use the following is a guide.
If you’re using GNOME then you can run Brasero from Applications -> Sound & Video -> Brasero. Start a new data disc by selecting Data Project from the main Brasero window, or through the menu Project -> New Project. Ensure the side panel is enabled from View -> Enable Side Panel. From the side panel, navigate to the directory where the IMG was mounted, usually the name of the IMG will be listed in the Places pane. In our example, the location in Places would be called example located in the /media/example directory. Simply drag all the files and folders you want to the project.
Once ready, push Burn. and ensure you select to create Image File: at the new window so it creates an ISO. If you wish to change the default name or the location it is created, select Properties. Once satisfied, push Burn and the ISO will be created. Leave Increase compatibility with Windows systems checked unless you know better.
Disc Image Integration for Nautilus
Archive Mounter
By default in GNOME, Nautilus has support for mounting ISOs by simply right clicking on the file and selecting Open with Archive Mounter. This option still appears limited, mainly designed for archives and ISOs. This feature is still under development, thus the following guide will be preserved.
See Also
- AcetoneISO is a feature rich program which let you mount and burn ISO, BIN, NRG, MDF, and IMG files through a graphical user interface. It’s available through Ubuntu’s universe repository.
- Furius Iso Mount, available from the Ubuntu Software Center, enables you to mount ISO, BIN, NRG, MDF, and IMG files through a graphical user interface
- cdemu is a kernel module for mounting Cue/Bin files directly. To install it you would have to setup linux headers, compile the module and modprobe it in. This is out of the scope of this page. There is a script under development in the Ubuntu forums for automating the building of cdemuLocated Here (Use this at your own risk.)
- «Mount and Unmount ISO images without burning them» has a nice step-by-step explanation (with screen shots) showing how to mount and unmount ISO images.
- clonezilla is an open source disk backup & restore distro
ManageDiscImages (последним исправлял пользователь 78 2015-11-30 18:17:47)
The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details