View Issue Details

IDProjectCategoryView StatusLast Update
0003349Kali LinuxGeneral Bugpublic2016-06-09 07:03
Reporterrtng Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionno change required 
Product Version2016.1 
Summary0003349: usb-live multiple persistence: nonencrypted persistence mode is not peristence
Description

AMD64 Lenovo T420

following every step of multiple-persistence guide i found that the unencrypted persistence store does not remain persistant. Neither with Kali-light nor Kali-full img.
i did this several times to prevent a useless bug-report.
i couldnt find any posts about this in www so i guess that not much people gave multiple persistence a try until now?

thank you for help

Activities

rhertzog

rhertzog

2016-06-08 15:18

administrator   ~0005347

Where is this "multiple-persistence guide"?

Can you copy/paste the commands you used to create the various filesystems and the parameters you used to boot?

Without this, your bug report is useless as we can't try to reproduce your problem.

rtng

rtng

2016-06-08 15:39

reporter   ~0005348

the guide is from kali-webpage:
https://www.offensive-security.com/kali-linux/usb-multiple-persistent-stores
this time i choose bigger partititions fitting to my usb-stick:

/rtng-ThinkPad-T420 ~ # cd /home/rtng/Downloads/
rtng-ThinkPad-T420 Downloads # dd if=kali-linux-light-2016.1-amd64.iso of=/dev/sdb bs=1M
1011+1 Datensätze ein
1011+1 Datensätze aus
1060241408 Bytes (1,1 GB) kopiert, 104,084 s, 10,2 MB/s
rtng-ThinkPad-T420 Downloads # parted
GNU Parted 2.3
/dev/sda wird verwendet
Willkommen zu GNU Parted! Rufen Sie »help« auf, um eine Liste der verfügbaren
Befehle zu erhalten.
(parted) print devices
/dev/sda (1000GB)
/dev/sdb (62,6GB)
(parted) select /dev/sdb
/dev/sdb wird verwendet
(parted) print
Modell: SanDisk Ultra (scsi)
Festplatte /dev/sdb: 62,6GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: msdos

Nummer Anfang Ende Größe Typ Dateisystem Flags
1 32,8kB 970MB 970MB primary boot, versteckt
2 970MB 1060MB 90,3MB primary fat16

(parted) mkpart primary 1060 22000
Warnung: Die Partition ist nicht sauber ausgerichtet, gemessen an bester
Performance.
Ignorieren/Ignore/Abbrechen/Cancel? Ignorieren
(parted) quit
Informationen: Möglicherweise müssen Sie /etc/fstab anpassen.

rtng-ThinkPad-T420 Downloads # cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3

WARNING!

Hiermit überschreiben Sie Daten auf /dev/sdb3 unwiderruflich.

Are you sure? (Type uppercase yes): YES
Passsatz eingeben:
Verify passphrase:
Befehl erfolgreich.
rtng-ThinkPad-T420 Downloads # cryptsetup luksOpen /dev/sdb3 my_usb
Geben Sie den Passsatz für /dev/sdb3 ein:
rtng-ThinkPad-T420 Downloads # mkfs.ext3 /dev/mapper/my_usb
mke2fs 1.42.9 (4-Feb-2014)
Dateisystem-Label=
OS-Typ: Linux
Blockgröße=4096 (log=2)
Fragmentgröße=4096 (log=2)
Stride=0 Blöcke, Stripebreite=0 Blöcke
1277952 Inodes, 5111733 Blöcke
255586 Blöcke (5.00%) reserviert für den Superuser
Erster Datenblock=0
Maximale Dateisystem-Blöcke=4294967296
156 Blockgruppen
32768 Blöcke pro Gruppe, 32768 Fragmente pro Gruppe
8192 Inodes pro Gruppe
Superblock-Sicherungskopien gespeichert in den Blöcken:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

Platz für Gruppentabellen wird angefordert: erledigt
Inode-Tabellen werden geschrieben: erledigt
Erstelle Journal (32768 Blöcke): erledigt
Schreibe Superblöcke und Dateisystem-Accountinginformationen: erledigt

rtng-ThinkPad-T420 Downloads # e2label /dev/mapper/my_usb persistence
rtng-ThinkPad-T420 Downloads # mkdir -p /mnt/my_usb
rtng-ThinkPad-T420 Downloads # mount /dev/mapper/my_usb /mnt/my_usb
rtng-ThinkPad-T420 Downloads # echo "/ union" > /mnt/my_usb/persistence.conf
rtng-ThinkPad-T420 Downloads # umount /dev/mapper/my_usb
rtng-ThinkPad-T420 Downloads # cryptsetup luksClose /dev/mapper/my_usb
rtng-ThinkPad-T420 Downloads # parted /dev/sdb
GNU Parted 2.3
/dev/sdb wird verwendet
Willkommen zu GNU Parted! Rufen Sie »help« auf, um eine Liste der verfügbaren
Befehle zu erhalten.
(parted) print
Modell: SanDisk Ultra (scsi)
Festplatte /dev/sdb: 62,6GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: msdos

