易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux下增加磁盘设备的处理记录

--首先看看有哪些磁盘
 [root@localhost ~]# fdisk -l
--要处理的是sdj,使用fdisk分区
 [root@localhost ~]# fdisk /dev/sdj
The number of cylinders for this disk is set to 13054.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
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):n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-13054, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-13054, default 13054):
Using default value 13054
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Command (m for help):q
--这之间使用了n创建分区,p是主分区,最重要的是w,写入磁盘,不写的话,前面工作白费
--下面是使用ext3格式格式化sdj1
[root@localhost ~]# mkfs.ext3 /dev/sdj1
mke2fs 1.39


相关文档:

实战Linux Bluetooth编程 (七) SDP协议

Service Discovery Protocol(SDP)提供一种能力,让应用程序有方法发现哪种服务可用以及这种服务的特性。
服务发现协议(SDP或Bluetooth SDP)在蓝牙协议栈中对蓝牙环境中的应用程序有特殊的含意,发现哪个服务是可用的和确定这些可用服务的特征。SDP定义了bluetooth client发现可用bluetooth server服务和它们的特征的方法。 ......

Linux kernel development Chapter1

 1 linux内核
并不区分线程和进程。对于内核来说,所有的线程和进程都一样,只是其中的一些共享资源而已。
 2 内核开发特点:
    2.1 linux内核开发不能使用c函数库,因为c库需要操作系统的支持,而且c库的大小和效率也是内核开发所不能容忍的;
        ......

Linux中tty、pty、pts的概念区别

 Linux中tty、pty、pts的概念区别
基本概念:
1> tty(终端设备的统称):
tty一词源于Teletypes,或者teletypewriters,原来指的是电传打字机,是通过串行线用打印机键盘通过阅读和发送信息的东西,后来这东西被键盘与显示器取代,所以现在叫终端比较合适。
终端是一种字符型设备,它有多种类型,通常使用tty来简 ......

Linux中添加sudoer

 
使用sudo可以在以非root用户登录时临时获得root权限,并执行需要的命令。
可以使用sudo的用户可以叫做sudoer。
添加sudoer的方法(假设您已经安装sudo):
执行
# visudo

# sudoedit
提示:
有些发行版的sudo提供了sudoedit,有的则提供了visudo,功能上基本是一样的。
你也可以使用其他编辑器如vi进行 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号