Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize rootfs expansion of raspberry pie openwrt TF card

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to expand the rootfs capacity of the raspberry pie openwrt TF card. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Openwrt's official raspberry pie image will generate two partitions, boot and rootfs, after it is written to the TF card. The boot partition is in FAT32 format and the rootfs partition is in ext4 format. The default rootfs is only 48m, and the rest of the TF card is displayed as unallocated space. In order to make use of this part of the space, we need to expand the capacity of rootfs.

Use Baidu to search on the Internet, do not seem to see this aspect of the content, may be too simple everyone is lazy to write? If you use google, you should be able to find a lot of content, but there is no VPN to use, so I groped for myself.

The easiest way is to use GParted to adjust the TF card partition. Download a liveCD image of GParted in http://sourceforge.net/projects/gparted/files/?source=navbar, write it to a USB disk and use it to start the computer to operate the TF card. Or start the virtual machine directly with GParted to use it. After the modification, the TF card is inserted into the raspberry pie and restarted, you can find that the rootfs capacity has become larger.

There is another way that I don't know if it will work: connect rootfs to the linux computer, copy out the contents, then use cfdisk to re-partition the TF card, and then copy the files back. On my first operation, I mistakenly formatted the partition as ext2, and as a result, I couldn't start it. After that, you directly use GParted to operate. Later, you can try the format partition as ext4 again to see if it can be successful.

In addition, if you compile the image from the source code, you can directly set the size of the image you need to generate, which saves the above trouble.

This is the end of the article on "how to expand the rootfs capacity of raspberry pie openwrt TF card". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report