PDA

View Full Version : kali doesn't read my partitions



blamn
2013-05-28, 17:35
hello
i'm trying to install kali to my hard using a usb
when i get to select where to install kali shows my hard as it's unallocated even if i had partitions and i made a 30gb unallocated space to install kali in but i don't see partitions and show like it's empty
i tried the live and install and graphic install same problem
tried hardware detection tool (the last line) it reads my hard and partitions
i also tried BT5R3 same problem
tried also with ubuntu-12.04.2 ls same problem
even if it reads the file system and all of it's files in the live

blamn
2013-05-28, 23:36
i've founded that the problem is about that linux doesn't read GPT i'm still trying to find a solutions without turning it to MBR

Edit :
The problem fixed :D
i launched live kali and used this commands
fdisk -l : to make sure that the partitions is there + to knoew the letters of it mine was "dev/sda"

# fdisk -l

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

Device Boot Start End Blocks Id System
/dev/sda1 1 1959 15735636 c W95 FAT32 (LBA)
/dev/sda2 1960 5283 26700030 f W95 Ext'd (LBA)
/dev/sda3 5284 6528 10000462+ 7 HPFS/NTFS
/dev/sda4 6529 9729 25712032+ c W95 FAT32 (LBA)
/dev/sda5 * 1960 2661 5638752 83 Linux
/dev/sda6 2662 2904 1951866 83 Linux
/dev/sda7 2905 3147 1951866 83 Linux
/dev/sda8 3148 3264 939771 82 Linux swap / Solaris
/dev/sda9 3265 5283 16217586 b W95 FAT32
sfdisk -d /dev/sda > parts.txt : to backup the partition table and copy it to your flash memory for example
in case this went wrong use this command to restore the old table : sfdisk -f /dev/sdc < parts.txt
download this : http://sourceforge.net/projects/gptfdisk/files/gptfdisk/
for me i downloaded : fixparts_0.8.6-1_i386.deb
and to installe it : sudo dpkg -i fixparts_0.8.6-1_i386.deb
after it installed use this command : fixparts /dev/sda (replace sda with ur harddrive letter)
then p to print the partition table then s to sort then p again to make sure nothing bad happended :D then w to write changes then y to accept

# fixparts /dev/sda
FixParts 0.8.4

Loading MBR data from /dev/sdc

MBR command (? for help): p

** NOTE: Partition numbers do NOT indicate final primary/logical status,
** unlike in most MBR partitioning tools!

** Extended partitions are not displayed, but will be generated as required.

Disk size is 3981312 sectors (1.9 GiB)
MBR disk identifier: 0x00000000
MBR partitions:

Can Be Can Be
Number Boot Start Sector End Sector Status Logical Primary Code
1 * 62 1171799 primary Y 0x07
2 1171800 1562399 primary Y 0x83
3 1562462 3124799 primary Y Y 0x0C
5 3124862 3980213 logical Y Y 0xAF

MBR command (? for help):
then the problem is fixed

blamn
2013-05-29, 18:34
close topic

HaselnuesseTo
2015-08-01, 00:10
I've done exactly what you done and created a backup file with sfdisk under a live run.

Windows isn't booting anymore and I need to recovery the the backup. I know that the file is lost, but how to restore my disk?

duxim
2015-08-03, 14:22
I've done exactly what you done and created a backup file with sfdisk under a live run.

Windows isn't booting anymore and I need to recovery the the backup. I know that the file is lost, but how to restore my disk?

Try recover with boot repair cd
http://sourceforge.net/projects/boot-repair-cd/ . It is easy and I am thinking it can help you. In this case you need internet access.
or if it is not helpful you can use some similarly tool like Hiren's Boot (can repair windows boot) or you can try with any live Linux installation
In all cases you have to make boot USB/CD and boot system from it.