I want to create a bootable USB stick that runs fedora.
I do not want to create a Live-CD USB stick because live-CD fails to boot on my main PC. And no one seems to know how to fix this. By using a read-write USB stick I can add in debug code to the boot process and try to findout what is hanging the boot process.
What my google-fu is failed to do is figure out how to find instruction on how to do this with getting live-CD instructions.
I'm guessing that I should be able to use anaconda or dnf to get the heavy lifting done.
Does anyone know what the steps I need to follow are?
Barry
On Mon, Jul 20, 2020 at 05:48:43PM +0100, Barry Scott wrote:
I want to create a bootable USB stick that runs fedora.
I do not want to create a Live-CD USB stick because live-CD fails to boot on my main PC. And no one seems to know how to fix this. By using a read-write USB stick I can add in debug code to the boot process and try to findout what is hanging the boot process.
What my google-fu is failed to do is figure out how to find instruction on how to do this with getting live-CD instructions.
I'm guessing that I should be able to use anaconda or dnf to get the heavy lifting done.
Does anyone know what the steps I need to follow are?
A LiveCD is basically a Fedora install with some stuff automatically starting once its booted, and potentially a different bootloader. It's not clear from what you've mentioned whether a standard Fedora install on a USB disk would help.
Just booting from the LiveCD with additional kernel parameters would probably be sufficient to test your system. Can you not interact with the bootloader of the LiveCD? You could potentially edit the livecd image and change the default kernel parameters.
On Mon, Jul 20, 2020 at 05:48:43PM +0100, Barry Scott wrote:
I want to create a bootable USB stick that runs fedora.
I do not want to create a Live-CD USB stick because live-CD fails to boot on my main PC. And no one seems to know how to fix this. By using a read-write USB stick I can add in debug code to the boot process and try to findout what is hanging the boot process.
What my google-fu is failed to do is figure out how to find instruction on how to do this with getting live-CD instructions.
I'm guessing that I should be able to use anaconda or dnf to get the heavy lifting done.
Does anyone know what the steps I need to follow are?
Barry
FWIW, some years back I did (more than once) install Fedora onto a USB stick using an normal install procedure. all I had to do was be sure to specify the right device for the USB stick so I didn't wipe out the installed system on the computer.
This was probably back around Fedoraaa 11-13 or thereabouts, and I h aven't kept up with Fedora for the last few years, but there is no reason THAT I KNOW OF why it wouldn't still work.
Good luck!
Fred
On Mon, Jul 20, 2020 at 05:48:43PM +0100, Barry Scott wrote:
FWIW, some years back I did (more than once) install Fedora onto a USB stick using an normal install procedure. all I had to do was be sure to specify the right device for the USB stick so I didn't wipe out the installed system on the computer.
This was probably back around Fedoraaa 11-13 or thereabouts, and I h aven't kept up with Fedora for the last few years, but there is no reason THAT I KNOW OF why it wouldn't still work.
Good luck!
Fred
It's been a few months since I did this, but the technique still works just fine.
On 20 Jul 2020, at 22:25, Steven Usdansky usdanskys@gmail.com wrote:
On Mon, Jul 20, 2020 at 05:48:43PM +0100, Barry Scott wrote:
FWIW, some years back I did (more than once) install Fedora onto a USB stick using an normal install procedure. all I had to do was be sure to specify the right device for the USB stick so I didn't wipe out the installed system on the computer.
This was probably back around Fedoraaa 11-13 or thereabouts, and I h aven't kept up with Fedora for the last few years, but there is no reason THAT I KNOW OF why it wouldn't still work.
Good luck!
Fred
It's been a few months since I did this, but the technique still works just fine.
1. Boot liveCD USB on PC that likes the Live CD. 2. Use that LiveCD to install to a differenet UCB stick
Thanks for the other suggestions. For background:
The PC that LiveCD fails on has an existing Fedora installation that dual boots with Windows 10. The Fedora was install about 5 years ago. Somewhere in last 3 or 4 Fedora releases Live CD started to fail.
The Live CD gets into systemd and is happily starting serrvices. It hits "Monitoring for LVM2 mirrors" and hangs. I've waited for over an hour just in case it pops out.
So its not BIOS the mahine can boot the USB stick and get into systemd. I'm not aware of kernel options that will help with debugging the hang.
But I know I can debug this if I have a USB stick that I can edit to add in debug code to the systemd unit that is hanging. Hence the the question.
Barry
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
I have the same problem when I create a usb stick of Fedora 32 but only on some newer machines.
I don't think it is a bug but this shows how to fix it:
https://bugzilla.redhat.com/show_bug.cgi?id=1768498
Had to access the stick offline on another machine, then , I edited the /etc/lvm/lvm.conf file and changed these two parms to these values:
external_device_info_source = "udev" fw_raid_component_detection = 1
it now boots fine on all the machines (one that hung on the Monitoring LVM and ones that did not)
Earl
On 21 Jul 2020, at 18:54, Earl Terwilliger via users users@lists.fedoraproject.org wrote:
I have the same problem when I create a usb stick of Fedora 32 but only on some newer machines.
I don't think it is a bug but this shows how to fix it:
https://bugzilla.redhat.com/show_bug.cgi?id=1768498
Had to access the stick offline on another machine, then , I edited the /etc/lvm/lvm.conf file and changed these two parms to these values:
external_device_info_source = "udev" fw_raid_component_detection = 1
it now boots fine on all the machines (one that hung on the Monitoring LVM and ones that did not)
That is interesting.
I have a USB stick that I can edit so I will try this and report back.
I did what was suggested, boot a Live CD and install onto another USB. Because the sticks I have are only 8GB I need to use a Fedora Server live CD to get the install size to fit. KE did not fit for example.
I got as far are replacing lvm vgchange --monitor y with sleep 30. And the stick then boots.
Barry
On 23 Jul 2020, at 21:46, Barry Scott barry@barrys-emacs.org wrote:
On 21 Jul 2020, at 18:54, Earl Terwilliger via users users@lists.fedoraproject.org wrote:
I have the same problem when I create a usb stick of Fedora 32 but only on some newer machines.
I don't think it is a bug but this shows how to fix it:
https://bugzilla.redhat.com/show_bug.cgi?id=1768498
Had to access the stick offline on another machine, then , I edited the /etc/lvm/lvm.conf file and changed these two parms to these values:
external_device_info_source = "udev" fw_raid_component_detection = 1
it now boots fine on all the machines (one that hung on the Monitoring LVM and ones that did not)
That is interesting.
I have a USB stick that I can edit so I will try this and report back.
I did what was suggested, boot a Live CD and install onto another USB. Because the sticks I have are only 8GB I need to use a Fedora Server live CD to get the install size to fit. KE did not fit for example.
I got as far are replacing lvm vgchange --monitor y with sleep 30. And the stick then boots.
I ended up getting an USB SSD for this, the USB sticks where too small and very slow.
It did not help that I tried to do a dnf update and 24 hours later it was still going and then the kernel paniced.
Using the SSD I reproduced the problem and you where quite right adding the two lines to lvm.conf fixes the problem.
Unless there is a reason not to add thoses lines I think this is a bug.
I'm going to discuss on Fedora devel list.
Barry
Barry _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
On Mon, 20 Jul 2020 at 16:24, Fred Smith fredex@fcshome.stoneham.ma.us wrote:
On Mon, Jul 20, 2020 at 05:48:43PM +0100, Barry Scott wrote:
I want to create a bootable USB stick that runs fedora.
I do not want to create a Live-CD USB stick because live-CD fails to boot on my main PC. And no one seems to know how to fix this. By using a read-write USB stick I can add in debug code to the boot process and try to findout what is hanging the boot process.
What my google-fu is failed to do is figure out how to find instruction on how to do this with getting live-CD instructions.
I'm guessing that I should be able to use anaconda or dnf to get the heavy lifting done.
Does anyone know what the steps I need to follow are?
Barry
FWIW, some years back I did (more than once) install Fedora onto a USB stick using an normal install procedure. all I had to do was be sure to specify the right device for the USB stick so I didn't wipe out the installed system on the computer.
This was probably back around Fedoraaa 11-13 or thereabouts, and I h aven't kept up with Fedora for the last few years, but there is no reason THAT I KNOW OF why it wouldn't still work.
By "normal install procedure" I assume you mean you were able to boot some installation media. Since the OP can't boot the live media, the "normal install procedure" isn't available.
It may be possible to create a new ISO image with extra grub options like https://www.askapache.com/linux/linux-debugging/
https://docs.fedoraproject.org/en-US/quick-docs/creating-and-using-a-live-in... mentions adding persistent storage to a live USB which might be helpful for saving logs, etc.
On Mon, Jul 20, 2020 at 08:31:18PM -0300, George N. White III wrote:
On Mon, 20 Jul 2020 at 16:24, Fred Smith <[1]fredex@fcshome.stoneham.ma.us> wrote:
On Mon, Jul 20, 2020 at 05:48:43PM +0100, Barry Scott wrote: > I want to create a bootable USB stick that runs fedora. > > I do not want to create a Live-CD USB stick because live-CD > fails to boot on my main PC. And no one seems to know how to > fix this. By using a read-write USB stick I can add in debug > code to the boot process and try to findout what is hanging > the boot process. > > What my google-fu is failed to do is figure out how to find > instruction on how to do this with getting live-CD instructions. > > I'm guessing that I should be able to use anaconda or dnf to get > the heavy lifting done. > > Does anyone know what the steps I need to follow are? > > Barry FWIW, some years back I did (more than once) install Fedora onto a USB stick using an normal install procedure. all I had to do was be sure to specify the right device for the USB stick so I didn't wipe out the installed system on the computer. This was probably back around Fedoraaa 11-13 or thereabouts, and I h aven't kept up with Fedora for the last few years, but there is no reason THAT I KNOW OF why it wouldn't still work.
By "normal install procedure" I assume you mean you were able to boot some installation media. Since the OP can't boot the live media, the "normal install procedure" isn't available. It may be possible to create a new ISO image with extra grub options like [2]https://www.askapache.com/linux/linux-debugging/
I was doing it before the live system options were common, so it was just boot up an install disk and let the installer run, being sure to use the right destination device. I don't know why a live usb would fail to install on a USB stick, as long as it isn't the same one you've already booted. Also, last I noticed, there were installation media other than the live ones.
Fred