You are not logged in.
Hello everyone,
I just switched to an SSD and did a windows 10 clean install on my SSD, i was dual booting windows and arch in my old HDD in EFI mode with grub. I dont really want to mess with my ssd so i dont want to make a new partition for arch. Or should I ? Right now, the SSD does not have a boot partition but a boot folder directly in the the primary partition. My question is how can I install grub in the boot folder in the primary partition. Usually grub is installed in the boot partition. Can someone guide me to do a grub migration from my HDD to my SSD with only a primary partition ?
Thank you for your help
Offline
Is there an ESP on the SSD created by Windows?
Offline
Hi
yes there is an EFI partition called System, 100mb
Last edited by slyr (2018-08-16 21:18:34)
Offline
Oh so there is an actual boot partition, i thought windows was booting from the primary boot folder
Offline
With EFI there has to be an ESP with the bootloader installed on it. The easiest process would be to install a bootloader to the ESP although 100mb is somewhat small it should accommodate
one kernel and initrd as well as the bootloader for linux and the files already installed by Windows.
Offline
Ok thank you ill try this, but then what is the purpose of the boot folder in the primary partition, it also contains .efi files
Last edited by slyr (2018-08-16 22:11:14)
Offline
Ok thank you ill try this, but then what is the purpose of the boot folder in the primary partition, it also contains .efi files
Possibly the ESP from before the SSD was added I could only speculate.
Offline
Possibly the ESP from before the SSD was added I could only speculate.
the SSD was new and formated. Anyway, how can i make the grub recognize the Arch install in my second HDD.
Thanks for your help
Offline
loqs wrote:Possibly the ESP from before the SSD was added I could only speculate.
the SSD was new and formated.
What is this primary partition? What device is it on? What is the output of `parted -l` ?
Anyway, how can i make the grub recognize the Arch install in my second HDD.
Offline
What is this primary partition? What device is it on? What is the output of `parted -l` ?
Im not on linux rn, its my primary windows ssd
https://preview.ibb.co/eXdGhe/Untitled.png
# Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code
Last edited by jasonwryan (2018-08-17 23:17:20)
Offline
C:\Windows\Boot\EFI is not a mountpoint of the ESP, by default Windows doesn't mount the ESP anywhere.
GRUB doesn't need a separate /boot partition or for the kernel and initramfs to be on the ESP. Simply mount the ESP, e.g. to /efi, and install GRUB.
Offline
yeah i was confused. Right now im trying to reinstall grub, but i am getting a kernel panic, not syncing error at boot.
I noticed that on my grub.cfg, the set partitions are wrong
my efi is in (hd0,gpt2) but it is set to (hd1,gpt4) how come ?
... --hint-efi=hd1,gpt4 #should be hd0,gpt2Offline
Please post the full grub.cfg and the output of
blkid
parted -l
mount #from within the chroot as you had it mounted when you installed grub and generated grub.cfgOffline
blkid
/dev/sda1: LABEL="Recovery" UUID="3E5ADE345ADDE8A3" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b469a5b3-b7bb-4398-b3db-397df5256421"
/dev/sda2: UUID="62DE-40C3" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="2c914a4d-c4fc-46d8-a0ca-fc774b292361"
/dev/sda4: UUID="1A00EFDD00EFBDBF" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="dc358538-3d5c-40ae-8c50-3ad8f4e986e2"
/dev/sdb1: LABEL="OS_Install" UUID="9E367B62367B39FB" TYPE="ntfs" PARTUUID="49d14368-5506-f543-a51b-358962beb9aa"
/dev/sdb3: LABEL="Data" UUID="F878E81578E7D104" TYPE="ntfs" PARTUUID="4469e215-396d-954b-8127-f82d109627e0"
/dev/sdb4: LABEL="Arch Linux" UUID="12a50063-776f-4350-9254-98cf42303874" TYPE="ext4" PARTUUID="6300a512-6f77-5043-9254-98cf42303874"
/dev/sdb5: LABEL="Linux Swap" UUID="bae0912a-9fb5-49cc-a275-366825bebb0a" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="51e619d5-a359-4338-a5b3-8a9dc1c6a50a"
/dev/sdc1: LABEL="EASY2BOOT" UUID="DC94-553D" TYPE="vfat" PARTUUID="0199f4f0-01"
/dev/sdc2: SEC_TYPE="msdos" LABEL="PTN2" UUID="350F-0375" TYPE="vfat" PARTUUID="0199f4f0-02"
/dev/loop0: TYPE="squashfs"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="91b2d517-847d-46e8-abfb-b0a94a24f439"mount
/dev/sdb4 on / type ext4 (rw,relatime)
/dev/sda2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8134516k,nr_inodes=2033629,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
tmp on /tmp type tmpfs (rw,nosuid,nodev)
airootfs on /etc/resolv.conf type overlay (rw,relatime,lowerdir=/run/archiso/sfs/airootfs,upperdir=/run/archiso/cowspace/persistent_EASY2BOOT/x86_64/upperdir,workdir=/run/archiso/cowspace/persistent_EASY2BOOT/x86_64/workdir,index=off)parted -l
Model: ATA SanDisk SSD PLUS (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 524MB 523MB ntfs Basic data partition hidden, diag
2 524MB 629MB 105MB fat32 EFI system partition boot, esp
3 629MB 646MB 16.8MB Microsoft reserved partition msftres
4 646MB 1000GB 1000GB ntfs Basic data partition msftdata
Model: ATA HGST HTS721010A9 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 450MB 538GB 537GB ntfs msftdata
3 602GB 855GB 254GB ntfs msftdata
4 855GB 981GB 126GB ext4
5 981GB 986GB 4295MB linux-swap(v1) Linux swap
Model: Lexar USB Flash Drive (scsi)
Disk /dev/sdc: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 13.8GB 14.4GB 618MB primary fat32 boot, lba
2 32.0GB 32.0GB 32.3kB primaryI appreciate your time and help
I forgot the grub.cfg ill post it soon
Last edited by slyr (2018-08-17 21:00:00)
Offline
and this is my actual 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
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 12a50063-776f-4350-9254-98cf42303874
else
search --no-floppy --fs-uuid --set=root 12a50063-776f-4350-9254-98cf42303874
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-12a50063-776f-4350-9254-98cf42303874' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 12a50063-776f-4350-9254-98cf42303874
else
search --no-floppy --fs-uuid --set=root 12a50063-776f-4350-9254-98cf42303874
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=12a50063-776f-4350-9254-98cf42303874 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-12a50063-776f-4350-9254-98cf42303874' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-12a50063-776f-4350-9254-98cf42303874' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 12a50063-776f-4350-9254-98cf42303874
else
search --no-floppy --fs-uuid --set=root 12a50063-776f-4350-9254-98cf42303874
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=12a50063-776f-4350-9254-98cf42303874 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-12a50063-776f-4350-9254-98cf42303874' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 12a50063-776f-4350-9254-98cf42303874
else
search --no-floppy --fs-uuid --set=root 12a50063-776f-4350-9254-98cf42303874
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=12a50063-776f-4350-9254-98cf42303874 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###Offline