如何在预安装的Linux上使用所有磁盘空间

我订购了预装“Paralles Plesk Panel”的Linux Debian Wheezy专用服务器。 提供者状态我有2x1TB驱动器。

然而我的可用磁盘空间只有100GB。 我是否缺less分区? 我不知道如何解释df -k 79%的用法,其中只有69 GB用作du -ch / shows。

我有足够的空间可用吗? 如果不是如何设置呢?

 $ sudo parted -l Model: ATA ST1000NM0011 (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 100GB 100GB primary ext3 boot Error: /dev/sdb: unrecognised disk label $ sudo fdisk -l Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sdb doesn't contain a valid partition table Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 34 heads, 38 sectors/track, 1512016 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00091ca1 Device Boot Start End Blocks Id System /dev/sda1 * 2048 195352516 97675234+ 83 Linux $ sudo df -k Filesystem 1K-blocks Used Available Use% Mounted on rootfs 96141036 71813500 19443776 79% / udev 10240 0 10240 0% /dev tmpfs 1644412 184 1644228 1% /run /dev/disk/by-uuid/2b0af891-91af-448e-a5d3-8cba9de4ce5d 96141036 71813500 19443776 79% / tmpfs 5120 0 5120 0% /run/lock tmpfs $ sudo du -ch / | grep total 69G total 

您只需要在磁盘上创build剩余空间的新分区。 如果你正在运行raid,那么你需要创build一组完全相同大小的分区,并将它们添加到raid中。 这里是fdisk(8)的选项列表fdisk(8)

 $ sudo fdisk /dev/sda 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) 

使用n -action创build一个新分区并按照屏幕上的说明进行操作。 如果你只是想用剩余空间创build一个分区, fdisk的默认值可能会做,但一定要安全,所以你不会销毁第一个/当前分区。 完成后,使用w -action将表写入磁盘并退出。 您现在可以将磁盘添加到raid或创build一个文件系统。