Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-13-2014, 02:38 AM   #1
Registered: Aug 2008
Posts: 54

Rep: Reputation: 15
can't boot partition in /dev/loop

I'm trying to mount a partition of dd imagen on /dev/loop but it says me that is not ext4 partition. The code is:
root@ubuntu:/home/david# fdisk -lu /media/david/afb9a509-9e6c-4327-a87b-2d75f6b96a76/image220814 

Disk /media/david/afb9a509-9e6c-4327-a87b-2d75f6b96a76/image220814: 8022 MB, 8022654976 bytes
255 heads, 63 sectors/track, 975 cylinders, total 15669248 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: 0x000981cb

                                                         Device Boot      Start         End      Blocks   Id  System
/media/david/afb9a509-9e6c-4327-a87b-2d75f6b96a76/image220814p1            8192      122879       57344    c  W95 FAT32 (LBA)
/media/david/afb9a509-9e6c-4327-a87b-2d75f6b96a76/image220814p2          122880     5785599     2831360   83  Linux
root@ubuntu:/home/david# mount -o loop,offset=$((122880 * 512)) -t ext4 /media/david/afb9a509-9e6c-4327-a87b-2d75f6b96a76/image220814 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@ubuntu:/home/david# dmesg | tail
[  706.507079] EXT4-fs (sdb1): recovery complete
[  706.507476] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[  745.136640] systemd-hostnamed[3724]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[  966.486443] EXT3-fs (loop1): error: can't find ext3 filesystem on dev loop1.
[  966.486567] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[  966.486650] FAT-fs (loop1): invalid media value (0x74)
[  966.486653] FAT-fs (loop1): Can't find a valid FAT filesystem
[  992.967606] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[ 1064.403533] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[ 1187.739669] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
Could you help me please?
Thanks and sorry for my English!
Old 09-13-2014, 04:04 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,203

Rep: Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675Reputation: 2675
You can try to mount that partition directly:
mount -o loop -t ext4 /media/david/afb9a509-9e6c-4327-a87b-2d75f6b96a76/image220814p2 /mnt
does it work? You can also run with -t auto (in case it is not ext4 but something else)
Old 09-13-2014, 06:38 AM   #3
Registered: Aug 2002
Posts: 15,720

Rep: Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751
At first glance I can not find anything obviously wrong. Are you sure it is an ext4 partition? image...p2 is just a name that fdisk creates. It can not be used directly.

A utility that also might help is kpartx.


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
RHEL 6 after boot primary partition shows /dev/sdb instead of /dev/sda vipul_patel Red Hat 1 04-26-2011 09:48 AM
dd if=/dev/sda1 of=dev/sdb3 turns a 10gig partition into a 130gig partition ? zonemikel Linux - Hardware 4 09-12-2009 05:53 PM
Suse : Dual Boot : : error setting partition /dev/sda6 to type 82 jmp559 Linux - General 2 05-18-2008 01:08 AM
mount point for /dev/hda2 (my boot partition) annihilate Slackware - Installation 5 05-23-2004 03:38 AM
devfs and /dev/loop gglazer Linux - Software 0 06-13-2003 12:35 PM

All times are GMT -5. The time now is 06:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration