this post was submitted on 06 Sep 2023
18 points (100.0% liked)

Linux

48375 readers
1759 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi everyone,

I have a Surface Go 1 with 128 gb hooked up to a usb-c screen.

I’ve installed Fedora 38 on it and I’m really happy with the whole setup. So much so that I wanted to be able to reproduce it on all my computers.

The problem is I can’t get the machine to boot from a Usb-a with usb-c adaptor or from a usb-c stick.

I’ve tried everything. I can access the uefi settings and disable secure boot and change the boot order. At first I thought it was because I was using an usb-c adapter but buying a usc-c stick didn’t change a thing.

In the past the only way I was able to boot from usb was to break my system, install windows again and go to windows recovery. I don’t want to do that again as I would want to clone my system.

For now, I’ve resorted to cloning my girlfriend’s 2012 MacBook Pro with Fedora on it, but since it’s not my daily driver, it’s not where I’m creating my perfect setup.

If anyone can help me, I’d be really grateful.

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (2 children)

My Surface GO also refuses to boot Linux usb sticks directly (interestingly windows usb sticks are no problem).

What worked for me is creating a ventoy usb stick and then putting the iso on there.

If this does not work you can try to set the boot order from fedora with efibootmgr. More infos

[–] Dariusmiles2123 1 points 1 year ago

Thanks I guess I’ll try that👍

[–] Dariusmiles2123 1 points 1 year ago

Well apparently the Ventoy trick is working. At least it booted on it as Clonezilla is taking 4 hours to clone my disk. So for now I don’t have a definitive result.

I’ve tried with a usb-c ventoyed stick and I’ll also try with a usb-a with adapter ventoyed stick.

[–] [email protected] 3 points 1 year ago

There are a bunch of options most are kind of complicated. As mentioned here before ventoy will get clonezilla running from a network boot. Without clonezilla, a few things I can think of are:

#1 just clone the system while it's running. Get a large external drive and sudo dd if=/dev/your_internal_disk of=/path/to/disk/image.img

If you want you can boot into single user mode to do this, it's will be less risky and you may be able to mount root read only. Note that this carries no risk for the source machine if dd is used correctly, only that the filesystem of a target machine may have to be repaired after the clone.

If you'd rather just clone partitions that would work this way as well.

The target machine would need a live bootable is to copy the disk image onto the target disk. Dd is a inefficient option but it's on almost every system. Use partclone instead of you can, same as clonezilla uses.

#2 expose your disks with network block devices. You'll need kernel support I think, but then it's basically the same as #1 but you can do the clone from a remote machine

#3 build empty filesystems on the other machines just copy all of the files. You can use nfs or samba but it would probably be better to tar everything to preserve file ownership and permissions using these protocols. Rsync would probably be best. after copying the files a bootloader would need to be installed and configured.

[–] Dariusmiles2123 2 points 1 year ago

Well so just to give an update, while using Ventoy, everything works. It doesn't matter if you're using a Usb-A stick with an adapter or a Usb-C.

It's crazy to think that I've looked at so many tutorials and that the solution was so simple.

The surface Go is a lovely little Linux machine, but some stupid things are difficult on it.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)
[–] [email protected] 1 points 1 year ago (1 children)

You may not have to do a disk clone to replicate your setup. Have you used Git before?

Configuration for most packages is stored under your home folder in a directory called “.config” (the . at the front makes the folder hidden). Taking this folder and putting it on your other systems should replicate most of your setup. (Some other packages, like bash or zsh, will place configuration information directly under your home folder. Make sure you transfer those files and folders too)

[–] Dariusmiles2123 2 points 1 year ago

That sounds a bit too complicated for me but I might do that if the ventoy trick doesn’t work. Thanks

[–] [email protected] 1 points 1 year ago (1 children)

If you haven't already tried a USB 2.0 flash drive, give that a go. I find they are less finicky to boot from than some 3.0 drives.

[–] Dariusmiles2123 1 points 1 year ago

I’ve tried but only through an adapter as the surface go is usb-c only. It didn’t work..