LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Explore iso image file (https://www.linuxquestions.org/questions/linux-newbie-8/explore-iso-image-file-841790/)

Sawas 11-01-2010 07:18 PM

Explore iso image file
 
I have used to knoppix to grab an image off a pc to my external hard drive.I then used the command dd if=/sdc1/backup.iso of sda2 bs=4096 conv=notrunc,noerror to another pc I was cloning.This process failed and the hard drive was not seen after that even using fstab.Did I do this wrong?Is there any way I can verify if the iso image i grabbed is good.What command can i use to explore this iso image?

stress_junkie 11-01-2010 08:02 PM

You can use the loop option of the mount command to mount a file that has a file system.
Code:

mkdir /mnt/backup
mount -o loop backup.iso /mnt/backup

You may have to add the -t file-system-type parameter as in
Code:

mount -t ntfs-3g -o loop backup.iso /mnt/backup

tommyttt 11-02-2010 02:33 AM

Quote:

Originally Posted by Sawas (Post 4146293)
I have used to knoppix to grab an image off a pc to my external hard drive.I then used the command dd if=/sdc1/backup.iso of sda2 bs=4096 conv=notrunc,noerror to another pc I was cloning.This process failed and the hard drive was not seen after that even using fstab.Did I do this wrong?Is there any way I can verify if the iso image i grabbed is good.What command can i use to explore this iso image?

See man dd. the of spec needs an "=" sign after it just like the if= has. Don't know if that is the problem since you don't provide any error message. When asking for help, PLEASE always provide as much information as possible (what you were doing, what error messages were displayed, recent updates, any other info that can help us with your problem).

Tom

divyashree 11-02-2010 05:38 AM

Quote:

Originally Posted by Sawas (Post 4146293)
I have used to knoppix to grab an image off a pc to my external hard drive.I then used the command dd if=/sdc1/backup.iso of sda2 bs=4096 conv=notrunc,noerror to another pc I was cloning.This process failed and the hard drive was not seen after that even using fstab.Did I do this wrong?Is there any way I can verify if the iso image i grabbed is good.What command can i use to explore this iso image?

Where is the '=' after of ?

You can mount that iso image by mount command.

Quote:

mount -o loop -t iso9660 <source iso file> <destination>


All times are GMT -5. The time now is 11:14 AM.