In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to develop an ARM file system in Linux? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.
#! / bin/bash#yuanxin.yang develop 2015-07-0 file system and Busybox path = = > you can customize FILESYSTEM=/Softwave/filesystem # define the location where the self-made file system is stored, BUSYBOX=/Softwave/arm/busybox-1.17.2 # Busybox software location, LIBS=/usr/local/arm/4.5.1/arm-none-linux-gnueabi # cross-compile related library file location # determine that the file is If there is, delete if [- d $FILESYSTEM] then rm-rf $FILESYSTEM & > / dev/null mkdir $FILESYSTEM & > / dev/null else mkdir $FILESYSTEM & > / dev/null fi# copy the busybox-related file if! Cp-rf $BUSYBOX/_install/* $FILESYSTEM & > / dev/nullthen echo "cp busybox failed..." Exit 1fi# copy library if! Cp-rf $LIBS/lib/ $FILESYSTEM/ & > / dev/nullthen echo "copy libs fair...." Exit 1fi# copy etcif! Cp-rf $BUSYBOX/examples/bootfloppy/etc $FILESYSTEM & > / dev/nullthen echo "copy etc fair..." Exit 1fi# create Linux related directory cd $FILESYSTEM & > / dev/nullmkdir boot mnt root sys var net proc tmp dev home opt & > / dev/null# modify configuration file echo > $FILESYSTEM/etc/fstab # modify etc/profile file echo "# / etc/profile: system-wide .pr ofile file for the Bourne shells" > $FILESYSTEM/etc/profileecho "echo\" =\ "> > $FILESYSTEM/etc/profileecho" echo\ "Welcom to Linux System\" > > $FILESYSTEM/etc/profileecho "echo\" = =\ "" > > $FILESYSTEM/etc/profileecho "export PS1=\" [jiaobenzhijia@Linux\ W] #\ "> > $FILESYSTEM/etc/profile# modify etc/init.d/rcSecho" #! / bin/sh "> $FILESYSTEM/etc/init.d/rcSecho" / bin/mount-n-t proc none / proc "> > $FILESYSTEM/etc/init.d/rcSecho" / bin/mount-n-t sysfs none / sys "> > $FILESYSTEM/etc/init.d/rcSecho" / bin/mount-t ramfs None / dev "> > $FILESYSTEM/etc/init.d/rcS echo" / bin/mount-n-t ramfs none / tmp "> > $FILESYSTEM/etc/init.d/rcS echo" / sbin/mdev-s "> > $FILESYSTEM/etc/init.d/rcS # configure the nfs service if! Grep "$FILESYSTEM" / etc/exports & > / dev/nullthen echo "/ filesystem * (rw,sync,no_root_squash)" > / etc/exportsfi# launch service iptables-F & > / dev/nullservice rpcbind restart service nfs restart echo "make filesystem ok." does exit 0 help you after reading the above? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.