LINUX下新硬盘挂载
关于新硬盘的挂载主要有几个步奏:(我用的是Ubuntu9.10)
一.首先查看自己的设备,用命令 fdisk -l
youlong@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c4e91
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1243 9984366 83 Linux
/dev/sda2 1244 1305 498015 5 Extended
/dev/sda5 1244 1305 497983+ 82 Linux swap / Solaris
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
(其中sdb是新添硬盘)
二.对新硬盘进行分区,用命令fdisk /dec/sdb
eg:
[root@linux ~] sudo fdisk /dev/sdb "sdb为新添硬盘"
youlong@ubuntu:~$ sudo fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x784f9b03.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0
相关文档:
Linux开机过程
1. BIOS:开机主动执行的韧体,会认识第一个可开机的装置;
2. MBR:第一个可开机装置的第一个扇区内的主要启动记录区块,内含开机
管理程序;
3. 开机管理程序(boot loader):一个可读取核心文件来执行的软件;
4. 核心文 ......
/************************
c语言编写的tcp socket通信的server端。
可以持续监听myprot指定的端口
打印端口接收到的字符流
头文件因为尖括号被转义,所以用了引号
************************/
#include "stdio.h"
#include "stdlib.h"
#include "errno.h"
#include "string.h& ......
Unix Toolbox
This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.
Unix Toolbox revision 14.2
The latest version of this ......
2.1 框架图
-->PREROUTING-->[ROUTE]-->FORWARD-->POSTROUTING-->
mangle | mangle ^ mangle
nat | filter | na ......
安装环境:
1.上传jdk-6u17-linux-i586.bin和apache-tomcat-6.0.20.tar.gz到/usr
2.安装JDK
$chmod a+x jdk-6u17-linux-i586.bin
$ ./jdk-6u17-linux-i586.bin
$ vi /etc/profile
#添加如下
export JAVA_HOME=/usr/jdk1.6.0_17
export PATH=$JAVA_HOME/bin:$PATH
$echo $JAVA_H ......