Go to advanced search

by RonR
Mon Oct 21, 2019 9:54 pm
Forum: Advanced users
Topic: Running Raspbian from USB Devices : Made Easy
Replies: 138
Views: 42312

Re: Running Raspbian from USB Devices : Made Easy

Why not just use the -x one --one-file-system option for rsync? That will copy everything in the selected file system including mount points, but not anything that is mounted in them - that excludes anything in /dev, /sys, /proc etc... Ok, so it will copy the contents of ./lost+found, but that shou...
by RonR
Mon Oct 21, 2019 4:49 pm
Forum: General discussion
Topic: Raspberry Pi 4 usb boot?
Replies: 344
Views: 70319

Re: Raspberry Pi 4 usb boot?

pepeEL wrote:
Mon Oct 21, 2019 10:42 am
LTolledo wrote:
Mon Oct 21, 2019 10:19 am
As a temporary measure am also booting my RPi4B-4G with M.2 SSD using RonR's script to set it up...

no real problems so far..... :D
Please share this script with manual how do it?

Running Raspbian from USB Devices : Made Easy
by RonR
Mon Oct 21, 2019 4:39 pm
Forum: Advanced users
Topic: Running Raspbian from USB Devices : Made Easy
Replies: 138
Views: 42312

Re: Running Raspbian from USB Devices : Made Easy

LTolledo wrote:
Mon Oct 21, 2019 10:09 am
are there any other folders that are intentionally excluded from the rsync process?

/dev
/media
/mnt
/proc
/run
/sys
/tmp
/lost+found
by RonR
Mon Oct 21, 2019 7:42 am
Forum: General discussion
Topic: Raspberry Pi 4 usb boot?
Replies: 344
Views: 70319

Re: Raspberry Pi 4 usb boot?

jj_0 wrote:
Mon Oct 21, 2019 7:33 am
The only advantage I see is that booting entirely from USB frees up the SD-card slot.

And if you really need the SD card slot for some other use, you can remove the SD card that's used for booting as long as you replace it before trying to boot to USB again.
by RonR
Sun Oct 20, 2019 7:14 pm
Forum: Advanced users
Topic: Running Raspbian from USB Devices : Made Easy
Replies: 138
Views: 42312

Re: Running Raspbian from USB Devices : Made Easy

my Raspbian Buster on the microSD was already fully setup, including required mount points for network shares and its symlinks to desktop after completing the script and rebooting.... the mount points in /mnt were not included... therefore the symlinks were invalid... /media and /mnt are intentiona...
by RonR
Tue Oct 15, 2019 5:12 pm
Forum: Advanced users
Topic: Change PTUUID/PARTUUID on an SD card or a USB device
Replies: 17
Views: 1084

Re: Change PTUUID/PARTUUID on an SD card or a USB device

But actually I am trying to run the raspberry pi 4 from SSD. Im am working on that now 4 days. After changing the partuuid for the sd card and changing the cmdline.txt the raspberry would not start any more. usb-boot ( Running Raspbian from USB Devices : Made Easy ) will take care of the PTUUID/PAR...
by RonR
Mon Oct 14, 2019 2:55 am
Forum: Advanced users
Topic: Running Raspbian from USB Devices : Made Easy
Replies: 138
Views: 42312

Re: Running Raspbian from USB Devices : Made Easy

