⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bfs.txt

📁 《嵌入式系统设计与实例开发实验教材二源码》Linux内核移植与编译实验
💻 TXT
字号:
BFS FILESYSTEM FOR LINUX========================The BFS filesystem is used by SCO UnixWare OS for the /stand slice, whichusually contains the kernel image and a few other files required for theboot process.In order to access /stand partition under Linux you obviously need toknow the partition number and the kernel must support UnixWare disk slices(CONFIG_UNIXWARE_DISKLABEL config option). However BFS support does notdepend on having UnixWare disklabel support because one can also mountBFS filesystem via loopback:# losetup /dev/loop0 stand.img# mount -t bfs /dev/loop0 /mnt/standwhere stand.img is a file containing the image of BFS filesystem. When you have finished using it and umounted you need to also deallocate/dev/loop0 device by:# losetup -d /dev/loop0You can simplify mounting by just typing:# mount -t bfs -o loop stand.img /mnt/standthis will allocate the first available loopback device (and load loop.o kernel module if necessary) automatically. If the loopback driver is notloaded automatically, make sure that your kernel is compiled with kmod support (CONFIG_KMOD) enabled. Beware that umount will notdeallocate /dev/loopN device if /etc/mtab file on your system is asymbolic link to /proc/mounts. You will need to do it manually using"-d" switch of losetup(8). Read losetup(8) manpage for more info.To create the BFS image under UnixWare you need to find out first whichslice contains it. The command prtvtoc(1M) is your friend:# prtvtoc /dev/rdsk/c0b0t0d0s0(assuming your root disk is on target=0, lun=0, bus=0, controller=0). Then youlook for the slice with tag "STAND", which is usually slice 10. With thisinformation you can use dd(1) to create the BFS image:# umount /stand# dd if=/dev/rdsk/c0b0t0d0sa of=stand.img bs=512Just in case, you can verify that you have done the right thing by checkingthe magic number:# od -Ad -tx4 stand.img | moreThe first 4 bytes should be 0x1badface.If you have any patches, questions or suggestions regarding this BFSimplementation please contact the author:Tigran A. Aivazian <tigran@veritas.com>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -