I'm trying to set up a RPi2 as a backup server. I had a 2TB HD formatted as Mac OS Extended (Journaled) that I reformatted in the Mac to MS DOS. I attached it to the RPi2, and using the instructions at http://blog.amitparekh.com/?p=31, I formatted the drive as ext4, however, the drive is now showing only a 1.8TB partition.
How do I make the partition use the whole 2TB?
If it helps, the following is shown in the various disk utilities:
Code: Select all
sudo blkid
/dev/sda1: LABEL="disk1" UUID="[edit]" TYPE="ext4"
sudo fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 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
Device Boot Start End Blocks Id System
/dev/sda1 2048 3907029167 1953513560 83 Linux
sudo parted -l
Model: WDC WD20 EARX-00PASB0 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 2000GB 2000GB primary ext4
sudo sfdisk -l -uM
Disk /dev/sda: 243201 cylinders, 255 heads, 63 sectors/track
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/sda1 1 1907729- 1907729- 1953513560 83 Linux
/dev/sda2 0 - 0 0 0 Empty
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
sudo cfdisk
Partition Table for /dev/sda
---Starting---- ----Ending----- Start Number of
# Flags Head Sect Cyl ID Head Sect Cyl Sector Sectors
-- ----- ---- ---- ----- ---- ---- ---- ----- ----------- -----------
1 0x00 32 33 0 0x83 62 63 765633 2048 3907027120
2 0x00 0 0 0 0x00 0 0 0 0 0
3 0x00 0 0 0 0x00 0 0 0 0 0
4 0x00 0 0 0 0x00 0 0 0 0 0
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 0 1.8T 0 part /media/disk1
df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.2G 496M 6.4G 8% /
/dev/root 7.2G 496M 6.4G 8% /
devtmpfs 484M 0 484M 0% /dev
tmpfs 98M 228K 98M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 195M 0 195M 0% /run/shm
/dev/mmcblk0p1 48M 15M 34M 30% /boot
/dev/sda1 1.8T 1.7T 99M 100% /media/disk1
tmpfs 195M 0 195M 0% /tmp