-
Senior Member
registered user

Originally Posted by
kk39shadow
Ok, here is what gpart says:
Ok.
Guessed Primary Partition Table:
Primary partition(1)
type: 006(0x06)(Primary 'big' DOS (>32MB))
size: 47mb #s (96327) s(63-96389)
chs: (0/1/1)-(5/254/63)d (0/1/1-(5/254/63)r
Primary partition(2)
type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX)
size: 233609mb #s(478431760) s(96390-478528149)
chs: (6/0/1)-(1023/254/63)d (6/0/1)-(29786/254/5

r
Primary partition(3)
type: 012(0x0C)(DOS or Windows 95 with 32 bit FAT,
LBA)
size: 4753mb #s(9735390) s(478528155-488263544)
chs: (1023/254/63)-(1023/254/63)d
(29787/0/1)-(30392/254/63)r
Primary partition(4)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
Now, where do I go from here?
Thanks again
Since it appears that your "guessed" partitions are consistent, you can now rebuild your partition table. By consistent, I mean that all of your partitions appear to be in sequential order, so you don't have a partition that spills over into a neighboring partition.
From the data, it appears like you have a small DOS partition at the beginning of the disk (probably a BIOS/utility partition), followed by your main NTFS "C:" drive partition and a small approximately 4GB FAT32 partition (maybe an "E:" drive?) at the end of your disk.
So now you can run the same command again, only this time you can use it to WRITE a new partition table for your drive.
A command like this one should get the job done. The "W" needs to be an UPPERCASE letter:
gpart -W /dev/sda /dev/sda
Then you can reboot KNOPPIX and hopefully some new drive partition icons will appear on your desktop. You should then be able to copy any important files over to a USB drive or to a network shared drive.
Assuming that you now have a good partition table on your drive, you might even be able to save your Windows installation if you own the original CDROM. You will need to boot your Windows CDROM and then go into the "Recovery Console" and type in a command like this:
fixmbr
Here is an example of someone who used gpart to solve a similar problem as yours:
http://enterprise.linux.com/article..../10/11/1911211
If you get everything back up and running, you should take his advice and make a backup copy of your Master Boot Record including the partition table and store this file somewhere else like on a thumbdrive or a floppy disk.
To make a backup, type this in:
dd if=/dev/sda of=/tmp/mbr_backup.img bs=512 count=1
and the backup file will be called "mbr_backup.img" and it will be stored inside your /tmp directory (Temporary files are commonly stored there). Then copy this file to somewhere safe.
To restore your backup, first copy it back to the /tmp directory and then type:
dd if=/tmp/mbr_backup.img of=/dev/sda bs=512 count=1
Good Luck
Similar Threads
-
By fogsy in forum MS Windows & New to Linux
Replies: 3
Last Post: 10-22-2009, 09:24 PM
-
By Bachatero in forum MS Windows & New to Linux
Replies: 0
Last Post: 02-14-2008, 10:27 PM
-
By Plala in forum MS Windows & New to Linux
Replies: 6
Last Post: 06-11-2007, 06:15 PM
-
By stevelw in forum Laptops
Replies: 16
Last Post: 07-16-2005, 04:57 PM
-
By scrat in forum MS Windows & New to Linux
Replies: 1
Last Post: 08-06-2004, 04:24 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Samsung 64GB 4DRx4 PC4-2666V LD2 DDR4 ECC Server RAM Memory M386A8K40BM2-CTD7Y
$299.00

SK HYNIX HMAA8GL7MMR4N-UH 64GB PC4-2400T RDIMM Server RAM
$289.95

SMART(Micron)SafeStor 32GB(1X32GB) 1RX4 NN4-3200AA(DDR4) HPE Server Memory
$159.98

x4 Intel 128GB NMB1XXD128GPS Optane Memory 200 Series PMEM Module 3200 DDR4 RAM
$329.99

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

SAMSUNG 64GB 2Rx4 PC4-3200AA-RB4-12-MH1 DDR4 ECC RDIMM M393A8G40BB4-CWECO
$650.00

Lot of 12 Samsung 32 GB PC4 2933Y M393A4K40CB2-CVFBY Server Memory
$2799.00

MICRON MTA36ASF4G72PZ-2G6E1 | 32GB PC4-2666V ECC RDIMM Server RAM
$184.95

ADATA 32GB 2X16gb 4800 MT/s (DDR5-4800) CBDAD5S480016G-B Laptop Memory
$350.00