Nummer Anfang Ende Größe Typ Dateisystem Flags
1 32,8kB 970MB 970MB primary boot, versteckt
2 970MB 1060MB 90,3MB primary fat16
3 1060MB 22,0GB 20,9GB primary

(parted) mkpart primary 22000 62000
(parted) quit
Informationen: Möglicherweise müssen Sie /etc/fstab anpassen.

rtng-ThinkPad-T420 Downloads # mkfs.ext3 /dev/sdb4
mke2fs 1.42.9 (4-Feb-2014)
Dateisystem-Label=
OS-Typ: Linux
Blockgröße=4096 (log=2)
Fragmentgröße=4096 (log=2)
Stride=0 Blöcke, Stripebreite=0 Blöcke
2444624 Inodes, 9765632 Blöcke
488281 Blöcke (5.00%) reserviert für den Superuser
Erster Datenblock=0
Maximale Dateisystem-Blöcke=4294967296
299 Blockgruppen
32768 Blöcke pro Gruppe, 32768 Fragmente pro Gruppe
8176 Inodes pro Gruppe
Superblock-Sicherungskopien gespeichert in den Blöcken:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624

Platz für Gruppentabellen wird angefordert: erledigt
Inode-Tabellen werden geschrieben: erledigt
Erstelle Journal (32768 Blöcke): erledigt
Schreibe Superblöcke und Dateisystem-Accountinginformationen: erledigt

rtng-ThinkPad-T420 Downloads # e2label /dev/sdb4 work
rtng-ThinkPad-T420 Downloads # mkdir -p /mnt/usb
rtng-ThinkPad-T420 Downloads # mount /dev/sdb4 /mnt/usb
rtng-ThinkPad-T420 Downloads # echo "/ union" > /mnt/usb/persistence.conf
rtng-ThinkPad-T420 Downloads # umount /mnt/usb

rtng

rtng

2016-06-08 15:40

reporter   ~0005349

sorry my system speaks german

rtng

rtng

2016-06-08 15:49

reporter   ~0005350

sorry if i forgot things, i sent this bug before but my browser failed to send.

maybe important, that the encrypted store remains persistant.
i even managed to create two encrypted stores,wich remain, but that is not the same, because work is missing then.

rtng

rtng

2016-06-08 15:51

reporter   ~0005351

what do you mean with parameters i used to boot?

rhertzog

rhertzog

2016-06-08 18:45

administrator   ~0005352

I mean that it's normal that only one persistence partition is used. By default it uses filesystems named "persistence" but if you want to use your other "work" persistence filesystem then you have to add "persistence-label=work" to your boot options...

I think that there is no bug here but only a misunderstanding from your part here.

rtng

rtng

2016-06-08 20:08

reporter   ~0005353

Last edited: 2016-06-08 20:20

ok, you may be right, that i misunderstand something...
of course i dont think that i can boot two persistence at one time, but the title "multiple-persistence" makes me think that i can easily choose inbetween...
stupid me then.
i have to admit, that i dont know yet how to add "persistence-label=work" to my boot options.
At the pic on https://www.offensive-security.com/kali-linux/usb-multiple-persistent-stores/ i can see:
".linux /live/vmlinuz/ boot-live noconfig=sudo username=root hostname=kali persistence initrd=/live/initrd.img persistence-label=work"
do you mean that?
How to do this? i couldnt find any option to use a shell at boot time...
can you please show me or give me a useful link, how to add boot-options???
thank you

rtng

rtng

2016-06-08 20:10

reporter   ~0005354

as yo could see above i already did:
rtng-ThinkPad-T420 Downloads # e2label /dev/sdb4 work

rhertzog

rhertzog

2016-06-09 07:03

administrator   ~0005356

You select the appropriate entry in the boot menu and then you press TAB. You will then be able to add the supplementary option.

Closing this ticket since this is not a bug. Next time, please ask on a support forum first before opening a ticket. Thank you.

Issue History

Date Modified Username Field Change
2016-06-08 15:04 rtng New Issue
2016-06-08 15:18 rhertzog Note Added: 0005347
2016-06-08 15:19 rhertzog Status new => feedback
2016-06-08 15:39 rtng Note Added: 0005348
2016-06-08 15:39 rtng Status feedback => new
2016-06-08 15:40 rtng Note Added: 0005349
2016-06-08 15:49 rtng Note Added: 0005350
2016-06-08 15:51 rtng Note Added: 0005351
2016-06-08 18:45 rhertzog Note Added: 0005352
2016-06-08 20:08 rtng Note Added: 0005353
2016-06-08 20:10 rtng Note Added: 0005354
2016-06-08 20:20 rtng Note Edited: 0005353
2016-06-09 07:03 rhertzog Note Added: 0005356
2016-06-09 07:03 rhertzog Status new => closed
2016-06-09 07:03 rhertzog Assigned To => rhertzog
2016-06-09 07:03 rhertzog Resolution open => no change required