LinuxQuestions.org
Help answer threads with 0 replies.
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 04-20-2016, 05:04 PM   #1
tpalmerstudios
LQ Newbie
 
Registered: Feb 2016
Location: Dallas, Texas
Distribution: ElementaryOS on Lenovo Z50-70
Posts: 22
Blog Entries: 2

Rep: Reputation: 10
Edit img file


I have downloaded a Linux img file (rather than an ISO.) And I can't figure out how to mount it or to extract the data.
When mounting, I get
Code:
UDF-fs: warning (device loop0): udf_fill_super: No Partition Found (2)
This gives me the impression the filetype is not UDF. But I still don't know what to do.

BTW: There is no ISO file that I know of.
Kali armhf IMG
Here's the page I got it from
 
Old 04-20-2016, 07:21 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,452

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
a disk image is something a pen testing computer science major that has been hacking since they were 8 years old should know

that is the target user for kali

so a nano Pi2
this is a embedded device

you put kali on it the same way as every other OS.

use " dd "

Last edited by John VV; 04-20-2016 at 07:25 PM.
 
Old 04-20-2016, 07:54 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
fdisk can tell you what's in image ...
Code:
fdisk -l downloads/2016-03-18-raspbian-jessie.img 
Disk downloads/2016-03-18-raspbian-jessie.img: 3.8 GiB, 4033871872 bytes, 7878656 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
Disklabel type: dos
Disk identifier: 0x8f1eafaf

Device                                               Boot  Start     End Sectors  Size Id Type
downloads/2016-03-18-raspbian-jessie.img1        8192  131071  122880   60M  c W95 FAT32 (LBA)
downloads/2016-03-18-raspbian-jessie.img2      131072 7878655 7747584  3.7G 83 Linux
... and then you can mount the partition you want and edit it.
 
1 members found this post helpful.
Old 04-20-2016, 09:08 PM   #4
tpalmerstudios
LQ Newbie
 
Registered: Feb 2016
Location: Dallas, Texas
Distribution: ElementaryOS on Lenovo Z50-70
Posts: 22

Original Poster
Blog Entries: 2

Rep: Reputation: 10
Emerson, thx! For any future posters, my solution was this:
Code:
fdisk -l file.img
mount -o loop,offset=X file.img /path/to/folder/you/want/to/use
# X in the previous line is equal to the "Sector Size" from the output of fdisk * the "Start" sector of the part you want to mount.
# e.g. 512*131071 for Emerson's example
# I then copied the folder to a read+write folder to edit.
My new problem involves not being able to create the "special" files like /dev/console.
I don't know if I will be able to boot yet.
 
Old 04-20-2016, 09:16 PM   #5
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

Rep: Reputation: Disabled
Code:
mknod -m 622 /dev/console c 5 1
Didn't work for you?
 
Old 04-20-2016, 09:36 PM   #6
tpalmerstudios
LQ Newbie
 
Registered: Feb 2016
Location: Dallas, Texas
Distribution: ElementaryOS on Lenovo Z50-70
Posts: 22

Original Poster
Blog Entries: 2

Rep: Reputation: 10
No, sorry It says "mknod dev/console: Operation not supported" I'll figure it out after customization...
 
  


Reply

Tags
extracting, mount, udf


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 do I edit the initrd.img (decompress & compress) yanfaun Linux - Software 18 10-19-2010 08:49 PM
[SOLVED] Mounting .img file (chromiumos.img); can't mount it?? Help please? linus72 Linux - General 2 11-27-2009 08:11 PM
How to edit a gzipped boot.img file without gunzipping it first... NiHao Programming 6 05-25-2009 08:42 PM
How can i edit K3B's img images? Braveheart1980 Linux - Software 10 02-20-2004 01:37 AM
How to Edit .img files safrout Linux - Software 2 08-13-2003 07:54 AM

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

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