You are not logged in.

#1 2009-02-18 21:25:38

faidoc
Package Maintainer (PM)
From: Spain
Registered: 2009-02-18
Posts: 32
Website

[Solved] Problems with Grub

Hi.
This is my story:

I had a 750GB HD with this partitions:

     -10GB NTFS Windows XP
     -40GB NTFS
     -40GB ext4 ArchLinux
     -656GB ext3 Ubuntu
     -4GB Swap

I first install ArchLinux in a little partition just to try, I wanted to forget Ubuntu. The installation was a success and I was working on ArchLinux. Finally I decided to move on ArchLinux and delete Ubuntu. So... I start de Gparted Live CD and deleted de Ubuntu partition and made bigger de ArchLinux one.

The new partitions:

     -10GB NTFS Windows XP
     -40GB NTFS
     -696GB ext4 ArchLinux
     -4GB Swap

The problem is now when I turn on the pc. The ArchLinux Grub appears, but I can only get into windows, when I try in ArchLinux says:

     Error 22: No such partition

I tried to mount the system with the installation CD and making grub-install /dev/sda but still the same...

Any ideas?

Last edited by faidoc (2009-02-19 11:16:17)

Offline

#2 2009-02-18 21:47:23

decaturguy
Member
From: Sweden
Registered: 2006-11-28
Posts: 117

Re: [Solved] Problems with Grub

you need to post your /boot/grub/menu.lst and post the result of fdisk -l

Offline

#3 2009-02-19 08:23:23

faidoc
Package Maintainer (PM)
From: Spain
Registered: 2009-02-18
Posts: 32
Website

Re: [Solved] Problems with Grub

Grub:

Device name conversions

Linux                    Grub
-----------------------------
/dev/fd0                (fd0)
/dev/sda0              (hd0)
/dev/sdb2              (hd1,1)
/dev/sda3              (hd0,2)

General configuration:

timeout     5
default      0

#(0) Arch Linux
title Arch Linux
root (hd0,7)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/520e5b18bfaf-486c-ba24-5cb310c6b938 ro
initrd /boot/kernel26.img

#(1) Arch Linux
title Arch Linux Fallback
root (hd0,7)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/520e5b18bfaf-486c-ba24-5cb310c6b938 ro
initrd /boot/kernel26-fallback.img

#(2) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1

fdisk -l:

Device      Boot              Start                End                      Blocks                       ID                     System
-------------------------------------------------------------------------------------------------------------------------------------
/dev/sda1       *                   1              1275                   10241406                    7                    HPFS/NTFS
/dev/sda2                           1276         91201                 722330595                    5                    Extended
/dev/sda5                           90690       91201                 4112608+                     82                  Linux Swap / Solaris
/dev/sda6                           1276         6375                   40965687                   7                    HPFS/NTFS
/dev/sda7                           6376         90689                 677252173+                  83                   Linux

Last edited by faidoc (2009-02-19 08:23:59)

Offline

#4 2009-02-19 08:33:30

decaturguy
Member
From: Sweden
Registered: 2006-11-28
Posts: 117

Re: [Solved] Problems with Grub

replace root (hd0,7) to root (hd0,6) make sure that uuid is correct run blkid and correct it if its wrong,
or you can use the old style: root=/dev/sda7

Last edited by decaturguy (2009-02-19 08:43:47)

Offline

#5 2009-02-19 11:15:59

faidoc
Package Maintainer (PM)
From: Spain
Registered: 2009-02-18
Posts: 32
Website

Re: [Solved] Problems with Grub

Thanks man... Problem solved

Could you explain me what happened?

Offline

#6 2009-02-19 15:43:16

decaturguy
Member
From: Sweden
Registered: 2006-11-28
Posts: 117

Re: [Solved] Problems with Grub

faidoc wrote:

Thanks man... Problem solved

Could you explain me what happened?

I'm glad it worked out for you.
Your Arch partition used to be /dev/sda8 and now it's /dev/sda7 thats what happens when u remove a partions above and combine.
as for grub root (hd0,7) = /dev/sda8 and the first partition /dev/sda1 = root (hd0,0) yeah it starts with 0 and now
your Arch partion is on /dev/sda7 which means your root is (hd0,6) do get my point?

As for uuid it changes when you reformat your partition, it's way better to use uuid because you don't have to worry if your drive is /dev/sdaX or /dev/sdaY.

Offline

#7 2009-02-20 12:33:58

faidoc
Package Maintainer (PM)
From: Spain
Registered: 2009-02-18
Posts: 32
Website

Re: [Solved] Problems with Grub

yeah I get it

Thanks a lot

Offline

Board footer

Powered by FluxBB