10/20/2015 - 4:14 PM

mount howto

mount howto



sudo mount -t hfsplus -o remount,force,rw /dev/sdb2 /media/pmichalec/epcim-ex1


mount -t cifs -o file_mode=0666,username=jmeno,password=password // /mnt/smbdata

mount -t cifs -o username=jmeno,password=password,iocharset=utf8,codepage=utf8 //$ /mnt/smb_win
mount -t smbfs -o username=jmeno,password=password,iocharset=cp852,codepage=iso8859-2 // /mnt/data2
sudo mount /mnt/kvm_shared

mount -t ntfs -o nls=utf8 /dev/sda1 /mnt/ntfs_data
type vfat (rw,noexec,nosuid,nodev,quiet,iocharset=utf8) [DATA]

mount -t iso9660 /dev/hdc /mnt/dvd
mount -o loop -t iso9660 /image.iso /mnt/adresar

fuser -v -c /dev/sda

yi cifs-utils.x86_64 samba-client.x86_64
sudo mount -t cifs -o username=Administrator,password=password$ /mnt/tmp3


  1. You need a file to mount as a HDD device - using DD, the following will instantly create a file of SIZE Gigabytes:

    • dd if=/dev/zero of=myharddisk.img bs=1000 count=0 seek=$[10001000SIZE]
  2. You need to make this file look like a block device (Choose a free /dev/loop device):

    • losetup /dev/loop0 myharddisk.img
  3. Start partimage manually from the command line, pointing to your loop device

    • partimage /dev/loop0 backupfile.000
  4. Remove the file from the loop device

    • losetup -d /dev/loop0
  5. Mount the new file on a directory

    • mount myharddisk.img /path/to/dir -o loop
  6. Enjoy the backup's files

I believe Step 3 should be "partimage restore /dev/loop0 backupfile.000" Thanks for the nice tutorial. You might appreciate this master-class level use of loopbacks and kvm here: http://www.wand.net.nz/~smr26/wordpress/2008/08/28/kvm-the-hard-way/