从硬盘启动linux系统
-------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//平台powerpc mpc8379e linux 2.6.22
1、先用fdisk 给硬盘分一个区,用作文件系统。参照u-boot-ppc编译说明一文。
2、用mke2fs格式化硬盘的一个分区mke2fs /dev/sda2 (比如分区2)
3、设置u-boot参数。bootargs=root=/dev/sda2 rw console=ttyS0,115200 rootfstype=ext2
4、将ramdisk拷贝到硬盘的ext2分区。(可以将ramdisk挂到一个目录下,然后将其中的除dev目录之外的其余目录都拷贝过来。)
5、Usage: makedevs [-d device_table] rootdir
6、makedevs –d /device_table.txt /mnt/cdrom
7、其中-d device_table 为table文件的目录。它会在/mnt/cdrom目录下建立dev目录,并建立相应的nod点(根据device_table.txt来建立)
8、 启动信息见《从硬盘启动完整信息》
9、将setenv bootargs root=0810 rw console=ttyS0,115200 rootdelay=5将可以实现从u盘启动。setenv bootargs root=/dev/sdb1 rw console=ttyS0,115200 rootdelay=5(或是设置成)
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
List of all partitions:
0800 156290904 sda driver: sd
0801 24097468 sda1
0802 48195000 sda2
0803 1 sda3
0805 2072353 sda5
1f00 1024 mtdblock0 (driver?)
1f01 1984 mtdblock1 (driver?)
1f02 64 mtdblock2 (driver?)
1f03 5120 mtdblock3 (driver?)
1f04 131072 mtdblock4 (driver?)
1f05 917504 mtdblock5 (driver?)
b300 995328 mmcblk0 driver: mmcblk
0810 1020415 sdb driver: sd
相关文档:
Oracle Database 10g Release 2 (10.2.0.1) Installation On Red Hat Enterprise Linux 5 (RHEL5)
一安装需求
1.swap 分区不低于2G
2.selinux 状态disable
3.物理内存不低于512M
系统组件
GNOME Desktop Environment
Editors
Graphical Internet
Text-based Internet
Development Libraries
Development Tools
......
NFS网络文件系统是通过文件系统实现资源共享的一种最重要的方式。
c/s 客户机 服务器
B/S 浏览器 服务器
NFS服务端配置:
编辑/etc/exports文件以配置开放路径。/home/share 192.168.0.123(ro)/(rw).
/etc/init.d/portmap restart
/etc/init.d/nfs&nb ......
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <cstring>
using namespace std;
void peek_interfaces(int ......
#ifndef __KERNEL__
#define __KERNEL__
#endif
#ifndef MODULE
#define MODULE
#endif
#include<linux/config.h>
#include<linux/module.h>
#include<linux/version.h>
#include<linux/init.h>
#include<linux/kernel.h>
#include<linux/errno.h>
#include<linux/sche ......
-------------------------------------------------------------------------------------------------------
By:yuyongbao
QQ:673360056
1、 linux下共享文件。安装smbserver。然后在《系统设置》中打开《服务器设置》的《smb server》服务器,输入相关路径即可。然后在window中,使用网络邻居查找linux。(注 ......