NCP Documentation: NCP on Raspberry PI 4 booting from USB (no microSD needed)

@JimmyKater , @rakekniven or any other authorized person, could you turn the post above into a wiki? Thanks!


The second half of the post above is basically a copy of the NCP docs page with some minor editing from me.
__

And here are some of the points I don’t understand yet: (whenever I get an Answer I’ll add clarification/explanation to the wiki above)

  1. I understand the first part about updating the bootloader. But what I don’t understand is why, after updating it I still need to boot from a microSD and can not use the USB media with the flashed NCP image right away.

  1. Under point 3. in Setting-up the USB as boot media => ROOT_PATH & BOOT_PATH
    is written in capital letters, does that mean that I need to fill in my root and my boot path, or do I type that command 1:1 into the terminal?

  1. After I have set up NCP this way, do I need to do something about the datadir?
    The ncp wizard that shows up whenever we set up a new instance gives the option to move the datadir to a usb media and format it as BTRFS.
    I will have the whole NCP instance on my 1TB SSD. Do I need to make partitions and format them or do I just leave it as it is?

It is a wiki now. Will move it to a better category later.

1 Like

moved to How to

Right now I have flashed NextCloudPi_RPi_11-27-20 onto a microSD and a SSD.
I want to use this SSD for /boot /root and for the datadir. Can I do that without any further set up or do I need to format a partition for the datadir or something else?

thx

Sorry, I guess I’m not really explaining well what I want…


After flashing the NextCloudPi_RPi_11-27-20.img to a SSD drive the drive looks like this:

Screenshot 1

On the bottom you see 235.47 GB unallocated space.


If I boot from this drive and use the wizard it will ask to move the data to a USB drive.

Screenshot 2

Obviously, I will choose No as I’m already having everything on the USB drive.

BUT,

I assume NCP will be using the unallocated space for my data, is that correct?

Is it correct that I do not need to make any manual partitioning?
(will it allocate disk space to data, NC-Apps, other software i.e. PiVPN, PiHole automatically from the unallocated space?

No ncp can not use unallocated space
No it is not correct, manual resizing of the partition sdb2 is required.
You need to use a program like gparted (Linux) to resize sdb2, to be able to use the space.

Once you boot from sdb, as you said obviously, there is no need to move the datadir.

1 Like

Learned some new stuff.

  • Using the latest bootloader I can simply flash the current NCP image to the SSD, plug it into the Pi and boot from it, no need for a microSD at any time.

  • After booting and activating ncp it will automatically allocate the empty space to rootfs.

Screenshot_2021-01-01_14-12-01

I will be updating the wiki accordingly.

1 Like

Nice, I didn’t realize it could ! Thanks for contribution :heart:

3 posts were split to a new topic: Basic Problem setting up NCP on a RPi4

After updating eeprom and flashing latest image to an USB-SSD, I get some errors during boot:
“Timeout waiting for device dev/disk/by-partitionid…”
“Dependency failed for File system check”
“Dependency failed for /boot”
“Dependency failed for unattended upgrades shutdown”
“Dependency failed for Local File System”
The SSD has a boot partition and a rootfs partition.
What am I missing?

Did you solve it by now?

I assume you have tried more than once?
Try using a USB stick just to eliminate any issues with the SSD.

Yeah, I solved it finally but ran into other issues. First, the error while booting was related to a poor quality or unsupported USB3toSATA-Converter. I changed it and it worked then.
After sucessfull deployment I did all necessary configurations and nextcloud ran for approx. 1 week.
Currently I am running into ext4-fs errors. Haven’t had the time looking into this, i’m a bit annoyed by now…

:see_no_evil:

good to hear that you solved it.
…but sorry to hear that the problems did not stop. Hope you can solve them ASAP without loosing all nerves. :sweat_smile:

Hello. I am having problems to boot NCP from a SSD in a Raspberry Pi 4. I followed the step of the guide. So, I updated the bootloader using those commands. Also, I formatted the SSD to ext4 and I used Etcher to install the latest image of NCP. However, when I turn the Pi on, it doesn’t detect the SSD, so it asks me for an SD card.

Any idea of how to boot from SSD?

Thanks.

strange…
Do you have a SD card lying around?
What does it say if you type:
sudo rpi-eeprom-update


Change Boot Order Manually

If there are no updates use
sudo raspi-config

and enable USB Boot (it should do this by default… actually)




If this still does not work:

  • Are you using the correct .img for your SBC from own your bits? (I once made the mistake to donwload berryboot… that did not work)
  • Re-download the .img, it could be that something went wrong when downloading it. (check md5sum)
  • Try to flash again
  • Use another USB media to eliminate a faulty SSD (cable, case or drive itself)
  • run in a circle and cry out loud… (not sure it will work, but it will solve some of the frustration)

btw

No need to do that, if you flash using etcher it will format the drive and once it boots from it, it will put all in place automatically. Just flash and plug in… actually

1 Like

I changed the boot order as you said and it worked!

It should have boot from the SSD anyway since there was no SD card, but…

Thanks!

1 Like

Thank for the info.

I crashed a San Disk 128 gb card 6 months ago on my Raspberry Pi 4. I have used San Disk memory cards for 20 years and never had a problem with them (I think this was a bootleg one I bought on Amazon that wasn’t really a San Disk card).

These cards weren’t intended to be used to boot a computer and it is a good idea to clone it in case of failure.

" * Warning: You will not be able to format any USB device any more using the NCP web panel and will have to do it manually by using the terminal."

Can you help a newbie out with some lines to use in the SSH window to format the external USB 3.0 drive that I want to put the data on, a new Toshiba Canvio 4TB HDD?

I’m using an Argon One case with an SSD in the basement. I had no troubles at all booting from that drive with no SD. But as you point out, now I can’t use the NC web interface to format the data drive.

Hi, sorry for not responding. Did you solve it by now, or are you still looking for help?