LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Installing to flash drive setup s (https://www.linuxquestions.org/questions/slackware-14/installing-to-flash-drive-setup-s-4175633744/)

nix84 07-10-2018 04:07 PM

Installing to flash drive setup s
 
Trying to install 14.2 onto /dev/sdb (NOTE! not the hard drive this is a flash drive)
All goes well but errors out. The ADD of setup insists on using efi (EF00) of hard drive /dev/sda not /dev/sdb. It shows /dev/sda was set into /etc/fstab. My sequencing (and typing) set up sdb.
Partition 2 was built as +100M and type EF00.
Where did I go wrong? Suggestions? Many tries.

RandomTroll 07-10-2018 05:44 PM

I tried to do this recently. Everything went okay but it wouldn't boot. I didn't use Slackware's install, just fdisk, mkfs, installpkg, lilo. What does an e2fsck of /dev/sdb1 report?

fatmac 07-11-2018 07:31 AM

Linux boots from the first disk it finds, & labels it /dev/sda, unless specifically told to boot from another media.
When setting up a USB disk to boot from, it should be /dev/sda in its /etc/fstab, or it won't boot.

(And don't forget to set your BIOS to boot from USB first, & HDD second.)

nix84 07-12-2018 04:23 PM

@fatmac: It doesn't work quite that way. It is/did install to /dev/sdb where I set the partitions to EF00 (on 1st), 8200 swap (on 2nd) and 8300 on (3rd). During setup when entering from Slacks install window I used "ADD" to create and format the 3 partitions. It saw and set the efi partition on /etc/fstab as /dev/sdb1, well that is what it said.
After the install when I booted that is when I discovered it was using the efi from my hard drive instead of the one on /dev/sdb. I am lead to believe from tens of web discussions that there is a boot section on the flash drive. I see that I may need to move some files about in that section but not sure how I can access them to move them IF that is my problem.
Haven't tried to edit files on a flash drive before, but maybe someone will respond to that.

RandomTroll 07-13-2018 12:25 AM

I have made bootable flash drives by writing a suitable image using dd. Unfortunately all of them have been non-ext?. I didn't have to create a 'boot section'. Perhaps you mean boot sector? fdisk can create that.

Using ordinary methods: fdisk, mkfs, lilo, I have made a bootable flash drive. Unfortunately it errors out during the boot process, yielding an error message I can't figure out, and changes between boot, as though something were wrong with the drive - but I've tried 2 that test okay...

When booting off the flash drive you need to make its /etc/fstab make /dev/sdb1 bootable. Do you need a swap disk?

What's different about editing files on a flash drive?

Darth Vader 07-13-2018 12:06 PM

Quote:

Originally Posted by nix84 (Post 5877915)
Trying to install 14.2 onto /dev/sdb (NOTE! not the hard drive this is a flash drive)
All goes well but errors out. The ADD of setup insists on using efi (EF00) of hard drive /dev/sda not /dev/sdb. It shows /dev/sda was set into /etc/fstab. My sequencing (and typing) set up sdb.
Partition 2 was built as +100M and type EF00.
Where did I go wrong? Suggestions? Many tries.

The Slackware 14.2 has no support for NVMe or eMMC drives.

For a consistent installation experience with your flash drive (an eMMC?), I suggest you to use the slackware-current.

BUT, please be aware that while our slackware-current tends to be more stable than other distributions published releases, it is still the development tree, and it can reserve surprises.

Also, while using the slackware-current you assume the role of beta-tester and is supposed to have the knowledge to fix yourself the issues which can appear along.

nix84 07-18-2018 03:38 PM

To be sure we are talking apples & oranges, I am installing this onto a 32G flash (SanDisk) just as I have done with Fedora (ugh). Did this exactly like I did with a hard drive install for Slackware.
Checked for bad blocks too. I recently read of a need to move and rename the (recall here) EFI boot file. As soon as I complete my network configuration for a class I will look into that.
Is that a feasible path to follow?
No idea what NVMe or eMMC drives are please elucidate?
Delay due to medical conditions, sorry.

Darth Vader 07-18-2018 04:00 PM

Leave Fedora alone. ;)

And please give me exact details. You talk about "a 32GB flash made by SanDisk" but the flash drives are on many forms.

What type is exactly your flash drive? And how it is connected to your computer?

It comes in the form of a (detachable) SDCARD and it is plugged in a SDCARD reader connected internally via USB? In this case it is a SDCARD or MMC and behaves like an ordinary slow USB memory stick. Yet, it appears as a SCSI drive for the Slackware installer and there will be no problems with it. Not the best way to install Slackware but it will work, at least for a short time.

OR, that flash drive is a chip soldered on motherboard and behaves like a SDCARD? In this case it is an eMMC. And this thing is not supported by the Slackware 14.2 installer.

OR, that flash drive comes in the form of a small card connected in a mini-PCIe slot? In this case it is a NVMe. And this thing is not supported by the Slackware 14.2 installer.

OR, that flash drive comes in the form of a small card connected in a mini-SATA slot? In this case it is just a SATA drive and it is fully supported by the Slackware 14.2 installer.


All times are GMT -5. The time now is 01:08 PM.