Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 4815|Reply: 2

Clone OrangePi Zero SD Card

[Copy link]

4

Threads

8

Posts

40

Credits

Novice

Rank: 1

Credits
40
Post time 2017-5-18 05:10:03 | Show all posts |Read mode
I would like to clone the SD Card on the Zero without using Win32DiskImager.   The reason is the saved image will often not fit on the new card due to the bad blocks in most SD Cards.  
There is a script to do tnis on the Raspberry PI, but the script does not work on the OrangePI Zero.    The sequence below works some times, but other times the cloned card will not boot.   When it fails, I get a message about :"Card did not respond to voltage select!"

Can anyone tell me what I am doing wrong?
Thanks.


df -h
umount /media/usb0
fdisk /dev/sda
d   (delete parition)
n
p
1
2048
+20M
n
p
2
<default>

<default>
w

# Check if OS re-mounted any sda partitions

df -h
umount /meda/usb0

# make the FAT file system for the boot partition
mkfs.vfat /dev/sda1

# make the EXT4 file system, if it fails, open fdisk /dev/sda again to refresh the parition table
mkfs.ext4  /dev/sda2

# write zeroes to the first portion of the root parition
dd if=/dev/zero of=/dev/sda bs=1k count=1023 seek=1
# Completely copy an image of the boot partition of the existing card over to the new card
dd if=/dev/mmcblk0 of=/dev/sda bs=1M count=65
# remake the EXT4 file system for the second partition
mkfs.ext4 -F /dev/sda2
# make a temporary folder to use as a mount point
mkdir /tmp/newpi
# Mount the second partition
mount /dev/sda2 /tmp/newpi
# copy all the files from the existing boot image to the second partition
rsync -av --one-file-system / /boot /tmp/newpi/


4

Threads

8

Posts

40

Credits

Novice

Rank: 1

Credits
40
 Author| Post time 2017-5-20 04:58:17 | Show all posts
I changed the line for copying the boot image to

dd if=/dev/mmcblk0 of=/dev/sda bs=1024 count=65536

On a sample size of four SD Cards,  all four of them booted after the transfer using the above change.  

Post time 2021-11-30 08:15:31 | Show all posts

Awesome Warehouse Robotics Blog

What are the primary benefits of Autonomous Mobile Robots?

1. Increased flexibility
Autonomous Mobile Robots exhibit flexibility and agility automation because they are largely dependent on their onboard cameras and sensors to operate. Autonomous Mobile Robots don't need to follow predetermined paths. They can instead design their own efficient routes within the facility. This helps them avoid obstacles. Autonomous Mobile Robots can change tasks faster than other automation technologies. Check out this Logistics robot info for more.

2. Safety - Increased
Autonomous Mobile Robots are packed full of sensors and cameras. They enable the Autonomous Mobile Robots to comprehend and understand their surroundings. This makes them able to move quickly within a space and not have to come into contact with people, product, infrastructure or other obstacles. By contrast, equipment run by humans, such as forklifts, do not have the same safety features and ultimately rely on input from humans. Autonomous Mobile Robots minimize the possibility of human operators being exhausted or distracted, resulting in accidents. Autonomous Mobile Robots can be used for repetitive tasks that minimize the chance of human error and improve safety in a facility.

3. Rapid Implementation
Autonomous Mobile Robots can be deployed in a matter of weeks, depending on the process. (Especially important in this case are the warehouse picking software and execution software that the units will need to integrate with.) Although it is on the higher end of the spectrum, this is a remarkably short amount of time, especially when compared with other methods. To give you an example of this, a goods to individual (G2P) system could be as long as a year for complete implementation.

4. Ability to Scale
Autonomous Mobile Robots can be easily installed in a facility. This lets you adhere to a modular method of deployment. Start with a few units, and then add more as your business expands or the needs of your business evolve. Start small and build your fleet as you go. This can save you a significant amount of money in the beginning. This modular deployment frees up funds that can be used to invest in other initiatives while you evaluate the impact of Autonomous Mobile Robots on your business and plan your what next steps to take.

5. It is simple to travel between facilities
There are some businesses that may be hesitant to explore automation options since they know that a move to a new location is likely in the near future. This logic makes sense. Why create a new system when it will be taken down in two years after the new facility is constructed? Autonomous Mobile Robots can be used to fill in the gap in these scenarios. Since Autonomous Mobile Robots are easy to deploy and can be moved between facilities in a relatively simple manner, allowing automation even in the short term. This can be an advantage to businesses looking to set up temporary holiday operations.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2022-1-29 17:44 GMT+8 , Processed in 0.029661 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list