LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2016, 01:07 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post Create USB Linux with RW permission.


Hello.
How can I create a USB bootable with RW permission? I mean is that it is not like a CD\DVD and I can install applications and create files on it.

Tnx.
 
Old 09-03-2016, 01:13 AM   #2
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Just install a system to USB. As well as you installing it to your hard drive.
 
1 members found this post helpful.
Old 09-03-2016, 04:41 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Teufel is correct. To most modern linux distro's, a usb attached drive is just like an internal hard drive.

To install you will have to be careful or do what I do. I use a virtual machine to prevent making a mistake. Otherwise remove the data or power to internal hard drives.
 
Old 09-03-2016, 05:00 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
In some cases kernel wants to mount / before USB support is loaded [and panics], then you need to add rootwait to the kernel command line.
 
Old 09-03-2016, 05:35 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
There are install methods for various distros to install linux in linux via chroot. Which gives you full control over the partitions and filesystems that are in use. For debian, debootstrap is the tool geared for this type of install. Arch has a way and a gentoo stage 1 install is another way. You can also rsync an existing install and boot that up. Just modify /etc/fstab to reflect the new location and setup a bootloader to use it. Or reuse the bootloader(s) already on your system(s). There's puppy and other distros designed to run entirely from ram.
 
Old 09-05-2016, 12:19 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i have a suspicion that op wants a "distro on a stick" to take with them.

while it is possible to simply install any linux TO a usb stick, there's a few hurdles:

- will the installer make some decisions about the hardware used at that moment? in that case the result wouldn't be very portable, i.e. risk of failure when booting from different hardware.

- if you don't have a superfast usb stick connected to a superfast usb 3.0 port, this will be almost impossibly slow to use at times, because the resulting install will happily write/read to/from the stick, maybe even create a swap partition on the stick!

fwiw, i'm currently looking for a distro on a stick myself.
not so easy.
i don't want to use one of those run-everything-as-root distros.
what's left? Porteus, Slitaz, DamnSmallLinux (it seems people are still using it), Alpine Linux seems to have an option.
 
Old 09-05-2016, 03:27 AM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
If you want to do it the easy way, use Debian (current release is Debian 8) and choose "Manual Partitioning" when given the choice. Delete any partition that already exists on the USB drive, and create a new full size partition and finish. It will ask whether you REALLY want to continue without creating a swap partition. You do indeed want to continue without creating a swap partition.

It's easy as pie with Debian. I've done it many times with various versions of Debian. It just works. The default install is nice and generic. It does NOT automatically try to use any other discs/partitions it sees at install time (useful because it does NOT rely upon any swap partitions you don't specifically tell it to use). It does NOT try to install anything specific to the current computer's hardware, unless you specifically tell it to (for example, doing a manual step to install some particular driver).

What Debian's installer DOES do, by default, is use UUIDs to identify the partitions. That means that the USB stick DOES work in another computer even if the number of drives is different and there are multiple USB sticks plugged in, and your USB stick has a different /dev/sdX identifier. You just set the BIOS to boot from your USB stick first, if necessary, and IT JUST WORKS.
 
Old 09-05-2016, 02:54 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I used to live with real installs to slow usb 2 flash drives. A live usb created on a flash drive tends to be quick because the data on the usb is compressed. When the cpu needs to access the data it moves the compressed data over then acts on it. This is why some people find a slow usb 2 flash real install to be poor.

Some few usb flash drives just don't work well with ext4 for some odd reason.

It is well worth your time to buy a very fast usb 3 flash drive if you want to run linux on it as a native install.
 
Old 09-05-2016, 04:06 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Some distros like puppy and tails load into ram when you boot them, so outside of adverse boot times (and persistence issues) the speed of the storage medium is moot. As long as you have enough ram.

I've lived on slow storage most of my life. It's not that slow. Well, you'll buffer on file I/O if you try to watch youtube in a browser, but you can mitigate that by putting /home/ in a ramdisk, or at least the parts of /home/ that are the browsers cache. Or you could use a class 10 or higher SDHC card and a reader, or an even better usb 3 class stick. Just don't plan on using and abusing it for more than six months without getting dangerously close to the inevitable. So make sure that you have more than one. And a good card reader as some are not bootable, and some are only good up to certain sized cards. I kind of like the SDHC route since you can walk into almost any store and pick one up for $10-ish. And they keep getting faster. Where picking up a hard drive off the shelf is something that you can't do anymore in a walmart. And OTS drives in a best buy is risky business as the front couple obviously flipped off the shelf and onto the floor at least once.
 
Old 09-05-2016, 07:00 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I used to really like the TORAM options on live media. Nothing says fast like ram.
 
Old 09-07-2016, 01:06 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
ok, the non-tech-savvy answer is antiX.
the only problem is, you'll temporarily need 2 usb sticks, or antix installed to a hd.

- first, you create your usual live medium, boot into that
- then, from the antiX Control Centre => Disks => antiX2usb, follow instructions, install to the 2nd usb stick, root & home persistence and so on.

btw, slitaz has a similar feature, but i find the kernel a little too old for my taste (3.2.x).
 
Old 09-09-2016, 05:35 AM   #12
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I like to create a usb with a Live distro.
 
Old 09-09-2016, 07:41 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Putting aa Live CD on a usb drive with r/w capabilities is referred to as persistence and the method varies depending upon which Linux you are using.
 
Old 09-09-2016, 01:58 PM   #14
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Sometimes I have to create two usb bootable linux's on the same stick. Case in point, arch only boots with secure boot on my hp stream 11. But since I whiped the windows on the main MMC drive, I have to use the bootloader for xubuntu to boot it. Since grub-install (and even refind), can't find an EFI partition to fiddle with under arch. I'll probably revamp this soon to be a 1GB partition for debian, and a 28GB partition for arch on the MMC drive soon. Or 1G deb, 2G swap, 26G arch. But I have several bootable usb options already should I mess it up.
 
Old 09-14-2016, 12:56 AM   #15
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I like to create "Tail" distro on my USB but I like to have RW permission.
 
  


Reply



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
LXer: How to change USB device permission permanently on Linux LXer Syndicated Linux News 0 09-17-2015 12:03 AM
[SOLVED] ext4 - permission to create/modify a file without 'delete' permission BeachHead Linux - General 4 06-08-2014 07:34 PM
how to change the default aoto mounted usb permission for linux arnold.king Linux - Server 2 10-11-2012 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 PM.

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
Open Source Consulting | Domain Registration