日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

根文件系统挂载

發布時間:2025/3/15 windows 64 豆豆
生活随笔 收集整理的這篇文章主要介紹了 根文件系统挂载 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、nfs方式

1、配置內核,make menuconfig

網絡部分,主要是使能CONFIG_IP_PNP以在2中能夠看到Root file system on NFS選項
Networking support

? ? Networking options

? ? ? ? TCP/IP networking

? ? ? ? ? ? IP: kernel level autoconfiguration

? ? ? ? ? ? ? ? ?[*] IP: DHCP support

? ? ? ? ? ? ? ? ?[*] IP: BOOTP support
?? ??? ??? ??? ??? ?
配置開啟nfs服務
File systems ?--->

? ? Network File Systems ?--->

? ? ? ? ?<*> NFS client support

? ? ? ? [*] NFS client support for NFS version 3

? ? ? ? [*] NFS client support for the NFSv3 ACL protocol extension

? ? ? ? [*] NFS client support for NFS version 4 (EXPERIMENTAL)?

? ? ? ? [*] NFS client support for NFSv4.1 (DEVELOPER ONLY)?

? ? ? ? [*] Root file system on NFS ?

2.配置nfs服務器掛載目錄

/home/lsm/workspace/x210/rootfs/rootfs *(rw,sync,no_subtree_check,no_root_squash)

3.向rootfs目錄中寫入一個普通文件linuxrc進行測試

touch linuxrc

4.在uboot中設置啟動參數(IP根據實際使用更改)

set?bootargs 'root=/dev/nfs nfsroot=192.168.0.63:/home/lsm/workspace/x210/rootfs/rootfs ip=192.168.0.88:192.168.0.63:192.168.0.1:255.255.255.0::eth0:off ?init=/linuxrc console=ttySAC2,115200'?

重啟開發板能夠看到掛載成功,執行/linuxrc失敗。

?

二、鏡像方式

mke2fs是一個應用程序,在ubuntu中默認是安裝了的。這個應用程序就是用來制作ext2、ext3、ext4等格式的根文件系統的。一般用來制作各種不同格式的rootfs的應用程序的名字都很相似,類似于mkfs.xxx(譬如用來制作ext2格式的rootfs的工具叫mkfs.ext2、用來制作jffs2格式的rootfs的工具就叫mkfs.jffs2)。

1.創建rootfs.ext2文件

dd if=/dev/zero of=rootfs.ext2 bs=1024 count=2048

losetup ?/dev/loop1 rootfs.ext2

mke2fs -m 0 /dev/loop1 2048

2.將之掛載到它一個目錄下方便訪問

mount -t ext2 /dev/loop1 /home/lsm/workspace/x210/rootfs/rootfs

3.向rootfs目錄中寫入一個普通文件linuxrc進行測試

touch linuxrc

4.卸載

umount /dev/loop1

losetup -d /dev/loop1

5.使用fastboot將制作好的rootfs.ext2燒錄到開發板。重啟開發板能夠看到掛載成功,執行/linuxrc失敗。

總結

以上是生活随笔為你收集整理的根文件系统挂载的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。