LinuxQuestions.org
Review your favorite Linux distribution.
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 03-10-2019, 08:34 PM   #16
raymond0517
Member
 
Registered: Mar 2019
Posts: 37

Original Poster
Rep: Reputation: Disabled

I was trying hard to edit the live.cfg in /media/user/'Kali Live',
by appending 'persistence' in the line "APPEND initrd=/live/initrd.img-4.9.0-3-amd64 boot=live components" as instructed by the link "http://www.fabbnet.net/Live_Persistent.htm",

but encounter "read-only file system" error,
kept on google till now to try to resolve it to no avail.

That is thus far what I have been working on
 
Old 03-10-2019, 08:56 PM   #17
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
The link in your first post worked for me.
You don't need to do that. According to the article link above, all you need to do is create the partition with proper label and persistence.conf file within that partition and persistence will automatically be enabled upon every reboot after.

As mentioned in one of my previous posts, nothing else needs to be edited.
 
Old 03-10-2019, 10:18 PM   #18
raymond0517
Member
 
Registered: Mar 2019
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thank you very much Brains.

I follows the link in my first post,
without first going through the Kali Linux install,

created sdb3, now fdisk -l shows

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 64 2097151 2097088 1024M 17 Hidd
/dev/sdb2 2097152 2098559 1408 704K 1 FAT1
/dev/sdb3 2098560 30660607 28562048 13.6G 83 Linu

this is by executing the following

end=15.4gb
read start _ < <(du -bcm ~/Downloads/kali-linux-light-2019.1a-i386.iso | tail -1); echo $start
sudo parted /dev/sdb mkpart primary $start $end

however,
parted command does inform me the recommended range for sdb3 partition may have performance issue later.

Also it warned me to also 'update' /etc/fstab

I am not sure about the above, just proceed on with

mkfs.ext3 -L persistence /dev/sdb3
e2label /dev/sdb3 persistence
mkdir -p /mnt/my_usb
mount /dev/sdb3 /mnt/my_usb
echo "/ union" > /mnt/my_usb/persistence.conf
umount /dev/sdb3

Then, I booted from USB, went into persistence session,

copy /etc direcory to /etc(copy1)

resize firefox, and set some preference settings

shutdown
and log in again to a new persistence session,

yes, changes preserved.

Many thanks,

got to catch some sleep
 
Old 03-11-2019, 01:06 AM   #19
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by raymond0517 View Post
parted command does inform me the recommended range for sdb3 partition may have performance issue later.

Also it warned me to also 'update' /etc/fstab

I am not sure about the above
The "recommended range for sdb3" part may have to do with the partition not being properly aligned, most likely because the other two partitions are copies of the partitions in the Kali ISO file, which don't have to conform to disk geometry. Because the partition will only be written to, no deletes, it's not an issue.

As for the "'update' /etc/fstab", this only applies if it were to be a data partition you would want access to in which case you would include an entry for it in /etc/fstab so it's mounted automatically at boot time. It will be automatically mounted as a persistence partition on every boot, so no need to add it to /etc/fstab.
 
  


Reply

Tags
configuration, kali linux, persistence



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 get a Kali Linux LUKS master key (alias: is Kali encrypted persistence safe?) LXer Syndicated Linux News 0 01-06-2019 06:01 PM
Problem Upgrading Kali Linux Persistence USB AceKnight Linux - Laptop and Netbook 3 11-08-2016 11:14 AM
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 05:10 AM
What is up with Persistence feature on Kali Linux????? eurovpn Linux - Software 4 11-16-2014 12:57 PM

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

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