RechercheTech / mss-doc

My sCool Server Documentation
http://mss-doc.readthedocs.io/
0 stars 4 forks source link

Live usb creation with persistence #51

Open intelliant01 opened 7 years ago

intelliant01 commented 7 years ago

Document the process for live usb creation with persistence as it is a much desired feature.

Ref: https://github.com/RechercheTech/mss/issues/38

intelliant01 commented 6 years ago

@geets04 Please verify this and then document it.

These steps should have worked -

  1. Connect to MSS via remmina / Admin-Desktop + mssadmin login
  2. Open Terminal
  3. sudo su -
  4. export cowsize=1000M (This is the size of the persistent storage area on the pen drive. Default is 500M)
  5. Try both of these independently and see if the bootable pen-drive is being created - a. live-fat-stick --ubuntu-persistent /home/mssadmin/Li-f-e.iso /dev/sdXY b. live-grub-stick --ubuntu-persistent /home/mssadmin/Li-f-e.iso /dev/sdXY Where X is the device identifier such as a,b, c... and Y is the partition identifier such as 1, 2, 3,... for example: /dev/sdb1

There seems to be some problem since it did not work last time we tried during a demo.

cyberorg commented 6 years ago

New image has the fix, for the old mss, either of the following should work

ln -s /home/mssadmin/Li-f-e.iso /home/mssadmin/Linux-for-Education-16.04.3-amd64.iso live-grub-stick --ubuntu-persistent /home/mssadmin/Linux-for-Education-16.04.3-amd64.iso /dev/sdXY

or

cd /usr/bin/ rm live-grub-stick wget https://raw.githubusercontent.com/cyberorg/live-fat-stick/master/live-grub-stick chmod +x live-grub-stick live-grub-stick --ubuntu-persistent /home/mssadmin/Li-f-e.iso /dev/sdXY

geets04 commented 6 years ago

Tried above process using live-grub-stick --ubuntu-persistent /home/mssadmin/Li-f-e.iso /dev/sdXY . But cow-folder created in usb shows 500 Mb size even after using export cowsize=1000M during installation.

And when tried with live-fat-stick --ubuntu-persistent /home/mssadmin/Li-f-e.iso /dev/sdXY terminal shows error with "can't create a cow file" and persistence didn't apply with above command. Is persistence possible with live-fat-stick ? as it is available in Help .

cyberorg commented 6 years ago

Pastebin the output of: export cowsize=1000M bash -x /usr/bin/live-grub-stick --ubuntu-persistent /home/mssadmin/Li-f-e.iso /dev/sdXY

and export cowsize=1000M bash -x /usr/bin/live-grub-stick --ubuntu-persistent /home/mssadmin/Li-f-e.iso /dev/sdXY

cyberorg commented 6 years ago

You posted on wrong issue(https://github.com/RechercheTech/mss/issues/38#issuecomment-347801559)?

That does not look like new installation, on old install follow: https://github.com/RechercheTech/mss-doc/issues/51#issuecomment-333031390 replace live-grub-stick with live-fat-stick to update that script