How to move EndeavourOS from USB drive to hard drive

Hello. I installed EOS by the offline mode and I didn’t notice that EndeavourOS got installed in the usb drive and the rest of partitions in the hard drive. Because of this my pc can’t boot without the usb drive being sticked in. So I want to know if is possible to move EOS from usb drive to hard drive so I don’t have to stick in the usb drive to boot system.

[chanclarosa@ChanclaRosaPC ~]$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    1   3,8G  0 disk 
└─sda1   8:1    1   3,8G  0 part /run/media/chanclarosa/EOS_202305
sdb      8:16   0 931,5G  0 disk 
├─sdb1   8:17   0 927,3G  0 part /
└─sdb2   8:18   0   4,2G  0 part [SWAP]
[chanclarosa@ChanclaRosaPC ~]$ fdisk -l
fdisk: no se puede abrir /dev/sda: Permiso denegado
fdisk: no se puede abrir /dev/sdb: Permiso denegado
[chanclarosa@ChanclaRosaPC ~]$ lsblk -f
NAME   FSTYPE FSVER LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                 
└─sda1 vfat   FAT32 EOS_202305  E8F6-05A9                                 2G    48% /run/media/chanclarosa/EOS_202305
sdb                                                                                 
├─sdb1 ext4   1.0   endeavouros 1589acc0-5d55-4f01-8235-ca1b1594f1fb  859,5G     1% /
└─sdb2 swap   1     swap        78abf3be-c3f0-4899-ae8b-f9b5b1f02360                [SWAP]

1 Like

Maybe clonezilla but I’m just making a guess here

Boot up your system and post the output of the following commands:

test -d /sys/firmware/efi && echo UEFI || echo BIOS

sudo parted -l

sudo blkid 

cat /etc/fstab
1 Like

Or since you just installed (I assume), just reinstall correctly.

I got this

[chanclarosa@ChanclaRosaPC ~]$ test -d /sys/firmware/efi && echo UEFI || echo BIOS
BIOS
[chanclarosa@ChanclaRosaPC ~]$ sudo parted -l
[sudo] contraseña para chanclarosa: 
Modelo: hp v245o (scsi)
Disco /dev/sda: 4052MB
Tamaño de sector (lógico/físico): 512B/512B
Tabla de particiones: msdos
Banderas de disco: 

Número  Inicio  Fin     Tamaño  Tipo     Sistema de ficheros  Banderas
 1      1049kB  4052MB  4051MB  primary  fat32                arranque, lba


Modelo: ATA TOSHIBA HDWD110 (scsi)
Disco /dev/sdb: 1000GB
Tamaño de sector (lógico/físico): 512B/4096B
Tabla de particiones: msdos
Banderas de disco: 

Número  Inicio  Fin     Tamaño  Tipo     Sistema de ficheros  Banderas
 1      1049kB  996GB   996GB   primary  ext4                 arranque
 2      996GB   1000GB  4489MB  primary  linux-swap(v1)       swap


[chanclarosa@ChanclaRosaPC ~]$ sudo blkid
/dev/sdb2: LABEL="swap" UUID="78abf3be-c3f0-4899-ae8b-f9b5b1f02360" TYPE="swap" PARTUUID="ac9437cd-02"
/dev/sdb1: LABEL="endeavouros" UUID="1589acc0-5d55-4f01-8235-ca1b1594f1fb" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="ac9437cd-01"
/dev/sda1: LABEL="EOS_202305" UUID="E8F6-05A9" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="0586d15f-01"
[chanclarosa@ChanclaRosaPC ~]$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=1589acc0-5d55-4f01-8235-ca1b1594f1fb /              ext4    defaults,noatime 0 1
UUID=78abf3be-c3f0-4899-ae8b-f9b5b1f02360 swap           swap    defaults   0 0

1 Like

How can I do that? I ask because when I stick in the usb drive EOS boot and I can’t get into live session to reinstall.

Well, if you have another USB then make a live drive using that. Otherwise, you can use Clonezilla but still you need another USB to make the boot environment.

You have an installation in Bios mode.

It seems that you have installed the Grub bootloader into the MBR of your USB drive rather than into the MBR of your system drive.

That would explain why you cannot boot your system without the USB drive being connected.

You can try to install the Grub bootloader into the MBR of your system drive.

Assuming /dev/sdb is your system drive, do the following:

sudo grub-install --target=i386-pc /dev/sdb

You could also regenerate grub.cfg:

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

Now reboot your system without the USB drive connected.

3 Likes

Should I do both or doing first one is fine?

Do both.

PS. Sorry for the vague formulation

Don’t worry and thank you so much for your help, the solution you gave did the work and thanks to others for your answers.

1 Like

You are welcome! Glad you could resolve the issue.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.