LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-10-2018, 04:07 PM   #1
nix84
Member
 
Registered: Apr 2014
Posts: 253

Rep: Reputation: Disabled
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.
 
Old 07-10-2018, 05:44 PM   #2
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 893

Rep: Reputation: 145Reputation: 145
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?
 
Old 07-11-2018, 07:31 AM   #3
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: AntiX
Posts: 2,346

Rep: Reputation: Disabled
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.)

Last edited by fatmac; 07-11-2018 at 07:33 AM.
 
Old 07-12-2018, 04:23 PM   #4
nix84
Member
 
Registered: Apr 2014
Posts: 253

Original Poster
Rep: Reputation: Disabled
@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.
 
Old 07-13-2018, 12:25 AM   #5
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 893

Rep: Reputation: 145Reputation: 145
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?
 
Old 07-13-2018, 12:06 PM   #6
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,444

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Quote:
Originally Posted by nix84 View Post
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.

Last edited by Darth Vader; 07-13-2018 at 12:12 PM.
 
Old 07-18-2018, 03:38 PM   #7
nix84
Member
 
Registered: Apr 2014
Posts: 253

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-18-2018, 04:00 PM   #8
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,444

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
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.

Last edited by Darth Vader; 07-18-2018 at 04:25 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Linux on a flash drive: Possible? eufawif Linux - Newbie 11 11-02-2013 12:46 AM
[SOLVED] Installing linux .iso without dvd disk drive from flash drive on laptop. How? LinuxPadawan1230 Linux - Laptop and Netbook 10 05-30-2012 01:14 PM
How to enable/setup Writeback on USB Flash Drive? 3ttt Linux - Newbie 1 07-04-2009 07:58 AM
Installing or Using a Flash Drive in VirtualBox LinuxNewbie55 Linux - Software 1 10-04-2008 03:49 PM
How to setup write back cache on a USB Flash Drive during Disk spinning down? 3ttt Linux - General 1 08-30-2008 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration