gingk0
May 22nd, 2008, 01:59 PM
I was installing ubuntu along side vista.
I have 2 hard drives.
I used partition editor to make some room on my 2nd hard drive and I installed ubuntu. I created a 35Gb empty partition and a 4gb swap file partition. I also see the boot loader to boot off of the 2nd disk.
After I rebooted it went straight to vista. I see my 2nd drive but when I click on it is asks if I want to format it.
IN disk manager I see the drive is 0 bytes and it's full.
I have 145gb of data on that 280gb partition.
Now when I boot to the ubuntu cd and run GParted I see
/dev/sdb1 (triangle with an exclamation) ntfs 258gb. --- ---
/dev/sdb3 (keys) linux-swap 3.15 GB --- ---
/dev/sdb2 ext2 36.6 Gb 2.52GB used 33.85Gb unused.
When I click on information for /dev/sb1 (triangle with an exclamation).
It says "failed to startup volume: invalid argument. Failed to mount. The device '/dev/sdb1' doesn't have a valid NTFS. Maybe you selected the wrong device? Or the whole disk instead of a partition. (e.g. /dev/hda, not /dev/hda1) or the other way around?
ntfsresize v2.0.0 (libntfs 10:0.)
failed to startup volume: invalid argument.
Error(22): opening /dev/sdb1 as NTFS failed: invalid argument.
Maybe you selected the wrong device? Or the whole disk instead of a partition. (e.g. /dev/hda, not /dev/hda1) or the other way around?
Unable to read the contents of this file system!
ubuntu@ubuntu:~$ sudo ntfsfix /dev/sdb1
Mounting volume... Failed to startup volume: Invalid argument.
FAILED
Attempting to correct errors... FAILED
Failed to startup volume: Invalid argument.
Volume is corrupt. You should run chkdsk.
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1549f232
Device Boot Start End Blocks Id System
/dev/sda1 * 1 37896 304399588+ 7 HPFS/NTFS
/dev/sda2 37897 38913 8169052+ 7 HPFS/NTFS
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x95cf20c3
Device Boot Start End Blocks Id System
/dev/sdb1 1 33756 271145038+ 7 HPFS/NTFS
/dev/sdb2 34167 38913 38130277+ 83 Linux
/dev/sdb3 33757 34166 3293325 82 Linux swap / Solaris
Partition table entries are not in disk order
How do I recover my partition?
I have 2 hard drives.
I used partition editor to make some room on my 2nd hard drive and I installed ubuntu. I created a 35Gb empty partition and a 4gb swap file partition. I also see the boot loader to boot off of the 2nd disk.
After I rebooted it went straight to vista. I see my 2nd drive but when I click on it is asks if I want to format it.
IN disk manager I see the drive is 0 bytes and it's full.
I have 145gb of data on that 280gb partition.
Now when I boot to the ubuntu cd and run GParted I see
/dev/sdb1 (triangle with an exclamation) ntfs 258gb. --- ---
/dev/sdb3 (keys) linux-swap 3.15 GB --- ---
/dev/sdb2 ext2 36.6 Gb 2.52GB used 33.85Gb unused.
When I click on information for /dev/sb1 (triangle with an exclamation).
It says "failed to startup volume: invalid argument. Failed to mount. The device '/dev/sdb1' doesn't have a valid NTFS. Maybe you selected the wrong device? Or the whole disk instead of a partition. (e.g. /dev/hda, not /dev/hda1) or the other way around?
ntfsresize v2.0.0 (libntfs 10:0.)
failed to startup volume: invalid argument.
Error(22): opening /dev/sdb1 as NTFS failed: invalid argument.
Maybe you selected the wrong device? Or the whole disk instead of a partition. (e.g. /dev/hda, not /dev/hda1) or the other way around?
Unable to read the contents of this file system!
ubuntu@ubuntu:~$ sudo ntfsfix /dev/sdb1
Mounting volume... Failed to startup volume: Invalid argument.
FAILED
Attempting to correct errors... FAILED
Failed to startup volume: Invalid argument.
Volume is corrupt. You should run chkdsk.
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1549f232
Device Boot Start End Blocks Id System
/dev/sda1 * 1 37896 304399588+ 7 HPFS/NTFS
/dev/sda2 37897 38913 8169052+ 7 HPFS/NTFS
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x95cf20c3
Device Boot Start End Blocks Id System
/dev/sdb1 1 33756 271145038+ 7 HPFS/NTFS
/dev/sdb2 34167 38913 38130277+ 83 Linux
/dev/sdb3 33757 34166 3293325 82 Linux swap / Solaris
Partition table entries are not in disk order
How do I recover my partition?