You are not logged in.

#1 2018-11-19 21:54:50

gdesale2
Member
Registered: 2018-11-19
Posts: 8

usb installation issues

Hi everyone, I had posted this issue before and it was closed since I used a third party installation process but I have gone through the same process in the wiki now with the same problems. My problem is with my arch installation which I am doing on an x220. I used an 8 gig usb to boot arch off and when I plugged it into the laptop went through the installation on the website no problem and in the fdisk operations it displayed that the arch installation is on sdb and my laptop hard drive is sda. I completed my installation and installing using pacstrap on sea with no issues but when I rebooted and tried to boot an existing OS it dosent seem to work and I am suspecting that the usb never transfers anything to sea since arch is still on sdb is there anything I should add to my installation process to get this to work and have arch installed on sda and so the boot existing OS works.
Thanks for your time and sorry for the repost

Offline

#2 2018-11-19 21:57:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: usb installation issues

Paste the exact steps you went through.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-11-19 22:03:36

gdesale2
Member
Registered: 2018-11-19
Posts: 8

Re: usb installation issues

1. timedatectl set-ntp true
2. fdisk /dev/sda
(partioned sda into 3 one boot one swap and one home)
3. mkfs.ext4 /dev/sda1
4. mkswap /dev/sda3
5. swapon /dev/sda3
6. mount /dev/sda1 /mnt
7. mkdir /mnt/boot
8. mount /dev/sda2 /mnt/boot
9. pacstrap /mnt base
10. pacman -S grub
11. genfstab -U /mnt >> /mnt/etc/fstab
12. arch-chroot /mnt
(all locale gen stuff)
13. grub-install --target=i386-pc /dev/sda
14. exit
15. umount -R /mnt and /mnt/boot
16. reboot

Offline

#4 2018-11-19 22:45:53

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: usb installation issues

Is CSM (Compatibility Support Module) enabled in your laptop's firmware?  If it is, you're booting in BIOS mode, then your grub line is correct.  If not you're booting in UEFI mode and you have to consult the wiki for those instructions.

Offline

#5 2018-11-19 23:00:55

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: usb installation issues

gdesale2 wrote:

2. fdisk /dev/sda
(partioned sda into 3 one boot one swap and one home)
3. mkfs.ext4 /dev/sda1
4. mkswap /dev/sda3
5. swapon /dev/sda3
6. mount /dev/sda1 /mnt
7. mkdir /mnt/boot
8. mount /dev/sda2 /mnt/boot

Also, please fix your command inputs.  For what you said was three: boot was mounted without a formatted filesystem on sda2, swap was correctly initialized on sda3, and despite you saying you made a /home partition it is instead under / which is sda1.

Accurate information is for your own benefit, the more is it the better the answers you will get.

Offline

#6 2018-11-19 23:07:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: usb installation issues

Also, according to those steps, you never actually installed grub in the target system, so the grub commands you vaguely referred to in the chroot would have failed and you would not have a boot loader.  This would explain your symptoms.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#7 2018-11-19 23:18:45

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: usb installation issues

Adding to Trilby,

Please see: https://wiki.archlinux.org/index.php/GRUB

Note the differing instructions for whether you are booting in BIOS or UEFI mode.  That mode, if your firmware has it, is called "CSM".  If CSM is enabled, you follow the BIOS instructions.  If CSM is disabled, you follow the UEFI instructions.  If CSM is not an option in your firmware then consult the manufacturer's documentation for which mode the machine uses.

Offline

#8 2018-11-19 23:58:50

gdesale2
Member
Registered: 2018-11-19
Posts: 8

Re: usb installation issues

I am booting into bios I checked for the file in efi and its not there. Sorry I don't post on here much so I apologize for the crap instructions was going off memory of my thought process of the installation how would I install grub on the target system? Is my order for making and mounting the partitions wrong? And is this issue separate than when I should install grub? Since I put a grub install command but should I be changing that command?

Offline

#9 2018-11-20 00:01:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: usb installation issues

gdesale2 wrote:

how would I install grub on the target system?

https://wiki.archlinux.org/index.php/GRUB#Installation

Is my order for making and mounting the partitions wrong?

https://wiki.archlinux.org/index.php/In … _the_disks

etc...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2018-11-20 00:31:39

gdesale2
Member
Registered: 2018-11-19
Posts: 8

Re: usb installation issues

Okay so I went through the process again and went through the proper order of mounting and installing grub to sda and then also made the config file on sda just like the grub made said but still the same issue of when I reboot and try to boot off existing OS it does not activate grub and when I take the USB out and click the boot existing OS it says that it failed to load COM32 file boot/syslinux/chain.c32 and when I put the ISB back in I get back to the arch linux menu I am not sure what the next steps would be from here

Offline

#11 2018-11-20 00:37:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: usb installation issues

gdesale2 wrote:

click the boot existing OS it says that it failed to load COM32 file boot/syslinux/chain.c32

Syslinux is the boot manager on the ISO, you are trying to use Grub.

Did you change the order of bootable drives in the BIOS menu?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2018-11-20 00:40:03

gdesale2
Member
Registered: 2018-11-19
Posts: 8

Re: usb installation issues

Sorry not entirely sure what you mean by change order. In fdisk it says that sdb is the disk that is the usb because it is only 8 gigs and sda is my hard drive since it is much larger so I put grub on my hard drive and partioned by hard drive into four since that is where I want to put arch and so Im not sure what I should be doing different to achieve that

Offline

#13 2018-11-20 00:45:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: usb installation issues

From the chroot, paste the output of `blkid` and your Grub config.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2018-11-20 00:50:16

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: usb installation issues

Please post the output of

# fdisk -l

That's a lower-case L as the root user.

Perhaps you should start with a basic partition.  You could always much around with them later or leave them.  If your system is BIOS then you don't need a separate /boot.  So scratch that.  Same for /home.  You might not even want to have a SWAP either - you can set up a swap file (SSD..) if you like instead.

So, with one physical drive, an optional swap partition of the same size as your installed RAM - for example type 8GB when fdisk is asking for size.  Then after that option, rest of the drive as root ( / ).

What if you want to future-proof your system by making the best choices now?  Don't worry about it.  Really.  Build up Arch a few times to the way you think you want it and each time you will be building experience.  Which you then take to the next time you build Arch up.  It's a learning experience after all, once you figure out the best ways for you along the way you'll have picked up so many little skills you didn't know you needed.

Offline

#15 2018-11-20 01:40:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: usb installation issues

gdesale2 wrote:

when I reboot and try to boot off existing OS it does not activate grub and when I take the USB out and click the boot existing OS...

Don't boot the iso.  Remove the usb stick and turn the computer on.  What happens?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#16 2018-11-20 17:53:06

gdesale2
Member
Registered: 2018-11-19
Posts: 8

Re: usb installation issues

Trilby wrote:
gdesale2 wrote:

when I reboot and try to boot off existing OS it does not activate grub and when I take the USB out and click the boot existing OS...

Don't boot the iso.  Remove the usb stick and turn the computer on.  What happens?

When I remove the usb and reboot it docent boot anymore and only shows the menu when the usb is in

Offline

#17 2018-11-20 18:07:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: usb installation issues

Go back to the Installation Guide, work through it methodically and do NOT just retype the same stuff from the youtube tutorial.

Installing Arch is very straightforward, but you do need to take your time and understand each step.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB