linux挂载新硬盘
fdisk -l 命令看当前磁盘信息
[root@roswell root]# fdisk /dev/sdb
Command (m for help): m --打印该命令的参数功能列表
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help):
Command (m for help): p --打印待分区的磁盘信息
Disk /dev/sdb: 50.0 GB, 50019202560 bytes
255 heads, 63 sectors/track, 6081 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help):
Command (m for help): n --进行磁盘分区
Command action
e extended
p primary partition (1-4)
p --e:逻辑分区 p:主分区,4个主分区
Partition number (1-4): 1 --划分为第一个主分区
First cylinder (1-6081, default 1): 1 --起始磁盘数,不填默认为1
Last cylinder or +size or +sizeM or +sizeK (1-6081, default 6081): 6081 --定义该分区大小,不填默认为全部可用存储额
Command (m for help):
Command (m for help): p --打印待分区的磁盘信息
Disk /dev/sdb: 50.0 GB, 50019202560 bytes
255 heads, 63 sectors/trac
相关文档:
Linux下可以用ls –l 命令来判断文件类型,如上 图所示。可以依据第一列中的10个字符来判断。
• -rw-r—r—指明了1.txt文件是一个普通文件,1.txt和myprog04文件都是普通文件。以”-“开头的都是普通文件,而以”d”开头的是目录文件。
• brw-rw---- 指明了/dev/sd ......
在本文的第一篇中,我主要对bootsect.s进行了讲述. 在第二部分中,我将对setup.s进行描述,我将其视为是Linux启动的第二步骤.
操作系统的启动过程是一个漫长而有序的过程,各个阶段都有其不同的作用. boot;setup;init虽然看似很接近,但是却是完全不同的过程.他们各司其职,按部就班.boot比较准确的翻译应该是引导,而setup的翻译 ......
Linux下查看文档内容命令总结
主要有如下几个命令:
cat 由第一行开始显示文档内容
tac 从最后一行开始显示,可以看出 tac 是 cat 的倒着写
nl 显示的时候,顺道输出行号
more 一页一页的显示文档内容
less& ......
作者:高张远瞩(HiLoveS)
博客:http://www.cnblogs.com/hiloves/
转载请保留该信息
XManager 是一个简单易用的高性能的运行在Windows平台上的X-Server软件,而Gnome和KDE就是X-Client,Linux下的X- Server则为Xorg。它能把远端Unix/Linux的桌面无缝地带到你的Windows上,甚至当你的电脑是在内网或防火墙后,你也能通 ......