Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Installing drivers into LiveUSB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LessDmesg
n00b
n00b


Joined: 05 Oct 2019
Posts: 3
Location: Russia

PostPosted: Sat Oct 05, 2019 3:06 pm    Post subject: [SOLVED] Installing drivers into LiveUSB Reply with quote

It's good when the system has network drivers during installation. Not everyone is so fortunate though. I'm trying to install Gentoo from a USB stick (Hybrid ISO), and I've downloaded the drivers for my Wi-fi dongle (Tenda U1) from the vendor site. They have an "install.sh" script, but it outputs:

Code:
...lots of compilation messages...
##############################
Compile make driver ok!!
##############################
Authentication requested [root] for install driver:
install -p -m 644 8192eu.ko /lib/modules/4.52-aufs-r1/kernel/drivers/net/wireless
install: cannot create regular file '/lib/modules/4.52-aufs-r1/kernel/drivers/net/wireless/8192eu.ko': Read-only file system
make: *** [Makefile:1884: install] Error 1


When I try "sudo mount -o remount,rw /lib", it won't let me ("not mounted or bad option")

1) How do I install the driver into the LiveUSB system?

2) If it's not possible, maybe I can install just by copying the system from LiveUSB to my HDD? But from what I've read, such "offline installs" are discouraged.

Thank you!


Last edited by LessDmesg on Sun Oct 06, 2019 9:35 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44050
Location: 56N 3W

PostPosted: Sat Oct 05, 2019 4:32 pm    Post subject: Reply with quote

LessDmesg,

Welcome to Gentoo.

The read/write root filesystem is faked. What is booted ir read only, then it adds aufs over the top to give the illusion of a read/write filestem.
Writes only ever stay in RAM and hide the ro file they are named after.

The Gentoo Hybrid ISO is horribly out of date. It will be challenge to update your gentoo if you manage to install it to your HDD, so its a very bad place to start.
/lib is on the root (/) filesystem which should already be rw.

There are several ways forward.
1. None of the code on the install media goes into your Gentoo. The install media is only a toolkit you allow you you to accomplish the install.
This means Gentoo can be installed from whatever random live Linux you have to hand.

2. You don't actually need a network connection to install or maintain Gentoo. Sneakernet works too.
A few of the defaults settings have changed since that 2006 post but the method is still valid.
e.g. /usr/portage/distfiles is not the default for downloaded source tarballs.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LessDmesg
n00b
n00b


Joined: 05 Oct 2019
Posts: 3
Location: Russia

PostPosted: Sat Oct 05, 2019 8:19 pm    Post subject: Reply with quote

Thanks for the clarifications. Problem is, I don't have any Linux right now, just Windows boxes. So maybe the simplest way for me is to untar a stage4 archive and go on to install the drivers and the rest of the system from there?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44050
Location: 56N 3W

PostPosted: Sat Oct 05, 2019 8:26 pm    Post subject: Reply with quote

LessDmesg,

You can install Gentoo into Virtualbox on Windows.
That uses the hosts network.

With some care to build a kernel that suits both the Virtulabox environment and the bare metal, the install can be moved to the bare metal.

There is System Rescue CD. Thats a download you run from USB. It used to be Gentoo based but they moved to arch.
Others exist too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LessDmesg
n00b
n00b


Joined: 05 Oct 2019
Posts: 3
Location: Russia

PostPosted: Sun Oct 06, 2019 9:35 am    Post subject: Reply with quote

OK I'll do that, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum