当前位置:网站首页>One to one copy of core board system image using USB flash disk
One to one copy of core board system image using USB flash disk
2022-06-10 05:19:00 【YOULANSHENGMENG】
One 、 Use the command copy method
1.1 format U Disk and partition
1. format sd Card as ext4, Use The graphical interface Just format it , Load after formatting sd Card to system .

2. Use command sudo fdisk -l see U Naming of disks , According to u The memory of the disk determines whether it is the target disk . My disk is named dev/sdb
3. Select File System
sudo mkfs.ext4 /dev/sdb
The above figure shows that the format is successful
4. see mount File system
sudo fdisk -l
5. Formatted U Disk needs to create partition
First execute the following statement
sudo fdisk /dev/sdb
Then input m Check out the help manual

m : Display menu and help information
a : Active zone marker / Boot partition
d : Delete partition
l : Show partition type
n : New partition
p : display partition information
q : Exit without saving
t : Set partition number
v : Check the area
w : Save changes
x : Expand applications , Advanced features Next input n, Indicates that you want to create a new partition

The two letters appearing above indicate :p Create primary partition for e Create extended partitions for . Next press p
After performing the above operations , It's done For formatted U Partition operation of disk . The last step is to save and exit , Input W, End operation

6. View the created partition
sudo fdisk -l
7、 Format the created partition
sudo mkfs.vfat /dev/sdb1.2 Mount operation after partition
Why U After the disk is mounted , Can be used : because Linux Treat all hardware devices as files , So when using hardware devices such as optical drives , It must be mounted to the system , That's the only way Linux To recognize
1./mnt The directory stores manually mounted hardware ;
2. /media The directory stores automatically mounted hardware ( Loading points are automatically created and deleted by the system )
3. /dev It is not a device driver , But as an interface to access external device files . such as , our U disc , Insert linux After the system , use fdisk -l Check the partition , The display file is /dev/sda1.
/dev/sda1 Is a block type file , Block type Linux The system cannot be accessed directly ; If you want to access, you have to go through mount Command to mount to the file directory for access .
How to mount U disc (mount)
1. The mount point must be a directory .
2. Mount on an existing directory , This directory can not be empty , But after mounting, the previous contents in this directory will not be available ,umount It will return to normal in the future .
3. Compact disc 、 floppy disk 、 The format of the file system used by other operating systems is similar to linux The file system format used is different . The CD is ISO9660; Floppy disk is fat16 or ext2;windows NT yes fat16、NTFS;windows98 yes fat16、fat32;windows2000 and windowsXP yes fat16、fat32、 NTFS. Know before mounting linux Whether the file system format to be mounted is supported .
First create a new directory
cd /mnt
sudo mkdir usbAnd then U The disk is mounted in this directory ,u The name of the disk is after partition . The name shown in the red box , Use sudo fdisk -l Command to see , As shown in the red box in the figure .

Example 1: mount FAT32 Of U disc
sudo mount -t vfat /dev/sdb1 /mnt/usbCheck if the mount is successful
df -h -- Check the device mounting , The following is a successful mount .

