Package Search
 
Members: 351 | Topics: 750 | Posts: 3149
We welcome our newest member: Somewhat Reticent
Info
» You aren't logged in, login or registerOnline: No members and 7 guests | Time: 20:48
fixing partition table - how?
paldo Support Forum    paldo    General Support
Reply Reply   Subscribe Topic Subscribe Topic
7 posts found.
 fixing partition table - how?
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
After I installed Vista (that was a bad idea, but I've to test joost) I broke my partition table.

What I did:

I added a primary partition to the end of my first hdd (sda).
Made this partition active and installed vista on it.
After that I restored grub and added Vista as a bootoption.

When I start gparted it tells me that sda is empty and unlocated. What can I do to restore my partion table?

This is was fdisk tells me:

Code[In neuem Fenster öffnen]
[root@amnonspc:~]# fdisk -l /dev/sda
omitting empty partition (5)

Disk /dev/sda: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 2850 22892593+ 83 Linux
/dev/sda2 2851 24505 173943787+ 5 Extended
/dev/sda3 5082 10180 40957686 83 Linux
/dev/sda4 * 24506 30401 47359620 7 HPFS/NTFS
/dev/sda5 2851 2984 1076292 82 Linux swap / Solaris
/dev/sda6 2985 5081 16844121 83 Linux
/dev/sda7 10181 15075 39319056 83 Linux
/dev/sda8 15076 19809 38025823+ 83 Linux
/dev/sda9 19810 24505 37720588+ 83 Linux
Profile   Private Message   E-Mail
Created: 2007-04-23 03:08
Highlight selected Text   Edit   Delete   Quote Reply
 Re: fixing partition table - how?
Administrator
 
 
 
Posts: 408
Registered: 2004-09-09
Zitat
Original erstellt: 2007-04-23 03:08 von Amnon82
When I start gparted it tells me that sda is empty and unlocated. What can I do to restore my partion table?


Do you mean sdaX or does gparted tell something completely different than fdisk? I have no idea what Vista does to break the partition table or how your layout looked like before you've installed Windows...
Profile   Private Message   Web
Created: 2007-04-23 06:53
Highlight selected Text   Edit   Delete   Quote Reply
 Re: fixing partition table - how?
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
What I mean is this:

Gparted shows me that sda is total blank, what is totally wrong cos I'm running Paldo from it. Fdisk shows me the right partition table.

After installing Vista all was fine but I can't boot Paldo so I used my Paldo LiveCD and installed Grub on (hd0,0) using setup (hd0).

I added followed lines to the menu.lst:

title Windows Vista
root (hd0,3)
chainloader +1

Before I did that Gparted showed me everything right during the LiveCD-Session.
After installing Grub all went wrong.

Now I'm searching a way that Gparted shows the right partition table.
In the net is written I've to create a empty dos partition table on sda and Gparted will find the partions, but what possibility do I have to success this way?

Seems it is a common problem with gparted:

http://gparted-forum.surf4.info/viewtopic.php?pid=2174
Profile   Private Message   E-Mail
Created: 2007-04-23 10:26 | Modified: 2007-04-23 10:30 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: fixing partition table - how?
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I used this guide:

http://www.pro-networks.org/forum/about78184.html#dualboot

Paldo was first on sda1.

The partition table was this:

sda1 - primary - active - paldo
sda2 - extended
--sda5 - ext3
--sda6 - ext3
--sda7 - ext3
--sda8 - ext3
--sda9 - ext3
--sda10 - swap
sda3 - primary - ntfs - formated by gparted

The windows xp cd changed the active flag to sda3.
I installed vista on sda3
I used the LiveCD of Paldo to check the partition table in gparted.
It was still the same.
Reinstalled grub to (hd0,0) - (hd0) and added the line for vista on (hd0,2)

Vista won't boot. So I higherd the partition to (hd0,3) via edit.
Now I wonderd: Why does the partition table changed. Why is Vista now on sda4?

So the partition table was now this:

sda1 - primary - paldo
sda2 - extended
--sda3 - ext3 - before sda5
--sda5 - swap - before sda10
--sda6 - ext3
--sda7 - ext3
--sda8 - ext3
--sda9 - ext3
sda4 - primary - active - vista

... seems we have to learn.
Profile   Private Message   E-Mail
Created: 2007-04-23 10:51 | Modified: 2007-04-23 10:56 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: fixing partition table - how?
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
disktype gave me this info:

Code[In neuem Fenster öffnen]
sudo ./disktype /dev/sda

--- /dev/sda
Block device, size 232.9 GiB (250058268160 bytes)
GRUB boot loader, compat version 3.2, boot drive 0xff
DOS/MBR partition map
Partition 1: 21.83 GiB (23442015744 bytes, 45785187 sectors from 63)
Type 0x83 (Linux)
Ext3 file system
Volume name "paldo"
UUID D74825A1-BB01-4DBB-A9BA-590B6CFC09C9 (DCE, v4)
Volume size 21.83 GiB (23442014208 bytes, 5723148 blocks of 4 KiB)
Partition 2: 165.9 GiB (178118438400 bytes, 347887575 sectors from 45785250)
Type 0x05 (Extended)
Partition 5: 1.026 GiB (1102123008 bytes, 2152584 sectors from 45785250+126)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 1.026 GiB (1102114816 bytes, 269071 pages of 4 KiB)
Partition 6: 16.06 GiB (17248379904 bytes, 33688242 sectors from 47937960+63)
Type 0x83 (Linux)
Ext3 file system
Volume name "sda6"
UUID F7C0E3F5-F51C-4D8E-8203-76EA5A6F710C (DCE, v4)
Volume size 16.06 GiB (17248378880 bytes, 4211030 blocks of 4 KiB)
Partition 7: 37.50 GiB (40262713344 bytes, 78638112 sectors from 163541700+63)
Type 0x83 (Linux)
Ext3 file system
Volume name "sda7"
UUID C83EC0CA-6526-4F55-A42E-34950C2ECE59 (DCE, v4)
Volume size 37.50 GiB (40262713344 bytes, 9829764 blocks of 4 KiB)
Partition 8: 36.26 GiB (38938443264 bytes, 76051647 sectors from 242179875+63)
Type 0x83 (Linux)
Ext3 file system
Volume name "sda8"
UUID 25CA3266-579E-4508-8561-CE9829C1DA62 (DCE, v4)
Volume size 36.26 GiB (38938439680 bytes, 9506455 blocks of 4 KiB)
Partition 9: 35.97 GiB (38625882624 bytes, 75441177 sectors from 318231585+63)
Type 0x83 (Linux)
Ext3 file system
Volume name "sda9"
UUID 8F114F20-A685-4853-9669-4AF0B04C0CFF (DCE, v4)
Volume size 35.97 GiB (38625882112 bytes, 9430147 blocks of 4 KiB)
Partition 3: 39.06 GiB (41940670464 bytes, 81915372 sectors from 81626328)
Type 0x83 (Linux)
Ext3 file system
Volume name "sda3"
UUID 8EE7B798-FBB1-4CBC-82FB-91C6C7E0A5E0 (DCE, v4)
Volume size 39.06 GiB (41940668416 bytes, 10239421 blocks of 4 KiB)
Partition 4: 45.17 GiB (48496250880 bytes, 94719240 sectors from 393672825, bootable)
Type 0x07 (HPFS/NTFS)
NTFS file system
Volume size 45.17 GiB (48496250368 bytes, 94719239 sectors)
Profile   Private Message   E-Mail
Created: 2007-04-24 12:11
Highlight selected Text   Edit   Delete   Quote Reply
 Re: fixing partition table - how?
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
Seems the tool gpart did it wrong:

Code[In neuem Fenster öffnen]
[amnon@amnonspc:~/disktype/disktype-9]$ sudo ./gpart /dev/sda

Begin scan...
Possible partition(Linux ext2), size(22356mb), offset(0mb)
Possible extended partition at offset(22356mb)
Possible partition(Windows NT/W2K FS), size(17500mb), offset(22356mb)
Possible partition(Linux ext2), size(37134mb), offset(118251mb)
Possible partition(Linux ext2), size(36836mb), offset(155386mb)
Possible partition(Windows NT/W2K FS), size(46249mb), offset(192223mb)
End scan.

Checking partitions...
Partition(Linux ext2 filesystem): primary
Partition(OS/2 HPFS, NTFS, QNX or Advanced UNIX): invalid logical
Partition(Linux ext2 filesystem): logical
Partition(Linux ext2 filesystem): logical
Partition(OS/2 HPFS, NTFS, QNX or Advanced UNIX): primary
Ok.

Guessed primary partition table:
Primary partition(1)
type: 131(0x83)(Linux ext2 filesystem)
size: 22356mb #s(45785184) s(63-45785246)
chs: (0/1/1)-(1023/254/63)d (0/1/1)-(2849/254/60)r

Primary partition(2)
type: 015(0x0F)(Extended DOS, LBA)
size: 169866mb #s(347887575) s(45785250-393672824)
chs: (1023/254/63)-(1023/254/63)d (2850/0/1)-(24504/254/63)r

Primary partition(3)
type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX)
size: 46249mb #s(94719232) s(393672825-488392056)
chs: (1023/254/63)-(1023/254/63)d (24505/0/1)-(30400/254/55)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


