Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. # mount -t auto -o ro,loop gmapsupp.img /mnt/iso/
  2. mount: you must specify the filesystem type
  3. # file -k gmapsupp.img
  4. gmapsupp.img: x86 boot sector, code offset 0x0
  5. #
  6.  
  7. $ file centostest.img
  8. centostest.img: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 208782 sectors; partition 2: ID=0x8e, starthead 0, startsector 208845, 20755980 sectors, code offset 0x48
  9.  
  10. $ sudo /sbin/fdisk -lu /kvm/centostest.img
  11. last_lba(): I don't know how to handle files with mode 81ed
  12. You must set cylinders.
  13. You can do this from the extra functions menu.
  14.  
  15. Disk /kvm/centostest.img: 0 MB, 0 bytes
  16. 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
  17. Units = sectors of 1 * 512 = 512 bytes
  18.  
  19. Device Boot Start End Blocks Id System
  20. /kvm/centostest.img1 * 63 208844 104391 83 Linux
  21. /kvm/centostest.img2 208845 20964824 10377990 8e Linux LVM
  22. Partition 2 has different physical/logical endings:
  23. phys=(1023, 254, 63) logical=(1304, 254, 63)
  24.  
  25. $ mount -o loop,offset=512 centostest.img /mnt/tmp
  26.  
  27. $ mount -o loop,offset=7168 centostest.img /mnt/tmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement