Home » Questions » Computers [ Ask a new question ]

Is there a chkdsk equivalent available for Ubuntu?

Is there a chkdsk equivalent available for Ubuntu?

When I asked this question about recovering data from a damaged Linux partition, people recommended booting from a Windows installation disk and running Chkdsk. Well, I still don't have a Windows disk, but I do have an Ubuntu 8.04 disk. Is there a Chkdsk equivalent I might be able to run from the Ubuntu disk that might help to restore or recover the data on my Linux partition?

Asked by: Guest | Views: 156
Total answers/comments: 1
Guest [Entry]

"Are you shure that you have corrupted partition? Maybe you have erased boot-record or damaged partition table. Try to investigate the problem at first. Describe how did you installed your Linux. From your previous question it looks like it's installed on flat file inside of windows (vfat or ntfs) partition. Try to run fdisk and look at your partition table.

Before making any changes to hard drive try to make image of your hd (you can do that at your friends).

UPDATE:


ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x903bd648

Device Boot Start End Blocks Id System

/dev/sda1 * 1 4864 39070048+ 7 HPFS/NTFS


As we can see there is just one NTFS patrition so I suspect that you installed Ubuntu using WUBI (or something similar).

Your Linux is installed in a loop-mounted partition which is just a file or couple of files somewhere on your windows disk c: (c:\ubuntu\disks for example)

As I see from your previous question you can boot Windows so you could use dskprobe from Windows XP Service Pack 2 Support Tools to make sure that fs type is correct ... but it's already correct fs type 7 is NTFS.

Message ""The type of the filesystem is RAW. CHKDSK is not available for RAW drives."" means that windows can't determine fs type for some reason. As we see fs type is correct.

To run Chkdsk on your Windows partition you can install Windows Recovery Console, boot in recovery console and check your disk.

After checking the disk you will gain access to you c:\ubuntu\disks. I think you can mount your linux partition (which is in file) as usual loop-back device:

mount -o loop [path to your linux-loopback-partition]

But you should mount windows patrition first."