I installed the latest Raspbian Lite - 2019-09-26-raspbian-buster-lite.zip to an SD card, and ran the script which copied the files to the SSD. I downloaded usb-boot (to make sure I'm using the same one you used) and did the same thing (except I used a USB 3 flash drive as I don't have a spare SSD ...
by RonR
Mon Oct 14, 2019 1:13 am
Forum: Advanced users
Topic: Running Raspbian from USB Devices : Made Easy
Replies: 138
Views: 42312

Re: Running Raspbian from USB Devices : Made Easy

HypnoToad wrote:
Mon Oct 14, 2019 1:05 am
Does this script work OK with the Raspberry Pi 4?
...
Have I done somthing wrong here?

Yes, it works fine with the Raspberry Pi 4

It appears you removed the SD card:

[ TIME ] Timed out waiting for device /dev/mmcblk0p1
by RonR
Sun Oct 13, 2019 6:28 pm
Forum: General discussion
Topic: HARD DISK BOOT RASPBERRY PI 4
Replies: 1
Views: 443

Re: HARD DISK BOOT RASPBERRY PI 4

alevans19 wrote:
Sun Oct 13, 2019 5:22 am
Next use the free program gparted to expand and resize the second partition on the hard disk.

Or simply run usb-boot and you're done: Running Raspbian from USB Devices : Made Easy
by RonR
Sat Oct 12, 2019 5:49 pm
Forum: Advanced users
Topic: Change PTUUID/PARTUUID on an SD card or a USB device
Replies: 17
Views: 1084

Re: Change PTUUID/PARTUUID on an SD card or a USB device

HeadHunter wrote:
Sat Oct 12, 2019 2:47 pm
Sry but with the script i get a permission denied. Can you help me?
I have root acces

Did you make the script executable?:

Code: Select all

chmod +x set-ptuuid
by RonR
Sat Oct 12, 2019 3:05 am
Forum: Advanced users
Topic: Running Raspbian from USB Devices : Made Easy
Replies: 138
Views: 42312

Re: Running Raspbian from USB Devices : Made Easy

You seeing any performance degradation after today's update? It included a bootloader update. It could just me. But it feels a little off? It would not necessarily be due to usb-boot. I don't believe I'm seeing anything different or unusual here. I'll be doing some FreePBX builds this weekend and w...
by RonR
Fri Oct 11, 2019 5:28 pm
Forum: General discussion
Topic: How can I monitor power supplied to my Pi 4B?
Replies: 15
Views: 440

Re: How can I monitor power supplied to my Pi 4B?

pi-tastic wrote:
Fri Oct 11, 2019 3:24 pm
i tried to run this with
./pistatus
and it just does nothing.

That's exactly what you want: No news is good news.
by RonR
Fri Oct 11, 2019 3:07 am
Forum: General discussion
Topic: How can I monitor power supplied to my Pi 4B?
Replies: 15
Views: 440

Re: How can I monitor power supplied to my Pi 4B?

I have 5V/2.4A powering my Raspberry Pi 4B and it appears to be working fine but I'd like to monitor if power supply is getting low and the device needs more power. How can I do this? Copy/paste the following to a file named pistatus and make it executable (chmod +x pistatus): #!/bin/bash STATUS=$(...
by RonR
Wed Oct 09, 2019 9:31 pm
Forum: General discussion
Topic: Switch or not
Replies: 21
Views: 628

Re: Switch or not

I've been using these for a long time with no problems whatsoever:

Yuconn Micro USB with On/Off Switch

I'm using a MicroUSB to C adapter with one on a Raspberry Pi 4.

They now have one that is USB-C:

Yuconn Type-C with On/Off Switch
by RonR
Tue Oct 08, 2019 7:10 pm
Forum: Beginners
Topic: resize fs at startup not working
Replies: 7
Views: 290

Re: resize fs at startup not working

If fact, I have patched and recreate the resize2fs_once service A problem was introduced into the latest Raspbian images ( 2019-09-26 Raspbian Image PTUUID ) that causes every SD card and USB device created from those images to have the same PTUUID/PARTUUID. UUID stands for 'universally unique iden...
by RonR
Tue Oct 08, 2019 9:31 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 24
Views: 2545

Re: Image File Utilities

image-utils.zip (in the first post of this topic) has been updated.

Backups created with image-backup now auto expand the root filesysystem on the first boot. Manual resizing with raspi-config is no longer required regardless of whether the backup is restored to an SD card or a USB device.
by RonR
Tue Oct 08, 2019 7:23 am
Forum: Beginners
Topic: resize fs at startup not working
Replies: 7
Views: 290

Re: resize fs at startup not working

Raspbian's auto expansion of the root filesystem on the first boot is not very pretty (I'm being kind). /usr/lib/raspi-config/init_resize.sh runs parted to resize the root partition but parted does not resize the ext4 filesystem in that partition. There's a service (/etc/init.d/resize2fs_once) insta...
by RonR
Sun Oct 06, 2019 8:42 pm
Forum: Beginners
Topic: Hybrid (SD + SSD) boot 101?
Replies: 8
Views: 442

