csa@rusalka
:
~ $
sudo just install gdisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
gdisk
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 193 kB of archives.
After this operation, 799 kB of additional disk space will be used.
Get:1 http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/ jessie/main gdisk armhf 0.8.10-2 [193 kB]
Fetched 193 kB in 0s (317 kB/s)
Selecting previously unselected package gdisk.
(Reading database ... 89584 files and directories currently installed.)
Preparing to unpack .../gdisk_0.8.10-2_armhf.deb ...
Unpacking gdisk (0.8.10-2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up gdisk (0.8.10-2) ...
csa@rusalka
:
~ $
sudo gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Command (? for help): ?
b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Command (? for help): x
Expert command (? for help): ?
a set attributes
c change partition GUID
d display the sector alignment value
e relocate backup data structures to the end of the disk
g change disk GUID
h recompute CHS values in protective/hybrid MBR
i show detailed information on a partition
l set the sector alignment value
m return to main menu
n create a new protective MBR
o print protective MBR data
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s resize partition table
t transpose two partition table entries
u replicate partition table on new device
v verify disk
w write table to disk and exit
z zap (destroy) GPT data structures and exit
? print this menu
Expert command (? for help): z
About to wipe out GPT on /dev/sda. Proceed? (Y/N): y
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Blank out MBR? (Y/N): y
csa@rusalka
:
~ $
sudo gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
Command (? for help): n
Partition number (1-128, default 1):
First sector (34-3906963422, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-3906963422, default = 3906963422) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
Command (? for help): i
Using 1
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: 7C1DEEB3-DFDE-4502-ADFE-1DF9323DADCE
First sector: 2048 (at 1024.0 KiB)
Last sector: 3906963422 (at 1.8 TiB)
Partition size: 3906961375 sectors (1.8 TiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
The operation has completed successfully.
csa@rusalka
:
~ $
mkfs.xfs /dev/sda1
bash: mkfs.xfs: command not found
csa@rusalka
:
~ $
sudo just install xfsprogs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libreadline5
Suggested packages:
xfsdump attr quota
The following NEW packages will be installed:
libreadline5 xfsprogs
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 746 kB of archives.
After this operation, 3,453 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/ jessie/main libreadline5 armhf 5.2+dfsg-2 [131 kB]
Get:2 http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/ jessie/main xfsprogs armhf 3.2.1 [614 kB]
Fetched 746 kB in 1s (746 kB/s)
Selecting previously unselected package libreadline5:armhf.
(Reading database ... 89605 files and directories currently installed.)
Preparing to unpack .../libreadline5_5.2+dfsg-2_armhf.deb ...
Unpacking libreadline5:armhf (5.2+dfsg-2) ...
Selecting previously unselected package xfsprogs.
Preparing to unpack .../xfsprogs_3.2.1_armhf.deb ...
Unpacking xfsprogs (3.2.1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libreadline5:armhf (5.2+dfsg-2) ...
Setting up xfsprogs (3.2.1) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
csa@rusalka
:
~ $
sudo mkfs.xfs /dev/sda1
mkfs.xfs: /dev/sda1 appears to contain an existing filesystem (ntfs).
mkfs.xfs: Use the -f option to force overwrite.
csa@rusalka
:
~ $
sudo mkfs.xfs /dev/sda1 -f
meta-data=/dev/sda1 isize=256 agcount=4, agsize=122092543 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=488370171, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal log bsize=4096 blocks=238461, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
csa@rusalka
:
~ $
mount /mnt/HD1
csa@rusalka
:
~ $
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 2.5G 25G 9% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 6.4M 457M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p1 63M 21M 43M 33% /boot
tmpfs 93M 0 93M 0% /run/user/1000
tmpfs 93M 0 93M 0% /run/user/1001
/dev/sda1 1.9T 33M 1.9T 1% /mnt/HD