Most PC operating systems still work with an ancient disk partition scheme that historically makes distinction between primary and extended partitions. It also places a limitation for four primary partitions or three primary partitions and one extend…
sudo fdisk -l 查看硬盘情况 1:新建一个目录,例:old 2:mount /dev/sdb1 old 3:cd old 4:ls (就可以看到新硬盘的内容了) 取消挂载:umount old 挂载虚拟卷的方法 1:sudo vgchange -ay /dev/ubuntu 2:sudo mount /dev/ubuntu/root old 原文链接 http://www.cnblogs.com/unipower/archive/2009/03/08/1406230.html…
查看分区数据量,查看全库数据量 USE information_schema; SELECT PARTITION_NAME,TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME = 'sale_data'; SELECT table_name,table_rows FROM TABLES WHERE TABLE_SCHEMA = 'db_name' ORDER BY table_rows DESC ; http://my…
ssh的两个小知识 1. 在ssh客户端启动远程服务器的图形界面程序. 如果你试图在ssh客户端运行远程服务器的一个图形界面程序,比如说执行firefox,此时可能会提示,can not connect to X server 或者 Error: GDK_BACKEND does not match available displays,前者是centos中的提示,后者是ubuntu中的提示.原因都是图形界面程序需要相关的图形服务器才能使用. 有两种方式可以解决,一种是在客户端进行处理,另一种是…