Re: Hybrid (SD + SSD) boot 101?

Just did that. The thing even booted to the Desktop. Only my keyboard didn't work. :( Maybe because it's a wireless one. Needed a second machine to enable ssh and login remotely to run apt. No problem, if you are aware of that. You need it anyway to restore the old cmdline.txt It's your choice. If ...
by RonR
Sun Oct 06, 2019 5:45 pm
Forum: Beginners
Topic: resize fs at startup not working
Replies: 7
Views: 290

Re: resize fs at startup not working

Do you have an example of image-mount usage ? As documented in the Image File Utilities post: image-mount: image-mount mounts a standard 'raw' image file to allow it to be read or written as if it were a device. Usage is: image-mount imagefile mountpoint [W95|Linux] where W95 mounts the BOOT partit...
by RonR
Sun Oct 06, 2019 5:22 pm
Forum: Beginners
Topic: Hybrid (SD + SSD) boot 101?
Replies: 8
Views: 442

Re: Hybrid (SD + SSD) boot 101?

If you ever get into trouble, you still have a working Raspbian system on the SD card to fall back on for trouble-shooting. usb-boot at Running Raspbian from USB Devices : Made Easy will get you there in short order. Did you ever boot a system where boot partition and root partition are out of sync...
by RonR
Sun Oct 06, 2019 7:53 am
Forum: Advanced users
Topic: Change PTUUID/PARTUUID on an SD card or a USB device
Replies: 17
Views: 1084

Re: Change PTUUID/PARTUUID on an SD card or a USB device

While I don't share the concerns about zip files expressed above I never run downloaded scripts until I have analysed them, and the script I listed meets my needs of setting PARTUUID on a running image on a SD Card. Once you've had a chance to analyze the new version, I'm confident you'll find it h...
by RonR
Sun Oct 06, 2019 5:36 am
Forum: Advanced users
Topic: Change PTUUID/PARTUUID on an SD card or a USB device
Replies: 17
Views: 1084

Re: Change PTUUID/PARTUUID on an SD card or a USB device

If anyone is interested the below is a safe script I have been using for years to change PTUUID on a cloned SD Card. (The original was posted on this site; I have modified to generate PTUUID) I posted that a couple years ago (in response to your request: How to change Disk identifier ). It's the pr...
by RonR
Sun Oct 06, 2019 3:48 am
Forum: Beginners
Topic: Hybrid (SD + SSD) boot 101?
Replies: 8
Views: 442

Re: Hybrid (SD + SSD) boot 101?

Just to confirm my understanding of the hybrid boot process (meaning boot from SD and then switch to SSD) for either an RPi-3 or 4 with Buster: The only partition needed on the SD card is the small FAT BOOT which simply holds enough to get the system started to the point of telling it to then look ...
by RonR
Sat Oct 05, 2019 8:59 pm
Forum: Advanced users
Topic: Change PTUUID/PARTUUID on an SD card or a USB device
Replies: 17
Views: 1084

Re: Change PTUUID/PARTUUID on an SD card or a USB device

I would prefer you to make useful code useable by following sensible practices so people can download without fear. If you wish to debate posting and attachment practices, I would prefer you started a new topic in the appropriate forum. This topic is entitled "Change PTUUID/PARTUUID on an SD card o...
by RonR
Sat Oct 05, 2019 8:19 pm
Forum: Advanced users
Topic: Change PTUUID/PARTUUID on an SD card or a USB device
Replies: 17
Views: 1084

Re: Change PTUUID/PARTUUID on an SD card or a USB device

davidcoton wrote:
Sat Oct 05, 2019 7:11 pm
If people get used to innocent (and useful) code like yours being posted in zip files...

Thank you for the vote of confidence. Hopefully, that will allay anyone's fear of downloading my ZIP files.

Go to advanced search