help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re : [Ubuntu 8.04] Grub Error 17 after HD partition resize


From: John Doe
Subject: Re : [Ubuntu 8.04] Grub Error 17 after HD partition resize
Date: Sat, 16 Apr 2011 17:48:00 +0100 (BST)

Hi everybody,

The grub error 17 is now solved and here is what I've done :

$ sudo sfdisk -d /dev/sda > PT.txt

Then here is the PT.txt content :

===========================================================
# table de partitions de /dev/sda
unit: sectors

/dev/sda1 : start=       63, size=   112392, Id= 6
/dev/sda2 : start=   112455, size=400211217, Id= 7, bootable
/dev/sda3 : start=400323672, size=215078283, Id= 5
/dev/sda4 : start=615401955, size=  9735390, Id= b
/dev/sda5 : start=400323735, size=197968995, Id= 1
/dev/sda6 : start=598292793, size= 17109162, Id= 1
===========================================================

It shows an inconsistency between the partition table entry and the filesystem itself.

so this is how I fixed it :

===========================================================
Boot from the live CD and save this as PT_modified.txt :

# table de partitions de /dev/sda
unit: sectors

/dev/sda1 : start=       63, size=   112392, Id= 6
/dev/sda2 : start=   112455, size=400211217, Id= 7, bootable
/dev/sda3 : start=400323672, size=215078283, Id= 5
/dev/sda4 : start=615401955, size=  9735390, Id= b
/dev/sda5 : start=400323735, size=197968995, Id=83
/dev/sda6 : start=598292793, size= 17109162, Id=82

Now write it to the partition table with :

sudo sfdisk --force /dev/sda < PT_modified.txt
===========================================================

You can also take a glance here for more info :

http://ubuntuforums.org/showthread.php?t=1729744

The problem now is that I must fix my windows partition because I still cannot access it, but this is another issue. I'm gonna follow Tom Davies advices which are :

"...Another way to repair Windows systems is to download Trinity Rescue Kit

http://distrowatch.com/table.php?distribution=trinity


http://trinityhome.org/Home/index.php?content=TRINITY_RESCUE_KIT_DOWNLOAD"

and I'll come back with the results

Thank you everybody.

Cheers



De : John Doe <address@hidden>
À : address@hidden
Envoyé le : Ven 15 avril 2011, 20h 01min 10s
Objet : [Ubuntu 8.04] Grub Error 17 after HD partition resize

Hi,

I get the frustrating Grub Error 17 while starting, which looks like this :

============================
Grub Loading stage1.5.

Grub loading, please wait...

Error 17

============================

This happen after a resizing partition I've done like follow :

Step 1- Successful decrease of the ubuntu partition (by the left) using Gparted runned from ubuntu live-CD.
As a result of Step 1, I've got an unallocated partition which was between the windows one and the ubuntu one, everything was ok because I succesfully reboot my system and using Grub menu, I loaded my windows XP Media Center Edition without any problem.

Step 2- From Windows I extended the windows partition to the unallocated one and there problems began. The system asked me to restart and then the extension was done and finally when the system restart again I get the Grub Error 17 as described on the top.

Step 3- I runned the ubuntu live-CD to try to fix the problem and I do the following :

Step 3-1- Gparted looks like the atached screenshot Gparted_now.jpeg.
Step 3-2- I went to the Terminal :

============================
$ sudo grub

grub> find /find/grub/stage1

Error 15 : File not found

grub> root (hd0,4) #as described on my /boot/grub/menu.lst

grub> setup (hd0)

Error 17 : Cannot mount selected partition

grub>

============================

Step 4- I downloaded and run the "bootinfoscript" from http://bootinfoscript.sourceforge.net/ and I joined to this e-mail the file RESULTS.txt which was generated by the script.

Step 5- I've also tried to reinstall Grub.

============================
$ sudo grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
$

============================

Step 6- I let Gparted to check the sda5 partition and here is the detailed report.

========================================

GParted 0.3.5

Libparted 1.7.1

Check and repair filesystem (ext3) on /dev/sda5  03:14    ( SUCCES )
        
calibrate /dev/sda5  00:00    ( SUCCES )
        
path: /dev/sda5
start: 400323735
end: 598292729
size: 197968995 (94.40 GiB)
check filesystem on /dev/sda5 for errors and (if possible) fix them  03:14    ( SUCCES )
        
e2fsck -f -y -v /dev/sda5
        
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

253365 inodes used (4.09%)
2003 non-contiguous inodes (0.8%)
# of inodes with ind/dind/tind blocks: 11237/121/1
12525039 blocks used (50.61%)
0 bad blocks
2 large files

197028 regular files
31672 directories
69 character device files
26 block device files
2 fifos
520 links
24551 symbolic links (22013 fast symbolic links)
8 sockets
--------
253876 files
e2fsck 1.40.8 (13-Mar-2008)
grow filesystem to fill the partition  00:00    ( SUCCES )
        
resize2fs /dev/sda5
        
resize2fs 1.40.8 (13-Mar-2008)
The filesystem is already 24746124 blocks long. Nothing to do!

========================================

The other BIG problem is that I can only access my ubuntu partition and not the windows one from the ubuntu live-CD and to my eyes it doesn't make any sens. You can get a glance to access_windows.jpg to see the error message I get when I try to open the windows partition from the graphique menu.

Now, I don't know what to do and I don't want to scew it up.

Should I reinstall the ubuntu lastest version on hda5 to solve the problem ?

So please help...

Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]