.IMG file help!!!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers .IMG file help!!!
# 15  
Old 12-24-2010
Quote:
Originally Posted by neur0n
well I just mount it using "Archive Mounter".
Well, it didn't work. Could you try following your own instructions instead, and give us the output for that?
Quote:
When I run the df -h it shows this:
It's quite plainly not mounted. Try using the mount command as given in your own instructions, copying as given in your own instructions, making sure the files ended up where you wanted, and unmounting it as given in your own instructions (without the lazy unmount!) ...and telling us, word for word, letter for letter, keystroke for keystroke, what you're actually doing as well as any error messages you get while doing so. The output we asked for from commands while doing what you were doing originally would also be nice. The original method as posted ought to work if run with sufficient permissions, but the further we go down this the more surprises you spring on us. We are not mind readers.

you could also zip up and attach one of your finished disk images for us to look at. Maybe they are fine.

You can get fixed-width formatting by putting things in code tags.

Last edited by Corona688; 12-24-2010 at 02:35 AM..
# 16  
Old 12-24-2010
I am following my own instructions. I meant, I used archive mounter to mount the finished image file. My instruction doesn't say anything about mounting the finished image, and by the way if I try to mount the file using the mount command it shows an error that says some thing about not being able to find the file in /etc/fstab or /etc/mtab.

P.S. All the commands are running in root
# 17  
Old 12-24-2010
Your original instructions didn't include a lazy unmount. Are you still doing that or not? I'm guessing you started doing lazy unmounts because a normal unmount wouldn't work, which may be significant.

Please tell us exactly what you typed in console when you tried to mount it later, word for word, letter for letter, keystroke for keystroke.

And tell us exactly what the error said when it didn't work, word for word, letter for letter, keystroke for keystroke.

Last edited by Corona688; 12-24-2010 at 03:44 AM..
# 18  
Old 12-24-2010
Just a wild guess but are you trying to create an image on a USB stick? Some USB sticks exhibit the behavior you are saying is happening, i.e. writes to the stick appear to go fine but when you umount and then remount the stick the files are not there.
# 19  
Old 12-24-2010
Nope, I'm not writing to a USB stick. This is the text displayed for the whole operation in the terminal:

Code:
$ dd if=/dev/zero of=myimage.img bs=512 count=2880
2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB) copied, 0.0334915 s, 44.0 MB/s
$ mke2fs myimage.img
mke2fs 1.41.4 (27-Jan-2009)
myimage.img is not a block special device.
$ Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
184 inodes, 1440 blocks
72 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=1572864
1 block group
8192 blocks per group, 8192 fragments per group
184 inodes per group

Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
$ mount -o loop myimage.img /media/mount_point
$ cp -aR /home/neur0n/Desktop/image_files/* /media/mount_point
$ umount /media/mount_point
$

After this I use archive mounter to mount the image file. I tried using the mount command but it showed something about not being able to find the image file in /etc/fstab or in /etc/mtab

here is the finished file: myimage.zip
# 20  
Old 12-24-2010
Code:
$ unzip -l myimage.zip 
Archive:  myimage.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
  1474560  12-24-2010 03:05   myimage\myimage.img
---------                     -------
  1474560                     1 file
$ unzip myimage.zip 
Archive:  myimage.zip
warning:  myimage.zip appears to use backslashes as path separators
 extracting: myimage/myimage.img     
$

you're not running on cygwin, are you? Whatever program you used to create the zip file did so in a really weird way, though it worked in the end.

Your disk image contains precisely one file, 'new file', which contains the text 'hello'. If that's what you tried to add, you succeeded, and your "archive mounter" is either faulty -- or designed to mount archives, not disk images.
# 21  
Old 12-24-2010
LOL OMG. That's it. So what did you mount it with?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to remount .img as rw and repack

Hi fellas! I make a sh script which the following: sudo mkdir Temp sudo mount -o loop output.img Temp The command mounts the img.Thats fine.But it moun s it as read only.But I need to edit/delete some files inside it and repack it as ext4 using this command: sudo ./mkuserimg.sh -s Temp... (3 Replies)
Discussion started by: vijai
3 Replies

2. Web Development

HTML/PHP show IMG based on location

HI guys/gals, I like to add some personal touches to a welcome image on our mediawiki site, and have the welcome be displayed in the, presumed, language of the visitor. Standard would be English, but if the IP or browser or OS is set to be in India, I want to display the message in Urdu for... (5 Replies)
Discussion started by: lawstudent
5 Replies

3. UNIX for Advanced & Expert Users

Could I get the initrd.img file without recompile the kernel?

Hi, all: The vmlinuz-3.0.4.old is a kernel previous to the current running kernel vmlinuz-3.0.4 which is compiled the most currently. Could I get the initrd.img-3.0.4.old without recompile under the condition that the config-3.0.4.old, System.map-3.0.4.old and vmlinuz-3.0.4.old exist? if it... (1 Reply)
Discussion started by: liklstar
1 Replies

4. Ubuntu

WGET in Ubuntu( vistual img ) vs Red Hat

Hi I need to fetch a file using wget command. In read Hat I have the file I need without any problem while in Ubuntu ( installed on a virtual image ) it doesn't work. More precisely my wget need to fetch a page from a web site with secure authentication so teh syntax I am using is wget... (7 Replies)
Discussion started by: manustone
7 Replies

5. Red Hat

Fedora installation getting stuck in initrd.img

I have a 80GB hard disk with WinXP already installed.I had tried installing Fedora 10 earlier without creating new partitions(real foolish and ignorant of me :o:o ) and tried creating partitions using Fedora10 bootable.It didnt work.Then I created a free partition and again tried installing... (4 Replies)
Discussion started by: ganesh.k28
4 Replies

6. Solaris

Read/View .img files from SunOs 5.8

We use imaging software from a cardiology clinic on SunOS 5.8 and I want to be able to see these image files (.img extension) on Windows XP. Can this be done? If so, with what software (on Windows XP)? On Windows XP, I've used software like Ulead PhotoImpact and Corel PhotoPaint but I've had no... (16 Replies)
Discussion started by: sreyes27
16 Replies

7. UNIX for Advanced & Expert Users

.DSK to .IMG ?

Hi, I have a windows emulator that I am wanting to try out, but my Windows 3.1 files are split up over 6 .DSK images, and I need to convert them to an .IMG that I can actually mount on my system (so that the emulator can see it). Is there a way to do this? thanks. -patrick (0 Replies)
Discussion started by: patrick99e99
0 Replies

8. Programming

getting img url

hey, i just found this forum...how cool. question: does anybody know code or know where i can get the code to get a certain image URL from user? say user input URL from shell prompt when run the program. What is the code to take that URL open internet and download the image. thanks alot. (2 Replies)
Discussion started by: bb00y
2 Replies
Login or Register to Ask a Question