由于工作的需要,最近一段时间一直在学习Linux。学习一门新的知识,我是喜欢根据谋一本书或者某一个学习视频系统的学习,这样可以对学习的新知识有一个系统全面的认识和了解。所以学习之前,没了一本鸟哥的私房菜做为参考书,开始系统的学习Linux。 根据鸟哥的建议,安装虚拟机时,预留了一块空的容量用...
分类:
系统相关 时间:
2014-08-05 03:01:38
阅读次数:
534
mysqlErrcode28磁盘还可以但是inode表没有了ddif=/dev/zeroof=tmpforindecount=1024bs=1024KB
mke2fs-N5000000-b1024-I128tmpforinde#格式化成ext2分区(因为ext3有日志系统,会消耗空间),制定inode大小为
mount-olooptmpforinde/var/tmp
root@eccubuntu:/var#df-h
Filesys..
分类:
数据库 时间:
2014-08-04 14:43:09
阅读次数:
313
首先,查看系统的磁盘代号:
fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = 扇区 of 1 * 512 = 512 bytes
Sector size (logical/physic...
分类:
其他好文 时间:
2014-08-03 20:40:35
阅读次数:
264
【划分磁盘】#fdisk/dev/sdb n p 1 enter +200M n p 1 enter +512M#mke2fs-text4/dev/sdb1#mke2fs-text4/dev/sdb2----------------------------------------------【安装grub】#mkdir/mnt/boot#mout/dev/sdb1/mnt/boot/#grub-install--root-directory=/mnt/dev/sdb#syn..
分类:
其他好文 时间:
2014-08-01 11:01:02
阅读次数:
233
大致思路:1.查看分区状态2.创建分区3.重新加载分区表4.格式化分区5.挂载分区到目录查看当前分区状态:[root@localhost~]#fdisk-cul
Disk/dev/sda:21.5GB,21474836480bytes
255heads,63sectors/track,2610cylinders,total41943040sectors
Units=sectorsof1*512=512bytes
Secto..
分类:
其他好文 时间:
2014-07-31 21:13:37
阅读次数:
311
vi?lvm_extend.sh
#!/bin/bash
#jk409???2014-7-30
#eg.
#lvm_extend.sh???/dev/sdb?????9.9
#扩展10g
yp=$1
Size=$2
fdisk?${yp}?<<?EOF
n
p
1
t
8e
wq
EOF
partprobe
mkfs.ext4??${yp}1
pv...
分类:
其他好文 时间:
2014-07-30 21:00:15
阅读次数:
245
1.HardwareCPU information:cat /proc/cpuinfo物理core个数: 统计core逻辑CPU个数:统计processorMemory information:free -m其中-+buffer是针对OS/App来说的.Disk information:fdisk ...
分类:
系统相关 时间:
2014-07-30 03:14:53
阅读次数:
291
#!/bin/bash
echo?"fdisk?success"
-sed?-i?‘/fdisk.sh/d‘??/etc/rc.d/rc.local
+sed?-i?‘s/fdisk.sh/reboot.sh/‘??/etc/rc.d/rc.local
+?reboot 主要是格式化磁盘,写在 /etc/rc.local 删除不彻底(...
分类:
其他好文 时间:
2014-07-29 16:20:49
阅读次数:
300
大纲1.添加一块超过2TB硬盘2.尝试fdisk对超过2TB分区3.使用parted分区1.可以看到添加一块硬盘超过2T[root@mail~]#fdisk-lDisk/dev/sda:21.4GB,21474836480bytes255heads,63sectors/track,2610cylindersUnits=cylindersof16065*512=8225280bytesDeviceBootStartEndBlocksIdSyste..
分类:
系统相关 时间:
2014-07-29 15:30:49
阅读次数:
295
查看 fdisk –l 挂载 mount 磁盘 目录 参考地址:http://blog.csdn.net/tianlesoftware/article/details/5642883 卸载 umount 磁盘
分类:
系统相关 时间:
2014-07-29 13:49:08
阅读次数:
312