resize2fs Debian 8 Jessie AWS EC2 + EBS .
, .
, .
, Image AMI Snapshot Volume.
.


.


Debian 8, , .

.
ssh.
root.
sudo -i
source.list, "parted".
pico /etc/apt/sources.list
.
deb http://cloudfront.debian.net/debian jessie main contrib non-free
deb-src http://cloudfront.debian.net/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://cloudfront.debian.net/debian jessie-updates main contrib non-free
deb-src http://cloudfront.debian.net/debian jessie-updates main contrib non-free
deb http://cloudfront.debian.net/debian jessie-backports main contrib non-free
deb-src http://cloudfront.debian.net/debian jessie-backports main contrib non-free
apt-get.
apt-get clean && apt-get update && apt-get upgrade
.
apt-get install parted
.

.
. , .


/dev/sdf


.

ssh.
root.
sudo -i
df -h
lsblk
.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 8G 0 disk
└─xvda1 202:1 0 8G 0 part /
xvdf 202:80 0 40G 0 disk
└─xvdf1 202:81 0 8G 0 part
xvdf 40G xvdf1 8G.
/dev/xvdf.
parted /dev/xvdf
. .
(parted) unit s
.
(parted) print
.
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvdf: 83886080s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1s 16777215s 16777215s primary ext4 boot
. ( , ).
(parted) rm 1
1s, 100% .
(parted) mkpart primary 1 100%
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? : Ignore
.
(parted) print
.
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvdf: 83886080s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1s 83886079s 83886079s primary lba
.
(parted) set 1 boot on
.
(parted) quit
.
Information: You may need to update /etc/fstab.
lsblk
.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 8G 0 disk
└─xvda1 202:1 0 8G 0 part /
xvdf 202:80 0 40G 0 disk
└─xvdf1 202:81 0 40G 0 part
, xvdf xvdf1 40G.\/
e2fsck .
: e2fsck , . .
e2fsck -f /dev/xvdf1
.
e2fsck 1.42.12 (29-Aug-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/xvdf1: 208603/524288 files (0.2% non-contiguous), 1918667/2097151 blocks
.
, .
.
.
.
(/dev/****) , im -/dev/sda.
<411 >
! .\/