You are not logged in.

#26 2012-02-11 16:05:28

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Grub 2 with ssd [solved]

ok, so with super grub2 disk http://www.supergrubdisk.org/category/d … kdownload/ I can select detect any grub2 configuration file and that finds grub.cfg on my ssd and it boots up arch.....I hope this is information that someone can use to help me...


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#27 2012-02-11 23:36:01

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Grub 2 with ssd [solved]

mich04 wrote:

Couldn't find
/tmp/install/usr/lib/grub/i386-pc/kernel

...

Is this correct so far?

I've never used archboot, but does that look correct to you?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#28 2012-02-11 23:40:20

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Grub 2 with ssd [solved]

Output of gdisk -l? ls /boot? ls /boot/grub? Does /boot/efi exist? (It shouldn't.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#29 2012-02-12 02:38:57

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Grub 2 with ssd [solved]

Well I have my system setup to a fully functional system, although I still can not boot under boot here is what I have


/boot/grub
/boot/lost+found
/boot/initramfs-linux.img
/boot/initramfs-linux-fallback.img
/boot/vmlinuz-linux


here is grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"

insmod part_gpt
insmod part_msdos

# Include fat fs module - required for uefi systems.
insmod fat

insmod ext2
insmod ext2

insmod search_fs_file
insmod search_fs_uuid
insmod search_label

insmod linux
insmod chain

set pager=1
set locale_dir=${prefix}/locale


# DEVICE DETAILS: /dev/sda2 UUID=1312c7d0-2fe2-4a7e-a8e5-674b875c4359 LABEL=/boot
# DEVICE DETAILS: /dev/sda3 UUID=57c2ccd3-72ee-4ff7-96a7-37d0d02613c4 LABEL=/
# DEVICE DETAILS: /dev/sda4 UUID=562a650b-effa-4672-affb-f6161e31c189 LABEL=/home
# DEVICE DETAILS: /dev/sdb1 UUID=140cc02e-478b-4305-a58f-d7f351d43169 LABEL=swap
# DEVICE DETAILS: /dev/sdb2 UUID=eb13ea29-64f9-48a4-805a-725f63dd7f69 LABEL=/var
# DEVICE DETAILS: /dev/sdb3 UUID=1b34c307-9e6a-44fd-a3d2-2d6f3cef011c LABEL=/tmp
# DEVICE DETAILS: /dev/sdb4 UUID=8515ac8d-2239-4cf0-a6c2-3655a31a83db LABEL=multimedia


# (0) Arch Linux
menuentry "Arch Linux" {
    search --fs-uuid --no-floppy --set=root 1312c7d0-2fe2-4a7e-a8e5-674b875c4359
    linux /vmlinuz-linux root=/dev/disk/by-uuid/57c2ccd3-72ee-4ff7-96a7-37d0d02613c4 rootflags=,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4 ro add_efi_memmap
    initrd /initramfs-linux.img
}


# (1) Arch Linux Fallback
menuentry "Arch Linux Fallback" {
    search --fs-uuid --no-floppy --set=root 1312c7d0-2fe2-4a7e-a8e5-674b875c4359
    linux /vmlinuz-linux root=/dev/disk/by-uuid/57c2ccd3-72ee-4ff7-96a7-37d0d02613c4 rootflags=,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4 ro add_efi_memmap
    initrd /initramfs-linux-fallback.img
}


## (2) Windows BIOS
## Will work only in grub2 bios
#menuentry \"Microsoft Windows 7 BIOS-MBR\" {
#    insmod part_msdos
#    insmod ntfs
#    insmod search_fs_uuid
#    insmod ntldr
#    search --fs-uuid --no-floppy --set=root 69B235F6749E84CE
#    ntldr ()/bootmgr
#}


## (3) Windows x86_64 UEFI
## Will work only in grub2 uefi x86_64
#menuentry \"Microsoft Windows x86_64 UEFI-GPT\" {
#    insmod part_gpt
#    insmod fat
#    insmod search_fs_uuid
#    insmod chain
#    search --fs-uuid --no-floppy --set=root 1CE5-7F28
#    chainloader ()/efi/Microsoft/Boot/bootmgfw.efi
#}

And here is my partition Table


/dev/sda  ssd
Number   Start (sector)       End (sector)      Size            Code    Name
   1             512                        2559            1024.0 KiB    EF02     Bios
   2            2560                     207359           100.0 MiB    8300     boot
   3          207360                  42150399        20.0 GiB      8300     root
   4        42150400                62533262        9.7 GiB        8300     home

/dev/sdb
Number  Start (sector)    End (sector)    Size            Code     Name
   1             512                 8389119       4.0 GiB       8200      swap
   2         8389120            29360639     10.0 GiB      8300      var
   3        29360640          37749247       4.0 GiB       8300      tmp
   4        37749248          390721934     168.3 GiB   8300    multimedia


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#30 2012-02-12 19:39:31

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Grub 2 with ssd [solved]

I'm not sure... Your grub.cfg doesn't look right to me but I'm booting in EFI mode and you're using BIOS. (I never managed to boot a gpt disk in bios mode - probably a firmware bug on this machine.)

How did you generate grub.cfg? You didn't give contents of /boot/grub/ - is that where your grub.cfg is?

When you say that you cannot boot under boot, do you mean that you can boot and chroot into the system using a usb boot disk such as supergrub but that you cannot boot from the internal drive? Or do you mean you can boot but you get, say, a grub prompt and have to point it to grub.cfg or whatever manually?

I'd guess you need to correct the error noted above for things to work.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#31 2012-02-12 19:53:46

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: Grub 2 with ssd [solved]

@cfr: Thats a combo of grub-mkconfig and Archboot setup script generated grub.cfg .

Offline

#32 2012-02-12 20:36:42

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Grub 2 with ssd [solved]

Arch boot comes with the option of installing grub-2 bios or uefi as the boot loader, so I had archboot install it. /boot/grub is fully populated it looks like there are a lot of files. that is also where my grub.cfg file is located.

When I boot my system it does not bring me to any screen where I can tweak the options just a black screen with the words grub and a blinking dash.

When I use the supergrub2 bootdisk it gives me the option of searching for any grub.cfg files it finds one at I believe hda1,gtp  I select the one that iot finds and than my system is able to boot normally. So I do not chroot into the machine it finds the grub.cfg file than boots normally bringing me to the screen where I select my os (arch or arch fall back).


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#33 2012-02-14 01:22:39

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Grub 2 with ssd [solved]

the.ridikulus.rat wrote:

@cfr: Thats a combo of grub-mkconfig and Archboot setup script generated grub.cfg .

Ah, OK. Thanks. So it doesn't then need the /boot/vmlinux-linux but only /vmlinux-linux?

And is the OP's error about not finding anything under /tmp/install/ expected in this case? I tend to think if I see an error of that sort I should stop and figure it out because anything later will assume that step succeeded, but perhaps that's just because I don't know when something is safe to ignore!


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#34 2012-02-15 13:34:55

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Grub 2 with ssd [solved]

/tmp/install/


That is the directory that Archboot makes during installation

/mnt/arch

That is the directory that Arch net install makes. at least that is what I concluded. That grub file, and configuration was made by Archboot. Archboot is the current installation method I am working with. So I believe that /tmp/install would apply. At the moment though I have a great fully functional desktop running compiz, lxpanel, pcmanfm, and all of that jazz. so if there is a method of re installing grub or fixing it from the desktop it is an option now.

Last edited by mich04 (2012-02-15 13:38:06)


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#35 2012-02-17 00:35:40

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Grub 2 with ssd [solved]

mich04 wrote:

/tmp/install/


That is the directory that Archboot makes during installation

OK. But

Couldn't find
/tmp/install/usr/lib/grub/i386-pc/kernel

looks like it couldn't find something there. I'd guess you need to fix that error.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#36 2012-02-20 18:39:46

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Grub 2 with ssd [solved]

ok, so I took apart my computer because I needed to replace the power supply. I cleaned it with air and put it back together and now the computer starts up fine without grub errors. I did go from a 80 watt psu to a 120 pico....I don't understand...but it works now.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

Board footer

Powered by FluxBB