i’m posting after long time, because this is so useful.
one of my friend was getting bad superblock error and unable to mount usb in Ubuntu 12.04.
She had important data in it.
One option was using fsck and changing superblock-section.
But what if i’m copying her pendrives Data in some image file.
Note that Pendrive was not mounted.
sudo cat /dev/sdb1 > ~/PDBACKUP.iso
where ~ is Current user home directory
NOTE here /dev/sdb1 is path where pendrive /CD/DVD is mounted
to get this path you can either use
command : sudo fdisk -l
or go to System Moitor
type system monitor in Ubuntu Dock you will find System Monitor
in System Monitor under File Systems you will find your device name.
Now you know the device type following command to make an iso image
sudo cat /dev/sdb1 > /home/bhushan/pdimage.iso
where /dev/sdb1 is device name we got from System Monitor
/home/bhushan/pdimage.iso is path to newly created image file.
after you are finished with creating iso image
1)IMAGES OF CD/DVD WILL WORK FINE WITH UBUNU’S IMAGE MOUNTER
IF IMAGE IS OF USB PENDRIVE YOU MAY GET THIS ERROR ON OPENING IN NORMAL UBUNTU IMAGE MOUNTER
HOW TO FIX THIS ?
Use any other iso mounter such as isomaster from software center
I will suggets you to install PowerISO.
What is the logic behind this
cat command is used to print file data on standard Output i.e terminal in Ubuntu/Unix.
i’m redirecting that output to file.
cat /dev/sb1 > filepath
Note that its not necessary to give extension while creating image
Just after finished with creating filerename it with iso and any other image file extenstion
this is the reason why Standard Image mounter gives error while mounting image of PENDRIVE.