LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-08-2013, 06:57 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Rep: Reputation: 47
cannot mount an image file


Hi

I cannot mount an image file on my squeeze/wheezy:
Code:
# mount -t vfat -o loop,offset=512 binary.img /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Code:
# file -k binary.img
binary.img: x86 boot sector; partition 1: ID=0x83, active, starthead 0, startsector 2048, 1112064 sectors, code offset 0xc0

# fdisk -ul binary.img
You must set cylinders.
You can do this from the extra functions menu.

Disk binary.img: 0 MB, 0 bytes
4 heads, 32 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b0e9b

     Device Boot      Start         End      Blocks   Id  System
binary.img1   *        2048     1114111      556032   83  Linux
Partition 1 has different physical/logical endings:
     phys=(1023, 3, 32) logical=(8703, 3, 32)
BTW this binary.img was created on linux and it has fat32 file system.

Knows anyone howto find out the correct offset value?
 
Old 06-08-2013, 08:14 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,231

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
you might want to make a folder in the /mnt folder ?

Code:
su -
mkdir /mnt/binary

mount -t vfat -o loop,offset=512 binary.img /mnt/binary
 
Old 06-08-2013, 08:43 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Original Poster
Rep: Reputation: 47
I've done and still doesn't work:
Code:
# mkdir /mnt/cc
# mount -t vfat -o loop,offset=512 binary.img /mnt/cc
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
 
Old 06-08-2013, 09:14 PM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Original Poster
Rep: Reputation: 47
It works well now!

2048 x 512 = 1048576
Code:
# mount -t vfat -o loop,offset=1048576 binary.img /mnt
#
greetings
cccc
 
  


Reply

Tags
binary, debian, mount, offset, wheezy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How mount DVD/VCD image file and watch it in Ubuntu Linux? TigerLinux Linux - Software 6 07-02-2011 06:15 AM
how to mount a kvm image file hrmb Linux - Virtualization and Cloud 5 02-11-2010 11:06 AM
can't mount the iso image file gbstack Linux - Newbie 3 09-06-2008 11:16 AM
mount .iso (image) file and read *.avi file smartdragonfly Linux - Software 2 12-21-2006 05:48 AM
How to create a multi-file-image and mount it as a loopback device (on xbox debian) El_Oy Linux - Software 1 06-14-2006 03:05 AM


All times are GMT -5. The time now is 10:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration