首页 文章 精选 留言 我的

精选列表

搜索[Emacs化],共10000篇文章
优秀的个人博客,低调大师

Linux磁盘分区、格式化、挂载、卸载

[root@CORPSE2010/]# fdisk -l Disk /dev/sda: 322.1 GB, 322122547200 bytes 255 heads, 63 sectors/track, 39162 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00097ff5 Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 26 28072 225280000 83 Linux /dev/sda3 28072 32152 32768000 82 Linux swap / Solaris /dev/sda4 32152 39163 56318976 5 Extended /dev/sda5 32152 33427 10240000 83 Linux /dev/sda6 33427 34702 10240000 83 Linux /dev/sda7 34702 35976 10240000 83 Linux /dev/sda8 35977 39163 25594880 83 Linux Disk/dev/sdb:32.2 GB, 32212254720 bytes ----------未挂载的 64 heads, 32 sectors/track, 30720 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 [root@CORPSE2010:WEIHU]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x810d5e15. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). 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) 1 Invalid partition number for type `1' Command action e extended p primary partition (1-4) p Partition number (1-4):1 First cylinder (1-30720, default 1): Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-30720, default 30720): Using default value 30720 Command (m for help):p Disk /dev/sdb: 32.2 GB, 32212254720 bytes 64 heads, 32 sectors/track, 30720 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x810d5e15 Device Boot Start End Blocks Id System /dev/sdb1 1 30720 31457264 83 Linux ---ext4分区,ID为83 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@CORPSE2010:WEIHU]#partprobe /dev/sdb [root@CORPSE2010:WEIHU]#mkfs -V -t ext4 -c /dev/sdb1 mkfs (util-linux-ng 2.17.2) mkfs.ext4 -c /dev/sdb1 mke2fs 1.41.12 (17-May-2010) 鏂囦欢绯荤粺鏍囩= 鎿嶄綔绯荤粺:Linux 鍧楀ぇ灏4096 (log=2) 鍒嗗潡澶у皬=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 1966080 inodes, 7864316 blocks 393215 blocks (5.00%) reserved for the super user 绗竴涓暟鎹潡=0 Maximum filesystem blocks=4294967296 240 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Checking for bad blocks (read-only test): 瀹屾垚 姝e湪鍐欏叆inode琛 瀹屾垚 Creating journal (32768 blocks): 瀹屾垚 Writing superblocks and filesystem accounting information: 瀹屾垚 This filesystem will be automatically checked every 32 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@CORPSE2010:WEIHU]#mkdir /mnt/sdb1 [root@CORPSE2010:WEIHU]#mount /dev/sdb1 /mnt/sdb1 [root@CORPSE2010:WEIHU]# df -Th Filesystem Type Size Used Avail Use% Mounted on /dev/sda5 ext4 9.5G 5.7G 3.4G 64% / tmpfs tmpfs 16G 72K 16G 1% /dev/shm /dev/sda1 ext4 190M 34M 146M 19% /boot /dev/sda8 ext4 24G 44M 23G 1% /data /dev/sda2 ext4 212G 4.0G 197G 2% /home /dev/sda6 ext4 9.5G 576M 8.5G 7% /opt /dev/sda7 ext4 9.5G 227M 8.8G 3% /var /dev/sdb1 ext4 30G 44M 28G 1% /mnt/sdb1 [root@CORPSE2010:WEIHU]# more /etc/fstab # # /etc/fstab # Created by anaconda on Fri May 8 17:04:47 2015 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=4fc3c61c-35d0-420b-b6d7-f64e5024e564 / ext4 defaults 1 1 UUID=978a98e0-7c14-4dd4-94cb-8c4c98652b00 /boot ext4 defaults 1 2 UUID=11f6d932-e0c2-4484-bd2e-ab001c736581 /data ext4 defaults 1 2 UUID=77a86bb0-335e-49b4-9be7-5fcb568b04b2 /home ext4 defaults 1 2 UUID=b5a201c2-8b44-4194-96fa-adebe93c9a9f /opt ext4 defaults 1 2 UUID=f4734300-3968-4560-8f1d-9f9b4ef51ea7 /var ext4 defaults 1 2 UUID=79805c84-9a35-47fd-b439-6300cf1a48c6 swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 [root@CORPSE2010:WEIHU]# df -lh Filesystem Size Used Avail Use% Mounted on /dev/sda5 9.5G 5.7G 3.4G 64% / tmpfs 16G 72K 16G 1% /dev/shm /dev/sda1 190M 34M 146M 19% /boot /dev/sda8 24G 44M 23G 1% /data /dev/sda2 212G 4.0G 197G 2% /home /dev/sda6 9.5G 576M 8.5G 7% /opt /dev/sda7 9.5G 227M 8.8G 3% /var /dev/sdb1 30G 44M 28G 1% /mnt/sdb1 [root@CORPSE2010:WEIHU]# [root@CORPSE2010:WEIHU]# umount /dev/sdb1 ----卸载 [root@CORPSE2010:WEIHU]# [root@CORPSE2010:WEIHU]# [root@CORPSE2010:WEIHU]# [root@CORPSE2010:WEIHU]# df -lh Filesystem Size Used Avail Use% Mounted on /dev/sda5 9.5G 5.7G 3.4G 64% / tmpfs 16G 72K 16G 1% /dev/shm /dev/sda1 190M 34M 146M 19% /boot /dev/sda8 24G 44M 23G 1% /data /dev/sda2 212G 4.0G 197G 2% /home /dev/sda6 9.5G 576M 8.5G 7% /opt /dev/sda7 9.5G 227M 8.8G 3% /var

优秀的个人博客,低调大师

如何游戏化地将区块链带给大众?

在区块链领域中,虽然许多技术元素已经融入主流,但仍存在一种神秘的氛围。人们对区块链将作为未来创新的平台加以讨论,但随即又承认他们不太清楚它是如何运作的。 这清楚地表明区块链技术正处于一个交叉路口。作为货币和数据交易平台的引擎,它已经足够稳定,不再需要概念验证的例子。然而,它所需要的,是所谓的杀手级应用,将技术带给大众,在简化的同时构建一条使用的渠道,而无需从本质上理解其背后的错综复杂之处。有了这些,平台就会发展起来,并且会变得更受信任,更容易被试验和扩展,而不需要在后台进行持续的检查。 但是那个杀手级应用是什么?将区块链这个流行词转换成日常用语的临界点是什么?作为一名行业老手,我在离开我上一家公司时考虑了这个问题。为这款应用程序提供支持的可能性有很多,从比特币等数字货币到现实应用,任何与赚钱相关的事情都很明显是候选项目之一。(在某种程

优秀的个人博客,低调大师

The Tour of Go(一) 初始化Go开发环境

2012年Go语言第一个正式版本至今已经历时6年,因其优秀的性能,简洁的并发以及高效的编译等优势市场份额逐步增多,越来越多的工程实践开始选用Go语言作为基础编程语言,其生态社区也逐步发展成型,下文将从零开始构建一个Go Project。 一、Go 开发环境配置 以mac os为例,简单的配置一下Go开发环境。 Step1: 安装sdk 方式1:下载 go mac pkg文件进行软件包安装 方式2:通过homebrew 管理软件包 homebrew于mac如rpm包于linux,即mac下的软件包管理程序。可以通过如下命令安装homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

用户登录
用户注册
修改密码
忘记密码