How to manually mount Linux disk image partition without using losetup

In this case we want to mount partition #2

fdisk -lu Centos-6.6-x86_64.img
You must set cylinders.
You can do this from the extra functions menu.

Disk Centos-6.6-x86_64.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes

                Device Boot      Start         End      Blocks   Id  System
Centos-6.6-x86_64.img1            2048     1026047      512000   82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
Centos-6.6-x86_64.img2   *     1026048    10485759     4729856   83  Linux
Partition 2 does not end on cylinder boundary.


I want to mount partition 2 which starts at 1026048.

Specify offset as: 1026048 * 512 = 525336576

How to mount partition number 2

mount -t ext4 -o loop,offset=525336576 Centos-6.6-x86_64.img /mnt


Tags:

manually, mount, linux, disk, partition, losetupin, fdisk, lu, centos, _, img, cylinders, functions, mb, bytes, sectors, swap, solaris, cylinder, boundary, specify, offset, ext, mnt,

Latest Articles

  • Apache PHP sending expires header solution cannot use cache with CDN
  • How to install virt-manager in Mint 22/Ubuntu 22
  • Infiniband Guide
  • python mysql install error: /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found mysql_config --version
  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX 17 in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer