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 03-09-2014, 12:21 AM   #1
parvathi reddy
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Rep: Reputation: Disabled
I am trying to extract image file in redhat enterprise linux server 6


How to extract an image file inredhat enterprise linux server 6,we tried with different ways available on the net.But are not working fine.please help me out,i am newbie.which command we have to use for mounting an image file and i am thankful to you if you help me how to do it in the terminal. Can we do anything with package installer.
Thanks in advance
 
Old 03-09-2014, 01:43 AM   #2
Sydney
Member
 
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
I am assuming that you are using an ISO image.
1. Make a mount point.
Code:
mkdir ~/target
2. Mount the image to that mount point.
Code:
mount -o loop /path/to/iso ~/target
3. You can then view the files on that ISO image.
Code:
ls ~/target/
 
1 members found this post helpful.
Old 03-09-2014, 03:34 AM   #3
parvathi reddy
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
correct me - .img file extraction

Thank you sydney for replying

Yes, it is an disc image file of 30 kb.

I tried with that method but it is not working in my terminal,correct me if i am wrong
mkdir ~/target
mount -o loop /path/to/iso ~/target

In path should i give my file path like home/desktop/new.img like that

ls ~/target/

Is there any package installer for that?

can we convert that img file to tar file, so that it would be easy to extract.

Thanks in advance
 
Old 03-09-2014, 03:41 AM   #4
Sydney
Member
 
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
In the terminal
mkdir makes a directory in windows directories are called folders.
~ is a shortcut for your home directory.
Each directory is separated by /
mount is a command to attach parts of the file system
So I am saying make a folder and attache the iso to the system at that folder.
Code:
mkdir /home/sydney/targetfolder
mount -o loop journey.iso /home/sydney/targetfolder
then click into the folder and you will see what is in the disk image or you can list the contents in terminal using the ls command
Code:
cd /home/sydney/targetfolder
ls
 
1 members found this post helpful.
Old 03-09-2014, 06:31 AM   #5
parvathi reddy
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
thank you

Hello


sydney, it was very helpful


thank you
 
Old 03-09-2014, 01:43 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Yes, it is an disc image file of 30 kb.
30 k is very small
are you sure it is a real disk image made of a hard drive ?

those tend to be hundreds of meg to hundreds of Gig in size
 
Old 03-10-2014, 12:50 AM   #7
parvathi reddy
LQ Newbie
 
Registered: Mar 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
reply

sorry it was 46.8 MB (49066824 bytes)....


my last doubt
are there any other possible ways to do this apart from this.
Are .img and iso files both are same / can i convert .img file to iso file .



thanks in advance .
 
Old 03-10-2014, 01:11 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
what software did you use to make it ?

a "img" can well be anything
for example :
The ones I work with are NOT disk images but photographs from NASA spacecraft

so what was used to make this img file ?

the
Code:
mount -o loop ?????????????
should do it for most hard disk images

but even 46 meg is very small

Last edited by John VV; 03-10-2014 at 01:17 AM.
 
1 members found this post helpful.
  


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 do I extract war file under Linux Red Hat Enterprise server 5.0? edgarosy Linux - Newbie 6 04-16-2010 05:04 PM
help me to extract from the image file divyashree Linux - Software 1 10-24-2008 11:22 AM
RedHat Enterprise Linux 5.0 and SUSE Linux Enterprise Server 10 available in French?? FrenchQAtestengineer Linux - Newbie 1 02-21-2008 11:26 AM
Image File - How to extract? tobiasw Linux - Software 2 10-24-2006 04:57 PM


All times are GMT -5. The time now is 10:11 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