After successfully mounting , You can copy the system .
If an error occurs in the mount . Uninstall can be performed
for example :
Already mounted /dev/sdb1 29G 16G 13G 55% /mnt/usbFAT32
umount /dev/sdb1 perhaps umount /mnt/usbFAT32 Can be uninstalled Example 2: mount NTFS The mobile hard disk
mkdir /mnt/usbNTFS --/mnt Create a manually mounted directory under the directory
fdisk -i -- View the attached device information ( need root Users can view )
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 121601 976760001 7 HPFS/NTFS
mount /dev/sdb1 /mnt/usbNTFS -- Without specifying the file system type
mount: you must specify the filesystem type -- Tips : You must specify the file system type
mount -t ntfs /dev/sdb1 /mnt/usbNTFS -- If there is no prompt ok
mount: unknown filesystem type 'ntfs' -- Tips :‘ntfs’ Unknown file system type , Self installation required ntfs-3g( Tools running in C++ Under the language , If you cannot compile, you need to install gcc-c++ Tools )
df -h -- Check the device mounting , The following is a successful mount .
/dev/sdb1 123G 1G 122G 98% /mnt/usbNTFS1.3 System copy operation
Copy the entire system to U disc
sudo cp -ax / ‘/mnt/usb’
After executing this sentence , Will start copying , In the process of copying , The following errors will occur , It's just that the permissions can't be copied , No problem :
failed to preserve ownership for ..
Refer to the post :
Jetson AGX stay SD Card start system _Monster_fsk The blog of -CSDN Blog
Two 、Jetson Nano Use USB Start after image burning
because Jetson Nano16G Space is often not enough in actual development and application , Fortunately Jetson Nano Support USB Starting mode , You can burn the system to 32G Or larger capacity U To use .
about U Disk startup mode , There are several points to note :
1. Jetson Nano The system version and U The system version of the disk should correspond to , such as U The disc has been burned V4.5.1 edition , that Jetson Nano The system version of the core board must also be V4.5.1, Otherwise, we can't USB start-up .
2. USB The idea of startup is to start the system in the core board first , Then the system of the core board leads to U On disk start .
3. The system in the core board needs to use SDKManger To burn the system ,U The system in the disk needs to use Win32DiskImager To burn the system .
2.1 How to make img File is written to u disc take img File is written to u The steps of the disk
Refer to the post :
The video tutorial is :
JETSON NANO SUB Version motherboard settings U Disk start _ Bili, Bili _bilibili
边栏推荐
- 2022年危险化学品生产单位安全生产管理人员操作证考试题库及答案
- Ant group joined the commitment of low-carbon patents, opened patents to the world free of charge, and promoted energy conservation and emission reduction
- 2022.6.8-----leetcode. one thousand and thirty-seven
- Find target value
- 【無標題】
- Be diligent to tell me what I have done these days
- Interview question 05.06 Integer conversion
- 顺序查找、二分查找
- In terms of emotional perception, the financial assistant robot "zhixiaobao" goes further
- [live dialogue] graph computing is the next frontier of science and technology
猜你喜欢

Cubase pro 12

Literature reading -- location of regulatory variation in maize drought response and tolerance gene expression

Proteus仿真stm32f103R6Tx——外部中断控制LED亮灭(Cube MX+Keil5+proteus)

The world's first financial chart database test benchmark project was approved, and ant group opened patent Co Construction

得物登录组件重构

【无标题】
![[Linux < day20 >] - An Introduction to database and container technology](/img/d1/23dfe81887181d76f0c9bb3172341d.png)
[Linux < day20 >] - An Introduction to database and container technology

2022 refrigeration and air conditioning equipment operation special operation certificate examination question bank simulated examination platform operation

蚂蚁集团隐私计算一体机获得双认证,83项指标均达要求

2022山东省安全员C证考试题库及答案
随机推荐
Inherit extensions
Understand ant bizstack cloud native development and governance platform
Top prize! The leading scientific and technological achievement "new technology" of 2022 digital Expo was awarded to oceanbase database
蚂蚁集团隐私计算一体机获得双认证,83项指标均达要求
Tutorial on using midway
How to use API interface of national weather forecast for rapid development
New words new words new words new words new words new words
Wechat mobile JS small game stepping on the box source code
Contact QR code generation plug-in qrcode js
npm、yarn的安装及配置
每日一题—LeetCode497—非重叠矩形中的随机点-前缀和-二分
2022.5.31-----leetcode. Sword finger offer one hundred and fourteen
Redis specifies the configuration file startup, database related instructions, and redis operation string and list types
Some beautiful JS prompt boxes
Hevc HM learning 02
Find target value
Be diligent in some habits of foreign lead
2022.6.5-----leetcode. four hundred and seventy-eight
[innovative document technology solution] Shanghai daoning provides you with a product - litera, which covers the entire document drafting life cycle, to help users create higher quality documents
递归函数汉诺塔