mkfs.ext3 -L opt -b 2048 -i 4096 device (在磁盘上为每4KB空间分配1个inode)
e2label /dev/sda7 data (为 /dev/sda7 创建标签 data)
e2label /dev/sda7 (显示 /dev/sda7 的标签)
dumpe2fs -h /dev/sda1
5 (或者 f ) -扩展分区
82 -Linux swap
83 -Linux partition
8e -Linux LVM
fd -Linux RAID auto
mount LABEL=data /mnt
mount -a ( 挂载 /etc/mtab 下所列文件系统)
mount -o remount,ro /data
mount -n -o remount,rw / (single user mode恢复系统时很有用)
-n Mount without writing in /etc/mtab. This is necessary
for example when /etc is on a read-only file system.
fuser -uv ./
fuser -muv /proc
fuser -km mount_point
fuser -ki /var/gdm/.gdmfifo (结束PID,但你要知道路径)
mkswap /dev/sda7
/dev/sda7 swap swap defaults 0 0
swapon -a
swapon -s
dd if=/dev/zero of=/swapfile bs=1024 count=X
/swapfile swap swap defaults 0 0
阅读(441) | 评论(0) | 转发(0) |