LinuxQuestions.org
Review your favorite Linux distribution.
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 06-15-2014, 10:33 AM   #1
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Rep: Reputation: Disabled
How to create .img file from a directory


I have a directory and I want to make an .img file from that directory
I tried dd command but it was not working on .img files
Is there any Linux commands doing this job?
 
Old 06-15-2014, 11:16 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,358
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
The extension means absolutely nothing: it's the header (contents and footer) that counts. And saying "dd doesn't work on .img" without posting the complete command line doesn't help us to help you as we don't know what you're doing. Besides, what's the reason why you would want to do this in the first place? If it's for forensics or recovery purposes then just image the whole partition to a file on a suitably sized different (external?) medium. Else, if this is an exercise in futility, you could create an image by dd'ing /dev/zero to a file, partition it, create a file system, loop mount it, recursively copy the directory over and umount it. Presto. "Directory" image ;-p
 
Old 06-15-2014, 11:30 AM   #3
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
I'm trying to install SlackwareARM http://arm.slackware.com/getslack/
And when I download SlackwareARM
Code:
mkdir slackwarearm
cd slackwarearm
rsync -Pavv --delete ftp.arm.slackware.com::slackwarearm/slackwarearm-current .
I get an directory
The link recommend to install it using LAN booting
Of course I could do it by LAN booting
But I just want to make the directory img and install it with USB stick

Last edited by gonny95; 06-15-2014 at 11:33 AM.
 
Old 06-15-2014, 11:39 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,358
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
The "getslack" page clearly shows you how to make an ISO using 'mkisofs'. Else, if you want a loadable minimal/base root file system image, why not just get it from the installation page FTP address?..
 
Old 06-16-2014, 03:49 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,878

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
What device are you trying to install to?

Example.

ftp://ftp.arm.slackware.com/slackwar...L_KIRKWOOD.TXT


Looks as though they don't offer an easy way to dd over an image like other distro's have.

It isn't that hard to set up a tftp server and nfs server to network boot once you have those files.

Last edited by jefro; 06-16-2014 at 03:53 PM.
 
  


Reply


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 resize (or create a blank) .img file garr133351 Linux - Newbie 2 05-10-2011 09:43 AM
[SOLVED] Mounting .img file (chromiumos.img); can't mount it?? Help please? linus72 Linux - General 2 11-27-2009 08:11 PM
how do I create an initrd.img file? aquaboot Debian 2 11-07-2007 05:40 PM
how to extract .img file to create a "DUD" on a floppy diskette dojiep Linux - Newbie 4 05-23-2006 08:31 AM

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

All times are GMT -5. The time now is 10:52 AM.

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