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 |
I am assuming that you are using an ISO image.
1. Make a mount point. Code:
mkdir ~/target Code:
mount -o loop /path/to/iso ~/target Code:
ls ~/target/ |
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 |
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 Code:
cd /home/sydney/targetfolder |
thank you
Hello
sydney, it was very helpful thank you |
Quote:
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 |
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 . |
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 ????????????? but even 46 meg is very small |
All times are GMT -5. The time now is 01:06 AM. |