Script for Root-Installation to NAND, SATA & USB

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Script for Root-Installation to NAND, SATA & USB

Post by mike175de »

Hey Fourdee,

maybe this is one interesting little thing you might to check for the DietPi-System:

How to install to NAND, SATA & USB? http://www.armbian.com/documentation/ (You have to scroll a little to find that part in the documentation.)

The Armbian-Distro uses a little script to move all the content of the root-path / to an USB-Drive, so that the SD-Card is only used to boot the system. Everything else an after uses the USB-Drive.

Maybe you can check the distro and "reengineer" the script for DietPi.

I think a lot of your users are looking forward for such a solution.

Greets, mike175de
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Script for Root-Installation to NAND, SATA & USB

Post by k-plan »

Hi mike,

here is the source of the script: nand-sata-install.sh
But the focus is on Allwinner based ARM devices.

It's not so easy to get it on work for so many different devices like RPi A, RPi B, RPi B+, RPi 2, RPi 3, Odroid C0, C1, C1+, C2, XU3/XU4, OrangePI PC, Pine A64, ...

Where are as well some other solution for special devices like RPi

https://github.com/framps/raspberryTools - but it's need Python (powered by framp)

or as shell script: https://github.com/framps/raspberryTool ... iSD2USB.sh - powered by framp form http://www.linux-tips-and-tricks.de

But if your really need or want it, feel free and create a ticket on: https://github.com/Fourdee/DietPi/issues
So developers can have a look and it will be in focus.
Last edited by k-plan on Wed Aug 03, 2016 8:25 pm, edited 2 times in total.
Reason: delete: raspiSD2USB.sh.zip - new link to script on framps github page
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
framp

Re: Script for Root-Installation to NAND, SATA & USB

Post by framp »

I just detected there is still need for raspiSD2USB.sh even the Python version got much more functionality. I added the latest version I have to github. Please use this one instead of the attached version in the zip file. In addition feel free to fork and create pull requests ;)
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Script for Root-Installation to NAND, SATA & USB

Post by k-plan »

Hi framp,

many thanks to put your bash script on github.

Yes correct, your bash script is old and the new python script has more much more functionality.

Code: Select all

Shell version of raspiSD2USB is old and is not maintained any more. Please use the Python version raspiSD2USB.py if possible
framp wrote:Please use this one instead of the attached version in the zip file.
Only reason for linking it here is that no Python is installed on DietPi per default. Sorry, will delete the old zip file now.

Thanks to be appreciation and your supply.

cu
k-plan
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
framp

Re: Script for Root-Installation to NAND, SATA & USB

Post by framp »

Hi k-plan,
k-plan wrote:...Only reason for linking it here is that no Python is installed on DietPi per default...
That's what I thought immediately when I read your post, then grabbed the latest shell code version on my local git and published it on github. I don't maintain the shell code any more but it seems to be useful for DietPi. Volunteers can fork and enhance the script and at the end create a pull request so I can merge the new code. Maybe somebody adds the additional function of the Python version which is missing to the script :roll: In particular the support for multiple disks with GPT is useful.
...Sorry, will delete the old zip file now...
Great. That way everybody will use the latest (maybe enhanced) shell version.

Cu framp
Post Reply