So I had a partition table similar to : (fdisk -l):
... don' t quote me on the hdb3 line, as I'm guessingCode:Device Boot Start End Blocks Id System
/dev/hdb1 1 6080 48837568+ c W95 FAT32 (LBA)
/dev/hdb3 6081 27263 ????? 83 Linux
/dev/hdb6 10000 13889 31246393+ 83 Linux
/dev/hdb7 13890 15105 9767488+ 83 Linux
/dev/hdb8 15106 22400 58597056 83 Linux
I wanted to delete the /dev/hdb3 (primary) partition and insert a logical ext3 in it's place. Which I would 'cp -a' my /home folder to, because /dev/hda was 100% full. I did all that and copied my home folder over, which seemed to work.
The 'fdisk -l' table looks like this now:
.../dev/hdb9 is a backup I made of hdb5 with dd .Code:Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000124f6
Device Boot Start End Blocks Id System
/dev/hdb1 1 6080 48837568+ c W95 FAT32 (LBA)
/dev/hdb3 6081 27263 170152447+ 5 Extended
/dev/hdb5 6081 9999 31479336 83 Linux
/dev/hdb6 10000 13889 31246393+ 83 Linux
/dev/hdb7 13890 15105 9767488+ 83 Linux
/dev/hdb8 15106 22400 58597056 83 Linux
/dev/hdb9 22401 27263 39062016 83 Linux
After reboot (i didn't reboot after making partition or formating), the system says:
and when I try to mount /dev/hdb3:Code:mount: wrong fs type, bad option, bad superblock on /dev/hdb5,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
It also gives me something about running e2fsck -b 8193 device , which I tried, substituting -b 32768 . Nothing would recognize the partition. Finally I landed on the testdisk program, which found it!Code:mount: wrong fs type, bad option, bad superblock on /dev/hdb3,
missing codepage or helper program, or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so
TestDisk ouput:
and the next screen:Code:Disk /dev/hdb - 250 GB / 232 GiB - CHS 30401 255 63
Current partition structure:
Partition Start End Size in sectors
1 P FAT32 LBA 0 1 1 6079 254 63 97675137
3 E extended 6080 0 1 27262 254 63 340304895
No partition is bootable
No EXT2, JFS, Reiser, cramfs or XFS marker
5 L Linux 6080 1 1 9998 254 63 62958672
5 L Linux 6080 1 1 9998 254 63 62958672
X extended 9999 0 1 13888 254 63 62492850
6 L Linux 9999 1 1 13888 254 63 62492787
X extended 13889 0 1 15104 254 63 19535040
7 L Linux 13889 1 1 15104 254 63 19534977
X extended 15105 0 1 22399 254 63 117194175
8 L Linux 15105 1 1 22399 254 63 117194112
X extended 22400 0 1 27262 254 63 78124095
Next
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Code:Disk /dev/hdb - 250 GB / 232 GiB - CHS 30401 255 63
Partition Start End Size in sectors
* FAT32 LBA 0 1 1 6079 254 63 97675137
P Linux 6080 0 1 9998 254 63 62958735 [/]
L Linux 9999 1 1 13888 254 63 62492787 <---- that's the one I need!
L Linux 13889 1 1 15104 254 63 19534977
L Linux 15105 1 1 22399 254 63 117194112
I'm really having trouble making heads or tails of all this. I think I violated some rule by trying to insert a logical partition.:?
Like I said, it all actually worked before I rebooted.
