Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-28-2012, 01:48 PM   #1
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Mount image-sdb.img with mount?


I made backup two years ago. What is a newbie method to mound those several partitions?

# file -s 20100514_image_disk120gb_sde.img
20100514_image_disk120gb_sde.img: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0xc, active, starthead 1, startsector 63, 22523067 sectors; partition 3: ID=0xf, starthead 0, startsector 22523130, 211913415 sectors, code offset 0x48

I found this but it is too complicated.

Do you have a x11 frontend or command line frontend with dialog?

s# mount 20100514_image_disk120gb_sde.img /mnt/dsk/ -o offset=$((22523130*512)) -o ro -t vfat
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

need a script for newbies

I would not like to use gdisk at all

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

Disk 20100514_image_disk120gb_sde.img: 0 MB, 0 bytes
255 heads, 63 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

Device Boot Start End Blocks Id System
20100514_image_disk120gb_sde.img1 * 63 22523129 11261533+ c W95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(1401, 254, 63)
20100514_image_disk120gb_sde.img3 22523130 234436544 105956707+ f W95 Ext'd (LBA)
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(1023, 0, 1) logical=(1402, 0, 1)
Partition 3 has different physical/logical endings:
phys=(1023, 254, 63) logical=(14592, 254, 63)
20100514_image_disk120gb_sde.img5 22523193 124921439 51199123+ 7 HPFS/NTFS
20100514_image_disk120gb_sde.img6 124921503 207270629 41174563+ 7 HPFS/NTFS
20100514_image_disk120gb_sde.img7 207270693 219961979 6345643+ 83 Linux
20100514_image_disk120gb_sde.img8 219962043 233440514 6739236 83 Linux
20100514_image_disk120gb_sde.img9 233440578 234436544 497983+ 82 Linux swap / Solaris

thank yaouh

Last edited by patrick295767; 03-28-2012 at 02:00 PM.
Old 03-28-2012, 02:12 PM   #2
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 19,526

Rep: Reputation: 6608Reputation: 6608Reputation: 6608Reputation: 6608Reputation: 6608Reputation: 6608Reputation: 6608Reputation: 6608Reputation: 6608Reputation: 6608Reputation: 6608
it looks like a two step process. the first one is losetup and the second is the mount.
Old 03-28-2012, 03:09 PM   #3
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
From the name of your image file, '20100514_image_disk120gb_sde.img', it sounds like you have a copy of a block device (/dev/sde), not just a partition (/dev/sdeN, where N=1,2,3...). If so, you will need to do a few things to access the data in the copy of the device. I think it is very very unlikely that any GUI tool for this exists. The tools you will need are kpartx, mount, losetup (maybe) and device-mapper (maybe). Before I launch into a full explanation, please let me know whether my initial conjecture is correct.
--- rod.


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
How to mount the partitions on a made image with dd (/dev/sdb) ? frenchn00b Debian 1 05-15-2010 08:53 AM
[SOLVED] Mounting .img file (chromiumos.img); can't mount it?? Help please? linus72 Linux - General 2 11-27-2009 09:11 PM
Cannot mount sdb : Wish to rsync the 2 sata drives vaibhavs Linux - General 16 10-23-2009 10:23 AM
Permission denied error when trying to mount image contained in sshfs mount openSauce Linux - General 2 03-08-2009 09:50 AM
how to mount .img cd image created with k3b sunpascal Linux - Software 3 01-31-2006 09:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 PM.

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