You are not logged in.

#51 2014-12-30 15:02:41

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: error: no such device: GRUB problem

Issa wrote:

when you install windows after installing linux it will overwrite the MBR of your HDD. This means that you would have to "repair" the MBR which is something that you should avoid.

He no longer has an MBR...
https://wiki.archlinux.org/index.php/GPT


Jin, Jîyan, Azadî

Offline

#52 2014-12-30 17:30:50

Issa
Member
From: Berlin
Registered: 2014-12-14
Posts: 19

Re: error: no such device: GRUB problem

Head_on_a_Stick

you're right. With Step 1. "Partition and format your hdd accordingly" I meant to convert your HDD partitioning scheme back from GPT to MBR.

MasterM1nd: after doing this, you should not use other start mediums than linux (e.g. ubuntu, mint and of course arch). Other tools might just change stuff in the background without informing you or change stuff as part of their normal routine thus forcing you to accept them to change stuff in order to work properly. In any those cases all work would be lost and you would need to start over again which you sureley don't want.

Offline

#53 2014-12-30 18:34:26

MasterM1nd
Member
Registered: 2014-12-23
Posts: 26

Re: error: no such device: GRUB problem

Well,

I booted into Arch Linux (through Live USB) and then deleted the linux partitions. After that, I converted my disk from GPT to MBR through

gdisk

and now I can boot into Windows XP through PLoP boot manager but I'll try to fix MBR of windows.
Without the PLoP boot manager it just shows the GRUB and a blinking error.. In the mean time, I'll be studying some more about Arch... Because I am not sure how my disk was converted into GPT. I didn't use any command outside Wiki (Beginners guide)...




Thank You Everyone wink

Offline

#54 2014-12-30 21:07:05

MasterM1nd
Member
Registered: 2014-12-23
Posts: 26

Re: error: no such device: GRUB problem

Don't know why but I tried once again. I was also able to find that how my HD was converted into gpt.
It converted because I used cgdisk (Beginners guide recommends to use that). But this time I used

cfdisk

and everything goes smooth...

On rebooting I got the following error:

GRUB loading.
Welcome to GRUB!

error: file '/boot/grub/i386-pc/normal.mod" not found.
Entering rescue mode...
grub rescue>

Well I searched for it and I saw many users especially those who use Ubuntu have faced it.
I found a topic similar to this case on Arch forum too. Here's the link:  https://bbs.archlinux.org/viewtopic.php?id=146540


Should I follow that solution?

Note: I can enter smoothly in windows with PLoP boot manager this time smile

My partitions are:

/dev/sda1 = Windows
/dev/sda2 = Linux
/dev/sda3 = Swap

Output of ls on

grub rescue>

is

(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (fd0)

I hope this problem is not very big...


I've not used any thing like grub-bios etc.
I use the following to download and install grub

pacman -S grub
grub-install --target=i386-pc --recheck /dev/sda

Last edited by MasterM1nd (2014-12-30 21:21:28)

Offline

#55 2014-12-30 21:46:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,352

Re: error: no such device: GRUB problem

sidenote : cgdisk is cfdisk counterpart for gpt disks, but it shouldn't convert the drive without asking first.

use cfdisk to verify which partitions have  a boot flag set, ONLY /dev/sda2 should have it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#56 2014-12-31 14:01:08

MasterM1nd
Member
Registered: 2014-12-23
Posts: 26

Re: error: no such device: GRUB problem

Checked it, but there was no boot flag in front of any partition.
Well I setted boot flag in front of /dev/sda2   (LINUX) but still the same error.

Offline

#57 2014-12-31 14:28:04

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: error: no such device: GRUB problem

MasterM1nd wrote:

I use the following to download and install grub

pacman -S grub
grub-install --target=i386-pc --recheck /dev/sda

Did you run:

# grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.archlinux.org/index.php/Be … therboards

cgdisk converted the partition table because you told it to do that and then completely ignored the warning it gives before blindly pressing "y"...

I say again: Arch is not suited to you -- use a different distribution.


Jin, Jîyan, Azadî

Offline

#58 2014-12-31 14:53:44

MasterM1nd
Member
Registered: 2014-12-23
Posts: 26

Re: error: no such device: GRUB problem

Yes I run that command too after downloading and running OS-PROBER (as mentioned in Beginners Wiki)

The below are the last 7 commands which I run smile

# pacman -S grub
# grub-install --target=i386-pc --recheck /dev/sda
# pacman -S os-prober
# os-prober
# grub-mkconfig -o /boot/grub/grub.cfg
# exit
# reboot

I agree that It gives the warning but the first time when I used cgdisk I was not aware of GPT and MBR/DOS... But this time I've used cfdisk wink

Offline

Board footer

Powered by FluxBB