LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Read multi partitions in Windows NTFS from linux (https://www.linuxquestions.org/questions/linux-general-1/read-multi-partitions-in-windows-ntfs-from-linux-117796/)

java8964 11-19-2003 09:32 AM

Read multi partitions in Windows NTFS from linux
 
Please help me to get my data back.

I have a west digital 80G ATA hard disk. Last night, it is not readable from my windows XP. This hard disk has two NTFS partitions. The bios find the harddisk without any proble. But the windows XP complains some error if I try to access this disk.

Using wesk digital life guard hard disk utility to test this hard disk, the tools crash. (What hell is that?)

I already created a RMA from west digital. Before I send the disk back, there are some very important data on the disk. I want to keep them. The most important data is in the second partition.

I want to try it on linux. So I install the disk under my suse 8.2. The disk is installed under /dev/hdc. If I typed in fdisk -l, here is the result:

earth:/home/yzhang # fdisk -l

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 9729 78148161 42 SFS

Disk /dev/hda: 30.7 GB, 30735581184 bytes
16 heads, 63 sectors/track, 59554 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 131 65992+ 83 Linux
/dev/hda2 132 4293 2097648 82 Linux swap
/dev/hda3 4294 59554 27851544 83 Linux

Disk /dev/hdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 9963 80027766 83 Linux


Then I mount it under root as this: mount -t ntfs /dev/hdc1 /mnt/ntfs
The mount is successful. If I go to /mnt/ntfs, it looks like all the files in the first ntfs partition are there. But where is the second ntfs partition?
I really want to save my data in the second partition. Please help me.

Thanks very much.

Note: I won't put any critical data in the windows machine any more. My old dell pII 350 and AMD 1G using linux never destory one single hard disk. The XP already crash one hard disk. This is the second time in 6 months. Always use Linux to back up your critical data!!!

randomblast 11-19-2003 09:38 AM

the second partition is /dev/hdc2 but it looks like there is physical damage on the disk itself, you could try using the linux disk editor (http://lde.sourceforge.net/) to extract the files you need but it'll be hard work

aaa 11-19-2003 09:42 AM

Take a look at this:
http://www.linuxquestions.org/questions/history/92393
Maybe it's because you use 'Dynamic Disks' that you can only find one partition.

Crashed_Again 11-19-2003 09:43 AM

Did you try:

mount -t ntfs /dev/hdc2 /mnt/ntfs

java8964 11-19-2003 09:57 AM

As you can see, there is no /dev/hdc2 in fdisk -l. So I can't mount /dev/fdc2

If there are two ntfs partitions in hdc, should fdisk -l show /dev/fdc1 and /dev/fdc2?

I understand there is a problem with this harddisk, otherwise windows won't complain. (If I check the event log in windows xp, it listed there that there is a bad block in this hard disk and can't access).

What I try to find out is that in linux there is only one partition recongized by fdisk as /dev/fdc1. Is this normal? Does this mean the /dev/hdc2 is really bad? Or just linux can't recongize multi ntfs partition in one hard disk?


Thanks

java8964 11-19-2003 11:18 AM

ok.

I download the ntfs tools and ldm tools from
linux-ntfs.sourceforge.net

There is one utility tools named ldminfo

After I run ldminfo /dev/hdc

Here is the result:
Device | Offset Bytes Sectors MiB | Size Bytes Sectors MiB
-------------+--------------------------------+-------------------------------
hdc | 0 0 0 | 80026361856 156301488 76319
hdc1 | 32256 63 0 | 41943040000 81920000 40000
hdc2 | 41943072256 81920063 40000 | 38080676864 74376322 36316

I can see the hdc2 is there, but I can't mount it or read it.

What I should do next? Thanks


All times are GMT -5. The time now is 01:11 PM.