You are not logged in.

#1 2015-11-11 14:01:31

royalharsh95
Member
Registered: 2015-11-11
Posts: 19

Grub problem in dual boot with windows

I have installed arch + dwm . I installed grub and updated it using

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

.
It showed :

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
done

But still it boots me into grub command prompt, where I get a black screen with

grub>

.
My grub.cfg : http://pastebin.com/rgbmNndM

Offline

#2 2015-11-11 14:33:30

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

Re: Grub problem in dual boot with windows

Which command did you use to install the GRUB loader to your disk?

What is the output of:

# parted -l

How have you mounted your partitions?


Jin, Jîyan, Azadî

Offline

#3 2015-11-11 14:36:21

royalharsh95
Member
Registered: 2015-11-11
Posts: 19

Re: Grub problem in dual boot with windows

I used :

 grub-install /dev/sda 

Output of parted :

Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  683MB   682MB   ntfs            Basic data partition          hidden, diag
 2      683MB   955MB   273MB   fat32           EFI system partition          boot, esp
 3      955MB   1089MB  134MB                   Microsoft reserved partition  msftres
 4      1089MB  139GB   138GB   ntfs            Basic data partition          msftdata
 5      139GB   474GB   334GB   ntfs            Basic data partition          msftdata
 8      474GB   550GB   76.7GB  ext4
 9      550GB   559GB   8517MB  linux-swap(v1)
 6      559GB   978GB   419GB   ntfs            Basic data partition          msftdata
 7      978GB   1000GB  22.0GB  ntfs            Basic data partition          hidden, msftdata

Offline

#4 2015-11-11 15:22:45

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

Re: Grub problem in dual boot with windows

royalharsh95 wrote:

I used :

 grub-install /dev/sda

If you have a UEFI system then that is the wrong command.
https://wiki.archlinux.org/index.php/GR … allation_2

I wrote:

How have you mounted your partitions?

Describe in (much) greater detail the exact steps taken during installation.


Jin, Jîyan, Azadî

Offline

#5 2015-11-12 02:37:19

royalharsh95
Member
Registered: 2015-11-11
Posts: 19

Re: Grub problem in dual boot with windows

I mounted sda8 partition to /mnt and created /mnt/boot and mounted sda2 which contains efi system to it. I have also made a swap on sda9.
I installed grub using this :

grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=grub --recheck

Grub installs without any errors.
When I do:
 

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

Now, I am getting this error.
Image: http://s17.postimg.org/mjay5wq5r/IMG_20 … 073403.jpg

Offline

#6 2015-11-12 08:19:08

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

Re: Grub problem in dual boot with windows

royalharsh95 wrote:

Now, I am getting this error.
Image: http://s17.postimg.org/mjay5wq5r/IMG_20 … 073403.jpg

That error looks informational -- the exit status appears to be zero.

Is the configuration file generated?

Does the `grub-mkconfig` command spit the file to the terminal if you run it without the "-o" flag?

You could try writing your own grub.cfg
http://www.gnu.org/software/grub/manual … -scripting


Jin, Jîyan, Azadî

Offline

#7 2015-11-12 11:21:16

royalharsh95
Member
Registered: 2015-11-11
Posts: 19

Re: Grub problem in dual boot with windows

Yes, the grub file is generated . I tried writing my own grub.cfg . I can see the grub menu when I click F9 and then there is a grub option from many boot options, on clicking it I can boot into right OS. But it doesn't start on boot .I have to press F9 and select grub.

Offline

#8 2015-11-12 21:45:05

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

Re: Grub problem in dual boot with windows

royalharsh95 wrote:

I can see the grub menu when I click F9 and then there is a grub option from many boot options, on clicking it I can boot into right OS. But it doesn't start on boot .I have to press F9 and select grub.

I don't really understand this, sorry.

It sounds like you are describing the firmware (BIOS) boot menu -- see if you can find an option to set the default boot device.


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB