LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-10-2018, 07:43 PM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 873

Rep: Reputation: 51
Add Persistent Feature to Ubuntu Live USB


Running Slackware64-14.1.
Yes I created a working Live USB of Ubuntu14.04. Chose this version to run a specific mobile device tool. (SP Flash Tool) for MTK mbbile devices.
To find the name of USB & its current partions:
Code:
1. #:fdisk -l
This will give you the name of USB only:
Code:
#: demesg | tail to see name of usb device
The making of the Live USB must be done while USB is unmounted!
Code:
#: umount /dev/sdd
Formatting USB back to Normal to make sure you have a working vfat.
Code:
#: mkfs.vfat /dev/sdx -I
Creating a Live USB ( Drive Needs to be unmounted )
Code:
 
bash-4.2# dd bs=4M if=/home/user/Downloads/ubuntu-14.04.5-desktop-amd64.iso |pv| dd of=/dev/sdd
I installed slackbuild pv-1.4.12.tar.bz2 - Used as above it provides the copy progress:
Code:
360+1 records in[3.04MiB/s] [                                                           <=>]
360+1 records out
1513308160 bytes (1.5 GB) copied, 350.936 s, 4.3 MB/s
1.41GiB 0:05:50 [4.11MiB/s] [                                                         <=>  ]
2955680+0 records in
2955680+0 records out
1513308160 bytes (1.5 GB) copied, 350.952 s, 4.3 MB/s
bash-4.2#
The above worked using Slackware64-14.1 to create any live usb distro of your choice. Used the terminal because it is direct, clean & uncumbered by extra Frontend GUI software that may or may not work.
Question now is "What commands do I need to add "Persistent" Features to my live 16GB USB? Following is my current USB:
Code:
Disk /dev/sdd: 15.7 GB, 15664676864 bytes
255 heads, 63 sectors/track, 1904 cylinders, total 30595072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x60dfafa1

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           0     2156351     1078176    0  Empty
/dev/sdd2         2135488     2140031        2272   ef  EFI (FAT-12/16/32)

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd1'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd1: 1104 MB, 1104052224 bytes
255 heads, 63 sectors/track, 134 cylinders, total 2156352 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x60dfafa1

     Device Boot      Start         End      Blocks   Id  System
/dev/sdd1p1   *           0     2156351     1078176    0  Empty
/dev/sdd1p2         2135488     2140031        2272   ef  EFI (FAT-12/16/32)
bash-4.2#
 
Old 06-10-2018, 11:47 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,328
Blog Entries: 7

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
i don't think you can create a Ubuntu system with slackware tools, or vice versa.
 
Old 06-11-2018, 12:41 PM   #3
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 873

Original Poster
Rep: Reputation: 51
Bash or linux terminals arent OS specific tools they are linux tools while commands may have slight variances. The Ubuntu Live USB works fine, question is how do I proceed to add Persistent Feature without using extra GzuI front apps? Thanks
 
Old 06-11-2018, 02:34 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,015

Rep: Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569
Basically it involves creating a partition of any size you want with a Linux filesystem (ext4) and labeling it casper-rw. You then need to add the word persistent to the linux line in the menuentry of grub.cfg if you are using Grub. These steps apply only to Ubuntu and major derivatives. You need to have Grub installed in a separate boot partition which you can write to. A standard method of using dd (for example) to create a bootable iso won't work as these are by default read-only. You can create a small boot partition and install Grub, then manually creating boot entries (menuentries). You can then simply copy the iso file to another partition and boot it directly. This will work for the major Ubuntus with persistence as above. The link below gives a partial explanation of this process using GParted. Obviously, there is not need to use it as other toold can be used from a terminal to do the same.

https://usbubuntu.wordpress.com/make-it-persistent/
 
1 members found this post helpful.
Old 06-11-2018, 02:34 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,015

Rep: Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569Reputation: 1569
Basically it involves creating a partition of any size you want with a Linux filesystem (ext4) and labeling it casper-rw. You then need to add the word persistent to the linux line in the menuentry of grub.cfg if you are using Grub. These steps apply only to Ubuntu and major derivatives. You need to have Grub installed in a separate boot partition which you can write to. A standard method of using dd (for example) to create a bootable iso won't work as these are by default read-only. You can create a small boot partition and install Grub, then manually creating boot entries (menuentries). You can then simply copy the iso file to another partition and boot it directly. This will work for the major Ubuntus with persistence as above. The link below gives a partial explanation of this process using GParted. Obviously, there is not need to use it as other toold can be used from a terminal to do the same.

https://usbubuntu.wordpress.com/make-it-persistent/
 
1 members found this post helpful.
Old 06-11-2018, 04:18 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 18,466

Rep: Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769Reputation: 2769
"creating a partition "

Never heard but it may work. The live to usb deals with persistence can use a file to sort of cheat an install. Not a true install but a casper-rw file or maybe as above a partition to safe data.

A better way is simply to install your distro to a usb just as if it were a hard drive. (my opinion)
 
Old 07-07-2018, 04:31 PM   #7
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-14.1
Posts: 873

Original Poster
Rep: Reputation: 51
Basically, I needed Ubuntu to unbrick Doogee Mix MTK garbage, so I used mkusb tool in ubuntu 14.04.5 which was easy with to live ubuntu usb pendrives. Here are the instructions if anyone else needs them:
https://help.ubuntu.com/community/mkusb/persistent
 
  


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
[SOLVED] Problem with persistent usb live -Snake- Linux - Software 18 11-01-2016 04:33 PM
LXer: Installing Ubuntu on a Persistent Live USB LXer Syndicated Linux News 0 09-15-2015 07:01 AM
Will Deleting 70-persistent-cd.rules and 70-persistent-net.rules Work As a "Live USB" Konphine Linux - General 1 10-09-2011 03:55 PM
[Help] Ubuntu 6.06's Persistent Feature DaViD_BRaNDoN Ubuntu 6 10-05-2006 11:01 AM

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

All times are GMT -5. The time now is 10:49 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