LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Viewing windows partition from kubuntu 6.60 live cd (https://www.linuxquestions.org/questions/ubuntu-63/viewing-windows-partition-from-kubuntu-6-60-live-cd-525520/)

matuk_444 02-04-2007 12:44 PM

Viewing windows partition from kubuntu 6.60 live cd
 
A mate of mine has had a windows crash and needs to recover his documents, I thought about using kubuntu live cd to do this. I thought it would flash it up right infront of my eyes but it didn't. Any idea how this is done?

Mat

matuk_444 02-04-2007 01:29 PM

I have sorted this problem out, please remove this post

btolle 02-07-2007 04:52 AM

Better yet, tell us how you solved the problem, you might help someone else who has the same problem.

netstrider 02-07-2007 05:17 AM

I think I can explain it here :) briefly

You will need to determine on which drive your Windows installation is or on which drive it is that you want to recover data from. This is if you don't know already though, so to do this type fdisk -l or sudo fdisk -l :) (On other distributions you might require to su to root).

Mine in particular looks like this:

Code:

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        2550    20482843+  7  HPFS/NTFS
/dev/sda2            2551      11876    74911095    f  W95 Ext'd (LBA)
/dev/sda3          11877      14444    20627460  83  Linux
/dev/sda4          14445      14593    1196842+  82  Linux swap / Solaris
/dev/sda5            2551      11876    74911063+  7  HPFS/NTFS

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1          11983      14593    20972857+  83  Linux
/dev/sdb2              2      11982    96237382+  f  W95 Ext'd (LBA)
/dev/sdb5              2      11982    96237351    7  HPFS/NTFS

As we can see sda1, sda5 and sdb5 are all NTFS drives, so now we need to mount these and make them readable. I know sda1 for me is my 'C' drive on Windows and sdb5 is 'D' and sda5 is 'E'. This doesn't really matter but for convenience I'm going to mount them like that.

so: sudo mkdir /mnt/Win_C /mnt/Win_D /mnt/Win_E

This will create your mountpoints. Now let's edit the fstab so that these partitions are permanently mounted.

Open up your fstab as root user with your favorite text editor: sudo gedit /etc/fstab

Code:

/dev/sda1      /mnt/Win_C      ntfs        defaults,umask=0 0 0
/dev/sdb5      /mnt/Win_D      ntfs        defaults,umask=0 0 0
/dev/sda5      /mnt/Win_E      ntfs        defaults,umask=0 0 0

That's how I added mine, you can just change yours according to your HDD's. If you have IDE hard drives it will be /dev/hda and not sda :) . Now for the final part:

sudo mount -a

That will mount all your drives in fstab. Now you can browse to /mnt/Win_C or whichever you created with your file browser (Konqueror/Nautilus/Thunar) or do ls /mnt/Win_C to see whether you can see the files 8-)

Hope this helps someone sometime :p

matuk_444 02-11-2007 06:19 PM

It was even easier than that. It was a simple case of RTFM. I went on to the kubuntu website and read their introductory PDF, it had simple instructions, how to get the connection for NTFS as FAT32.

Mat

matuk_444 02-11-2007 06:20 PM

I will add, that it was one or two lines, really VERY simple, even I followed it!!!

Mat


All times are GMT -5. The time now is 05:30 AM.