| Forum |
|
|||||||
| Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
AFK
Join Date: Oct 2006
Location: Bombay
Posts: 1,596
|
My opinion is that most of the data can be salvaged before a full format by transferring data to another partition. I've currently got Ubuntu's Live CD with me. Anything I should know as to hope to go about? Or is something else recommended? PS. He was going to format his PC anyway , it's just that his PC refused to boot when he decided to back up
__________________
Check out http://thefinal3rd.com, an Indian footie blog. Follow me on http://twitter.com/thewisecrab Fishdumplings!! Duniya goal hai? |
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#3 (permalink) |
|
TheSaint
Join Date: Jun 2004
Location: Antigua
Posts: 3,444
|
Yes you can recover the data.
Boot form the Ubuntu CD. You will see all the windows partitions in the Places drop down menu as shown in the example below (10.7 GB). You can see only one partition in my example as there is, well, only one partition on that VM ![]() If the above fails do a manual mount. If you do not know how to do that post back here.
__________________
http://www.neville.in http://www.linuxrocks.in "The Future Is Open" |
|
|
|
|
#4 (permalink) |
|
AFK
Join Date: Oct 2006
Location: Bombay
Posts: 1,596
|
Quote:
But what do I do if they are not detected? ie. How to do a manual mount?
__________________
Check out http://thefinal3rd.com, an Indian footie blog. Follow me on http://twitter.com/thewisecrab Fishdumplings!! Duniya goal hai? |
|
|
|
|
#5 (permalink) |
|
Married!
Join Date: Apr 2007
Location: Calcutta
Posts: 1,515
|
I am sure it will recognise the partitions.
Manual Mount Command Code:
sudo mount /dev/sdax -t ntfs-3g /mnt/mountpoint
__________________
topdocumentaryfilms.com |
|
|
|
|
#6 (permalink) |
|
TheSaint
Join Date: Jun 2004
Location: Antigua
Posts: 3,444
|
Manual mount
There's LOADS of documentation available on the usage of that command. I will try to give you ONLY what's required. Open a shell (applications->GNOME terminal) or if you want to show your friend that you are geeky, press Ctrl+Alt+F1. You can press Ctrl+Alt+F7 to come back to GUI mode. Type sudo fdisk -l and press ENTER See the output. It will be something like this Device Boot Start End Blocks Id System /dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS /dev/sda2 1913 19457 140930212+ f W95 Ext'd (LBA) /dev/sda5 1913 4462 20482843+ 7 HPFS/NTFS /dev/sda6 6708 11171 35857048+ 83 Linux /dev/sda7 11172 19457 66557263+ 7 HPFS/NTFS /dev/sda8 4463 4717 2048256 82 Linux swap / Solaris /dev/sda9 4718 6707 15984643+ 83 Linux As you can see, my first partition /dev/sda1 is an ntfs partition, and I have two other ntfs partitions /dev/sda5 and /dev/sda7 So if I want to mount these, I would first have to create a mount point - one mount point if I want to access them one at a time, or multiple mount points if I want to access them all together. When you are recovering data I recommend that you access one partition at a time. Creating a mount point: Let us create a new mount point share in /mnt Type sudo mkdir /mnt/share and press ENTER Type ls /mnt to see your newly created mount point Mounting: When you mount using the mount command, you have to specify the filesystem type, the device you want to mount, and the mount point. Let us mount the first partition. In my case, my first partition has a filesystem type ntfs, device name is /dev/sda1 and I want to mount it to /mnt/share. So the command will be sudo mount -t ntfs /dev/sda1 /mnt/share and press ENTER Note that unlike what is suggested in the post above, I did not ask you to use the ntfs-3g filesystem type. This is because in data recovery we are happy with read only access, we do not really want to write to the partition. If you want to write to the partition, use ntfs-3g in the above command instead of ntfs. If your filesystem is FAT32 it will show up in the fdisk -l output as vfat. In that case use the parameter vfat instead of ntfs in the above command. Recover data: In the GUI mode, simply browse to /mnt/share and copy paste to wherever you want. In text mode (geeky), first decide where you want to copy the data to. See the output of fdisk -l Any pendrive usbdrive will show up as /dev/sdbx or /dev/sdcx where x is a number from 1 onwards. Create a new mount point Type sudo mkdir /mnt/usbshare and press ENTER Type ls /mnt to see your newly created mount point Mount the pendrive sudo mount -t vfat /dev/sdb1 /mnt/usbshare and press ENTER If you get an error message saying that the drive is already mounted then check for the same. Just type the command mount and press ENTER. Most likely the pendrive would have been automatically mounted to /media/disk Also note that if you have a hard disk or pendrive with multiple partitions, then they will be automatically mounted as /media/disk /media/disk-1 /media/disk-2 etc. Let us say I want to copy the data from /dev/sda1 which I have mounted on /mnt/share to my pendrive on /dev/sdb1 mounted on /mnt/usbshare The command will be sudo cp -rv /mnt/share/ /mnt/usbshare/ or sudo cp -rv /mnt/share/ /media/disk/ After the files have been copied, type sudo ls /mnt/usbshare or sudo ls /media/disk to check the destination folder/drive. Unmount your hard disk partition: sudo umount /mnt/share
__________________
http://www.neville.in http://www.linuxrocks.in "The Future Is Open" Last edited by NucleusKore; 13-05-2009 at 08:54 PM. |
|
|
|
|
#7 (permalink) |
|
AFK
Join Date: Oct 2006
Location: Bombay
Posts: 1,596
|
Wow, you have really put a lot of effort into this post.
Thank you NucleusKore and a_rahim
__________________
Check out http://thefinal3rd.com, an Indian footie blog. Follow me on http://twitter.com/thewisecrab Fishdumplings!! Duniya goal hai? |
|
|
|
|
#11 (permalink) |
|
AFK
Join Date: Oct 2006
Location: Bombay
Posts: 1,596
|
UPDATE:
I had to manual mount one of his partitions, using NucleusKore's help. Other than that, other partitions were detected automatically Thanks all, my friend is formatting his PC as we speak knowing well his data is safe
__________________
Check out http://thefinal3rd.com, an Indian footie blog. Follow me on http://twitter.com/thewisecrab Fishdumplings!! Duniya goal hai? |
|
|
|
|
#12 (permalink) | |
|
TheSaint
Join Date: Jun 2004
Location: Antigua
Posts: 3,444
|
Quote:
I was here Attempting Recovery through Ubuntu...need help and I clicked "quote" to quote thewisecrab's message in the reply, and this thread opened with the above quote ??!! and the wisecrab's reply that start's with update has disappeared :-P
__________________
http://www.neville.in http://www.linuxrocks.in "The Future Is Open" |
|
|
|
|
|
#13 (permalink) |
|
TheSaint
Join Date: Jun 2004
Location: Antigua
Posts: 3,444
|
Man this is INSANE, I was just shunted from another thread :-S
Anyway, what I wanted to say is that your experience as described above points to the possibility that the FS of the partition you had to manually mount might have had errors. In future if you encounter such a situation first check the partition for errors with chkdsk in Windows and then backup. If the Windows is not bootable use UBCD4WIN.
__________________
http://www.neville.in http://www.linuxrocks.in "The Future Is Open" |
|
|
|
|
#14 (permalink) | |
|
AFK
Join Date: Oct 2006
Location: Bombay
Posts: 1,596
|
Quote:
I have UBCD's ISO without Windows Build (which suffices for me most of the time) But anyway, data on that mounted partition was recovered successfully
__________________
Check out http://thefinal3rd.com, an Indian footie blog. Follow me on http://twitter.com/thewisecrab Fishdumplings!! Duniya goal hai? |
|
|
|
|
|
#15 (permalink) |
|
Married!
Join Date: Apr 2007
Location: Calcutta
Posts: 1,515
|
^Nice to hear that you were able to recover your data.
__________________
topdocumentaryfilms.com |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|