LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-13-2014, 02:38 AM   #1
mierdatuti
Member
 
Registered: Aug 2008
Posts: 64

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


Hi,
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:
Code:
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
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration