* Trying to Install on USB drive using GRUB @ 2019-06-25 9:25 jacksprat 2019-06-25 9:33 ` Igor Fontana 2019-06-26 5:46 ` jacksprat 0 siblings, 2 replies; 20+ messages in thread From: jacksprat @ 2019-06-25 9:25 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1199 bytes --] My laptop hard drive died, so as an interim solution, I wanted to install Void Linux on a removable hard drive [/dev/sdb1]. I started with the current 64-bit MUSL live image. The void-installer script, run as root, fails to complete, complaining about expecting to find an efi setup. Rather than get involved with efi , I tried mkdir /usb mount /dev/sdb1 /usb <create /usb/boot/grub/grub.cfg with suitable menu item> grub-install --target=i384-pc --boot-directory=/usb/boot /dev/sdb umount /usb which completed without errors. However, on reboot, I get the grub menu from the failed hard drive. I also ran fdisk on /dev/sdb to mark the partition bootable. What have I missed? Thanks. -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/5d119bc6-2440-4bed-8f81-841ba285c876%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1648 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 9:25 Trying to Install on USB drive using GRUB jacksprat @ 2019-06-25 9:33 ` Igor Fontana 2019-06-25 10:33 ` jacksprat 2019-06-26 5:46 ` jacksprat 1 sibling, 1 reply; 20+ messages in thread From: Igor Fontana @ 2019-06-25 9:33 UTC (permalink / raw) To: jacksprat; +Cc: voidlinux > My laptop hard drive died, so as an interim solution, I wanted to install Void Linux on a removable hard drive [/dev/sdb1]. > > I started with the current 64-bit MUSL live image. The void-installer script, run as root, fails to complete, complaining about expecting to find an efi setup. Rather than get involved with efi , I tried > > mkdir /usb > mount /dev/sdb1 /usb > <create /usb/boot/grub/grub.cfg with suitable menu item> > grub-install --target=i384-pc --boot-directory=/usb/boot /dev/sdb > umount /usb > > which completed without errors. However, on reboot, I get the grub menu from the failed hard drive. > > I also ran fdisk on /dev/sdb to mark the partition bootable. What have I missed? Thanks. Back in the days you had to set the drive you wanted to boot on the BIOS setup. I'm not sure about EFI (my PC is still BIOS) but I'd expect the same. <3 -- Pudding -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/CAHpAuDFF5XH89baydRQiZLdnSJjz88ZOie29_AvktdrdGwQVwg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 9:33 ` Igor Fontana @ 2019-06-25 10:33 ` jacksprat 2019-06-25 10:40 ` Igor Fontana 0 siblings, 1 reply; 20+ messages in thread From: jacksprat @ 2019-06-25 10:33 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1644 bytes --] My laptop is setup so that it tries USB first, then reverts to hard drive if no suitable USB device is present. On Tuesday, June 25, 2019 at 10:32:16 AM UTC+1, space pudim wrote: > > > My laptop hard drive died, so as an interim solution, I wanted to > install Void Linux on a removable hard drive [/dev/sdb1]. > > > > I started with the current 64-bit MUSL live image. The void-installer > script, run as root, fails to complete, complaining about expecting to find > an efi setup. Rather than get involved with efi , I tried > > > > mkdir /usb > > mount /dev/sdb1 /usb > > <create /usb/boot/grub/grub.cfg with suitable menu item> > > grub-install --target=i384-pc --boot-directory=/usb/boot /dev/sdb > > umount /usb > > > > which completed without errors. However, on reboot, I get the grub menu > from the failed hard drive. > > > > I also ran fdisk on /dev/sdb to mark the partition bootable. What have > I missed? Thanks. > > Back in the days you had to set the drive you wanted to boot on the > BIOS setup. I'm not sure about EFI (my PC is still BIOS) but I'd > expect the same. > > <3 > > > -- > Pudding > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/062ee18d-0306-4c68-bba6-da0a638f996a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2294 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 10:33 ` jacksprat @ 2019-06-25 10:40 ` Igor Fontana 2019-06-25 11:07 ` jacksprat 0 siblings, 1 reply; 20+ messages in thread From: Igor Fontana @ 2019-06-25 10:40 UTC (permalink / raw) To: jacksprat; +Cc: voidlinux > My laptop is setup so that it tries USB first, then reverts to hard drive if no suitable USB device is present. Oh yes, I've faced this in the past too. Some computers have a boot menu, and you have to boot your drive from there, otherwise it won't work, even if you put USB boot on the BIOS setup. Just like the "press delete to enter setup", some have a "press f8 (or f12 or some other key) to enter boot menu". -- Pudding -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/CAHpAuDFW-qDs1DjOvKSV2fKmM38mLKpxydUU3gPC8v3x6yuZOw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 10:40 ` Igor Fontana @ 2019-06-25 11:07 ` jacksprat 2019-06-25 12:56 ` Igor Fontana 0 siblings, 1 reply; 20+ messages in thread From: jacksprat @ 2019-06-25 11:07 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1221 bytes --] If I insert the USB drive with the Void Linux live system, then t boots. OK, that probably uses syslinux and not GRUB. Installing GRUB on the hard drive [/dev/sda] always works, so why not /dev/sdb? On Tuesday, June 25, 2019 at 11:39:15 AM UTC+1, space pudim wrote: > > > My laptop is setup so that it tries USB first, then reverts to hard > drive if no suitable USB device is present. > > Oh yes, I've faced this in the past too. Some computers have a boot > menu, and you have to boot your drive from there, otherwise it won't > work, even if you put USB boot on the BIOS setup. Just like the "press > delete to enter setup", some have a "press f8 (or f12 or some other > key) to enter boot menu". > > -- > Pudding > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/2faff7a5-2184-4958-a6d9-255977d1f4f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1797 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 11:07 ` jacksprat @ 2019-06-25 12:56 ` Igor Fontana 2019-06-25 13:38 ` Jeff Pohlmeyer ` (2 more replies) 0 siblings, 3 replies; 20+ messages in thread From: Igor Fontana @ 2019-06-25 12:56 UTC (permalink / raw) To: jacksprat; +Cc: voidlinux > If I insert the USB drive with the Void Linux live system, then t boots. OK, that probably uses syslinux and not GRUB. Installing GRUB on the hard drive [/dev/sda] always works, so why not /dev/sdb? Did you try Void Live on the same USB device you want to install it on? I've seen this many times: some devices get listed as "USB Storage", and some as "USB HDD" (even sticks), and it won't get matched by the BIOS, even though it's all USB. The solution was to select the thing manually from the boot menu - not the BIOS setup. But then it may be the case that your BIOS is just unable to boot on that particular device. If you didn't try the Void Live on the same device, I would advise you to do so. -- Pudding -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/CAHpAuDHaxEoqhgouwdr-i9jSqhPHuht1hQUerpTkidKc9B9S2g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 12:56 ` Igor Fontana @ 2019-06-25 13:38 ` Jeff Pohlmeyer 2019-06-25 13:53 ` jacksprat 2019-06-25 13:46 ` jacksprat 2019-06-25 15:34 ` jacksprat 2 siblings, 1 reply; 20+ messages in thread From: Jeff Pohlmeyer @ 2019-06-25 13:38 UTC (permalink / raw) To: Igor Fontana; +Cc: jacksprat, voidlinux Did you set the bootable (active) flag of the boot partition on the USB drive? -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/CAEuRe%2B0y%2BdW_-7Wk0b7sUMQzqcZagXsi4cO%2BCaDnZq3v_7NZCA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 13:38 ` Jeff Pohlmeyer @ 2019-06-25 13:53 ` jacksprat 2019-06-25 13:58 ` Igor Fontana 2019-06-25 14:25 ` Jeff Pohlmeyer 0 siblings, 2 replies; 20+ messages in thread From: jacksprat @ 2019-06-25 13:53 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 805 bytes --] While using the Void Live instance, use used fdisk /dev/sdb and set the partition bootable. I don't know any other way to mark the device bootable. On Tuesday, June 25, 2019 at 2:38:31 PM UTC+1, Jeffrey Pohlmeyer wrote: > > Did you set the bootable (active) flag of the boot partition on the USB > drive? > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/904aee1d-0fd1-429c-97b3-741f779518d1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1395 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 13:53 ` jacksprat @ 2019-06-25 13:58 ` Igor Fontana 2019-06-25 14:07 ` jacksprat 2019-06-25 14:25 ` Jeff Pohlmeyer 1 sibling, 1 reply; 20+ messages in thread From: Igor Fontana @ 2019-06-25 13:58 UTC (permalink / raw) To: jacksprat; +Cc: voidlinux [-- Attachment #1: Type: text/plain, Size: 846 bytes --] El mar., 25 de jun. de 2019 14:53, jacksprat <picamanic@gmail.com> escribió: > While using the Void Live instance, use used > > fdisk /dev/sdb > > and set the partition bootable. I don't know any other way to mark the > device bootable. > btw did you check if your USB HDD shows up as a regular HDD on the BIOS? > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/CAHpAuDFYsO0Zq4XDW0cDmpJc%3DQM-djrgO%3DKpLzfwE-QcBKWXnQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 1774 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 13:58 ` Igor Fontana @ 2019-06-25 14:07 ` jacksprat 2019-06-25 14:11 ` Igor Fontana 0 siblings, 1 reply; 20+ messages in thread From: jacksprat @ 2019-06-25 14:07 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1028 bytes --] The BIOS [HP] doesn't say anything about what type of device is plugged into the USB port. On Tuesday, June 25, 2019 at 2:59:05 PM UTC+1, space pudim wrote: > > El mar., 25 de jun. de 2019 14:53, jacksprat <pica...@gmail.com > <javascript:>> escribió: > >> While using the Void Live instance, use used >> >> fdisk /dev/sdb >> >> and set the partition bootable. I don't know any other way to mark the >> device bootable. >> > > btw did you check if your USB HDD shows up as a regular HDD on the BIOS? > >> -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/aba14f67-a45a-4387-9753-8d3ae55c2082%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2205 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 14:07 ` jacksprat @ 2019-06-25 14:11 ` Igor Fontana 0 siblings, 0 replies; 20+ messages in thread From: Igor Fontana @ 2019-06-25 14:11 UTC (permalink / raw) To: jacksprat; +Cc: voidlinux [-- Attachment #1: Type: text/plain, Size: 771 bytes --] El mar., 25 de jun. de 2019 15:07, jacksprat <picamanic@gmail.com> escribió: > > The BIOS [HP] doesn't say anything about what type of device is plugged > into the USB port. > It could be listed together with the regular HDDs, not on the USB page. -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/CAHpAuDEcUoT_LV2ws%3DyjoSx2mjhAdcZXCL5%3D7Veq0ce8FVUPjg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 1501 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 13:53 ` jacksprat 2019-06-25 13:58 ` Igor Fontana @ 2019-06-25 14:25 ` Jeff Pohlmeyer 2019-06-25 14:37 ` jacksprat 1 sibling, 1 reply; 20+ messages in thread From: Jeff Pohlmeyer @ 2019-06-25 14:25 UTC (permalink / raw) To: jacksprat; +Cc: voidlinux On Tue, Jun 25, 2019 at 8:53 AM jacksprat <picamanic@gmail.com> wrote: > > While using the Void Live instance, use used > fdisk /dev/sdb > and set the partition bootable. I don't know any other way to mark the device bootable. Yes, that's what I meant. You can double-check by running: fdisk -l /dev/sdb and see if there is a star * next to the boot partition. -- Jeff -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/CAEuRe%2B0BHJkiTfcvqHJ1y%2BDaAL2TrYADHNtjVKvFz-0j5LsNdg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 14:25 ` Jeff Pohlmeyer @ 2019-06-25 14:37 ` jacksprat 0 siblings, 0 replies; 20+ messages in thread From: jacksprat @ 2019-06-25 14:37 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1053 bytes --] yes, fdisk has the partition marked with an asterisk/star. On Tuesday, June 25, 2019 at 3:25:01 PM UTC+1, Jeffrey Pohlmeyer wrote: > > On Tue, Jun 25, 2019 at 8:53 AM jacksprat <pica...@gmail.com <javascript:>> > wrote: > > > > While using the Void Live instance, use used > > fdisk /dev/sdb > > and set the partition bootable. I don't know any other way to mark the > device bootable. > > Yes, that's what I meant. You can double-check by running: > > fdisk -l /dev/sdb > > and see if there is a star * next to the boot partition. > > -- Jeff > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/0411b2d1-42e0-48c1-a9cd-d06abaa8a1fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1829 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 12:56 ` Igor Fontana 2019-06-25 13:38 ` Jeff Pohlmeyer @ 2019-06-25 13:46 ` jacksprat 2019-06-25 15:34 ` jacksprat 2 siblings, 0 replies; 20+ messages in thread From: jacksprat @ 2019-06-25 13:46 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1644 bytes --] I suppose it is possible that there is something peculial about the USB drive that I am trying to install to: Samdung EVO SSD connected via an ORICO USB case. I will try using ann identical USB "pen drive" to the one that I wrote the Void Linux Live image. If so, it would be a pitty as the Samsung SSDs are cool. On Tuesday, June 25, 2019 at 1:55:11 PM UTC+1, space pudim wrote: > > > If I insert the USB drive with the Void Linux live system, then t boots. > OK, that probably uses syslinux and not GRUB. Installing GRUB on the hard > drive [/dev/sda] always works, so why not /dev/sdb? > > Did you try Void Live on the same USB device you want to install it on? > > I've seen this many times: some devices get listed as "USB Storage", > and some as "USB HDD" (even sticks), and it won't get matched by the > BIOS, even though it's all USB. > > The solution was to select the thing manually from the boot menu - not > the BIOS setup. But then it may be the case that your BIOS is just > unable to boot on that particular device. If you didn't try the Void > Live on the same device, I would advise you to do so. > > -- > Pudding > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/65913539-ccba-45d4-bd63-99faa66a3bc8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2250 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 12:56 ` Igor Fontana 2019-06-25 13:38 ` Jeff Pohlmeyer 2019-06-25 13:46 ` jacksprat @ 2019-06-25 15:34 ` jacksprat 2019-06-25 15:40 ` Igor Fontana 2 siblings, 1 reply; 20+ messages in thread From: jacksprat @ 2019-06-25 15:34 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1779 bytes --] Well, I tried install to the identical pen drive that booted Void Linux Live, and repeated what I did to grub-install, and the resultant USB drive booted! However, the boot sequence died running the initramfs, just after running dracut on the first partition of my HD [/dev/sda1]. I have aleady seen my error in the grub.cfg file [scream]. This is going too be hard work, but worth it in the end [?]. Just got to remember how grub.cfg is coded.. On Tuesday, June 25, 2019 at 1:55:11 PM UTC+1, space pudim wrote: > > > If I insert the USB drive with the Void Linux live system, then t boots. > OK, that probably uses syslinux and not GRUB. Installing GRUB on the hard > drive [/dev/sda] always works, so why not /dev/sdb? > > Did you try Void Live on the same USB device you want to install it on? > > I've seen this many times: some devices get listed as "USB Storage", > and some as "USB HDD" (even sticks), and it won't get matched by the > BIOS, even though it's all USB. > > The solution was to select the thing manually from the boot menu - not > the BIOS setup. But then it may be the case that your BIOS is just > unable to boot on that particular device. If you didn't try the Void > Live on the same device, I would advise you to do so. > > -- > Pudding > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/80bba0ae-12b9-437b-913b-3e4ad40ef06b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2374 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 15:34 ` jacksprat @ 2019-06-25 15:40 ` Igor Fontana 2019-06-25 16:59 ` jacksprat 0 siblings, 1 reply; 20+ messages in thread From: Igor Fontana @ 2019-06-25 15:40 UTC (permalink / raw) To: jacksprat; +Cc: voidlinux [-- Attachment #1: Type: text/plain, Size: 1106 bytes --] El mar., 25 de jun. de 2019 16:34, jacksprat <picamanic@gmail.com> escribió: > Well, I tried install to the identical pen drive that booted Void Linux > Live, and repeated what I did to grub-install, and the resultant USB drive > booted! However, the boot sequence died running the initramfs, just after > running dracut on the first partition of my HD [/dev/sda1]. I have aleady > seen my error in the grub.cfg file [scream]. This is going too be hard > work, but worth it in the end [?]. Just got to remember how grub.cfg is > coded.. > Maybe LILO is still an option? > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/CAHpAuDGcu2ZEToeJPN6Z%2BcQmmf466-d3nt-pA%3DvyNPGHnKMr3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 2181 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 15:40 ` Igor Fontana @ 2019-06-25 16:59 ` jacksprat 2019-06-25 17:23 ` jacksprat 2019-06-25 18:32 ` Jeffrey Sheinberg 0 siblings, 2 replies; 20+ messages in thread From: jacksprat @ 2019-06-25 16:59 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1733 bytes --] Lilo? Ii haven't given up trying to get grub.cfg right. here is a fragment # menuentry 'Void GNU/Linux 4.18.17 [sda1]' { insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' echo 'Loading Linux 4.18.17_1 ...' linux /boot/vmlinuz-4.18.17_1 root=/dev/sda1 ro echo 'Loading initial ramdisk ...' initrd /boot/initramfs-4.18.17_1.img } It is the "set root" line that I suspect is wrong, but if "msdos1"=1st partition, why do both "hd0" and "hd1" fail? Close.. On Tuesday, June 25, 2019 at 4:40:28 PM UTC+1, space pudim wrote: > > El mar., 25 de jun. de 2019 16:34, jacksprat <pica...@gmail.com > <javascript:>> escribió: > >> Well, I tried install to the identical pen drive that booted Void Linux >> Live, and repeated what I did to grub-install, and the resultant USB drive >> booted! However, the boot sequence died running the initramfs, just after >> running dracut on the first partition of my HD [/dev/sda1]. I have aleady >> seen my error in the grub.cfg file [scream]. This is going too be hard >> work, but worth it in the end [?]. Just got to remember how grub.cfg is >> coded.. >> > > Maybe LILO is still an option? > >> -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/778c2f0c-ab30-426d-b057-203e79e2213d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 3239 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 16:59 ` jacksprat @ 2019-06-25 17:23 ` jacksprat 2019-06-25 18:32 ` Jeffrey Sheinberg 1 sibling, 0 replies; 20+ messages in thread From: jacksprat @ 2019-06-25 17:23 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 1907 bytes --] In the grub.cfg below, I fixed "sda1" to "sdb1". Still no go.. On Tuesday, June 25, 2019 at 5:59:54 PM UTC+1, jacksprat wrote: > > Lilo? Ii haven't given up trying to get grub.cfg right. here is a > fragment > > # > menuentry 'Void GNU/Linux 4.18.17 [sda1]' { > insmod gzio > insmod part_msdos > insmod ext2 > set root='hd0,msdos1' > echo 'Loading Linux 4.18.17_1 ...' > linux /boot/vmlinuz-4.18.17_1 root=/dev/sda1 ro > echo 'Loading initial ramdisk ...' > initrd /boot/initramfs-4.18.17_1.img > } > > It is the "set root" line that I suspect is wrong, but if "msdos1"=1st > partition, why do both "hd0" and "hd1" fail? Close.. > > On Tuesday, June 25, 2019 at 4:40:28 PM UTC+1, space pudim wrote: >> >> El mar., 25 de jun. de 2019 16:34, jacksprat <pica...@gmail.com> >> escribió: >> >>> Well, I tried install to the identical pen drive that booted Void Linux >>> Live, and repeated what I did to grub-install, and the resultant USB drive >>> booted! However, the boot sequence died running the initramfs, just after >>> running dracut on the first partition of my HD [/dev/sda1]. I have aleady >>> seen my error in the grub.cfg file [scream]. This is going too be hard >>> work, but worth it in the end [?]. Just got to remember how grub.cfg is >>> coded.. >>> >> >> Maybe LILO is still an option? >> >>> -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/1604209a-e984-43ca-b5b8-9b547bd08de5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 3353 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 16:59 ` jacksprat 2019-06-25 17:23 ` jacksprat @ 2019-06-25 18:32 ` Jeffrey Sheinberg 1 sibling, 0 replies; 20+ messages in thread From: Jeffrey Sheinberg @ 2019-06-25 18:32 UTC (permalink / raw) To: voidlinux On Tue, Jun 25, 2019 at 09:59:54AM -0700, jacksprat wrote: > menuentry 'Void GNU/Linux 4.18.17 [sda1]' { > insmod gzio > insmod part_msdos > insmod ext2 > set root='hd0,msdos1' ^^^^^^^^^^^^ Try this: set root='(hd0,msdos1)' Regards, -- Jeffrey Sheinberg -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/20190625183256.GA16913%40l2.bsrd.net. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Trying to Install on USB drive using GRUB 2019-06-25 9:25 Trying to Install on USB drive using GRUB jacksprat 2019-06-25 9:33 ` Igor Fontana @ 2019-06-26 5:46 ` jacksprat 1 sibling, 0 replies; 20+ messages in thread From: jacksprat @ 2019-06-26 5:46 UTC (permalink / raw) To: voidlinux [-- Attachment #1.1: Type: text/plain, Size: 3017 bytes --] This all happened because the hard drive on my shiny HP laptop was failing, and I decided to try and create a bootable USB drive with GRUB and and the Void Linux MUSL Live image. As my route to finding a solution was a bit messy, I just wanted to let you know what eventually worked. I started from Void Linux Live MUSL image, which I opted to load into RAM from USB, so that I could unmount the installation medium and remove. This avoids getting confused with the target USB device: a Samsung 250gb 860 Evo SSD [SATA] connected via a STAR USB adaptor. The void-installer script fails when running grub-install [it wanted UEFI], and my attempts to fix it failed. However, as the basic system had been installed, I just needed to make it boot. I ensured that the /dev/sdb1 partition was bootable by running fdisk /dev/sdb and use the "a" command to toggle the "bootable" flag. Next, I crafted a simple grub.cfg file: menuentry 'Void GNU/Linux MUSL 4.18.17 [sdb1]' { insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' linux /boot/vmlinuz-4.18.17_1 root=/dev/sdb1 ro initrd /boot/initramfs-4.18.17_1.img } I don't understand "hd0" for the sdb device [why not "hd1"?], but only it works. This is then installed with mkdir /usb mount /dev/sdb1 /usb grub-install --target=i386-pc --boot-directory=/usb/boot /dev/sdb umount /usb At this point the the system can be rebooted. This all happened because the void-installer insisted that I use the crazy efi method, even though I have been using BIOS-based installs for ever. On older [pre-efi] computers, the void-installer seems to just work. Maybe I will embrace uefi one day [joke]. On Tuesday, June 25, 2019 at 10:25:30 AM UTC+1, jacksprat wrote: > > My laptop hard drive died, so as an interim solution, I wanted to install > Void Linux on a removable hard drive [/dev/sdb1]. > > I started with the current 64-bit MUSL live image. The void-installer > script, run as root, fails to complete, complaining about expecting to find > an efi setup. Rather than get involved with efi , I tried > > mkdir /usb > mount /dev/sdb1 /usb > <create /usb/boot/grub/grub.cfg with suitable menu item> > grub-install --target=i384-pc --boot-directory=/usb/boot /dev/sdb > umount /usb > > which completed without errors. However, on reboot, I get the grub menu > from the failed hard drive. > > I also ran fdisk on /dev/sdb to mark the partition bootable. What have I > missed? Thanks. > > -- You received this message because you are subscribed to the Google Groups "voidlinux" group. To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com. To post to this group, send email to voidlinux@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/a63f086d-48c8-4039-9892-295194715d87%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 3763 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2019-06-26 5:46 UTC | newest] Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-06-25 9:25 Trying to Install on USB drive using GRUB jacksprat 2019-06-25 9:33 ` Igor Fontana 2019-06-25 10:33 ` jacksprat 2019-06-25 10:40 ` Igor Fontana 2019-06-25 11:07 ` jacksprat 2019-06-25 12:56 ` Igor Fontana 2019-06-25 13:38 ` Jeff Pohlmeyer 2019-06-25 13:53 ` jacksprat 2019-06-25 13:58 ` Igor Fontana 2019-06-25 14:07 ` jacksprat 2019-06-25 14:11 ` Igor Fontana 2019-06-25 14:25 ` Jeff Pohlmeyer 2019-06-25 14:37 ` jacksprat 2019-06-25 13:46 ` jacksprat 2019-06-25 15:34 ` jacksprat 2019-06-25 15:40 ` Igor Fontana 2019-06-25 16:59 ` jacksprat 2019-06-25 17:23 ` jacksprat 2019-06-25 18:32 ` Jeffrey Sheinberg 2019-06-26 5:46 ` jacksprat
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).