Hello and welcome to LQ, hope you like it here.
Quote:
Originally Posted by radeson
I mounted .img file to my disk partition and I damaged my partitions.
|
Only mounting a file should not damage partitions or partition layout as far as I know. You must have done more than mounting.
Quote:
Originally Posted by radeson
I can't boot system. The disk manager programs says that they cannot recognize partition information.
|
What disk manager program? What is the exact error? Do you by any chance have a full backup of the harddisk or the MBR plus partition table? If not boot a Live CD like KNOPPIX and run 'man gpart' to get aquainted with 'gpart' before running it.
Quote:
Originally Posted by radeson
The command was: mount file.img /dev/sda2.
|
Next time create a temporary directory: 'mkdir /mnt/temp', then mount it with 'losetup /dev/loop0 /path/to/file.img; mount /dev/loop0 /mnt/temp'. Maybe a bit more complex but less prone to SNAFUs.