lets see what fixdisktable says ...
Profile   Private Message   E-Mail
Created: 2007-04-24 12:55
Highlight selected Text   Edit   Delete   Quote Reply
 Re: fixing partition table - how?
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
fixdisktable shows me the same result like gparted:

Code[In neuem Fenster öffnen]
[amnon@amnonspc:~/disktype/disktype-9]$ sudo ./fixdisktable -v /dev/sda
cylinders=30401, heads=255, sectors=63
end_offset: 2147482624
EXT2 partition at offset 31744, length=(22356.047 MB) 23442014208
Sectors: start= 62, end= 45785245, length= 45785184
Hd,Sec,Cyl: start(0,63,0) end(254,59,2849)

Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 80 1 1 0 254 63 1023 63 45785184 83 (Interpretted)
1 80 1 1 0 254 255 255 63 45785184 83 (RAW)

1: 8001 0100 83fe ffff 3f00 0000 60a0 ba02
2: 0000 0000 0000 0000 0000 0000 0000 0000
3: 0000 0000 0000 0000 0000 0000 0000 0000
4: 0000 0000 0000 0000 0000 0000 0000 0000

Do you wish to write this partition table to disk (yes/no)?


So only fdisk -l /dev/sda and disktype /dev/sda shows me the right table. Seems I've to dig deeper to get out if disktype can also write the table ...
Profile   Private Message   E-Mail
Created: 2007-04-24 13:02
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a