- First: install bchunk
sudo apt-get install bchunk
sudo pacman -S bchunk
sudo yum install bchunk
bchunk image.bin image.cue image.iso
mount -o loop -t iso9660 image.iso /mnt/image
FROM
sudo apt-get install bchunk
sudo pacman -S bchunk
sudo yum install bchunk
bchunk image.bin image.cue image.iso
mount -o loop -t iso9660 image.iso /mnt/image
$ makepkg -s
# pacman -U simple-mtpfs-*.pkg.tar.xz# simple-mtpfs --list-device# simple-mtpfs --device N /path/to/mount
Для отключения# fusermount -u /path/to/mount
alias android-up="sudo simple-mtpfs --device 1 /mnt/samsung/"
alias android-down="sudo fusermount -u /mnt/samsung/"
KERNEL!="sd[a-z][0-9]", GOTO="auto_mount_end"
IMPORT{program}="/sbin/blkid -o udev -p %N"
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
ACTION=="add", RUN+="/bin/mkdir -p /mnt/%E{dir_name}", RUN+="/bin/mount -t auto -o rw,relatime,noexec,nodev /dev/%k /mnt/%E{dir_name}"
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /mnt/%E{dir_name}", RUN+="/bin/rmdir /mnt/%E{dir_name}"
LABEL="auto_mount_end"
# mkdir /path/to/mount
Смотрим разделы по секторам
# fdisk -lu /path/to/dd/image
Видим, приблизительно, такое
Disk /dev/loop0: 10.0 GB, 10056130560 bytes
240 heads, 63 sectors/track, 1299 cylinders, total 19640880 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xc1afc1af
Device Boot Start End Blocks Id System
/dev/loop0 * 32 4097519 2048728+ b W95 FAT32
Соответсвенно, наш раздел начинается с сектора 32# mount -o loop,offset=16384 /path/to/dd/image /path/to/mount