You are not logged in.

#1 2020-10-25 06:45:35

SecondComing
Member
From: Eureka Springs, AR
Registered: 2020-10-25
Posts: 18
Website

[SOLVED]Drive interpreted as wrong size when attempting to copy data t

Hi fellow Arch users. I am Mark Eminger, the second coming of Christ. Greetings from Eureka Springs, Arkansas.

I have a problem with writing data from one disk to another failing due to a false interpretation of the write-to directory's size. I know what caused this problem, but not how to solve it. So let's take it a step at a time.

The read-from drive is an external USB HDD that I have mounted.

The write-to directory is /dev/nvme0n1p3.

Output of `lsblk':

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    1  14.9G  0 disk 
└─sda1        8:1    1  14.9G  0 part /mnt
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0     1M  0 part 
├─nvme0n1p2 259:2    0   512M  0 part /boot
└─nvme0n1p3 259:3    0   238G  0 part /

…which shows that /dev/nvme0n1p3 is a ~256GB drive.

Output of `df -h':

Filesystem      Size  Used Avail Use% Mounted on
dev             3.8G     0  3.8G   0% /dev
run             3.8G  1.2M  3.8G   1% /run
/dev/nvme0n1p3   28G   26G  1.2G  96% /
tmpfs           3.8G   28M  3.7G   1% /dev/shm
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
tmpfs           3.8G  8.0K  3.8G   1% /tmp
/dev/nvme0n1p2  511M   61M  451M  12% /boot
tmpfs           762M  8.0K  762M   1% /run/user/1000
/dev/sda1        15G   15G     0 100% /mnt

…which falsely shows the size of /dev/nvme0n1p3 as 28GB.

Now, the reason this oddity happened (not that it should have, and this I would classify as a bug), is because the method I used to install Arch onto /dev/nvme0n1 was, instead of raw installing Arch from scratch onto the drive, to clone a preexisting Arch installation on a USB flash drive onto a laptop HDD, and proceed to tweak the new system as necessary to make it a new, unique system. Perhaps this wasn't the best idea, I don't know. In any case, I now have this problem. The size of my HDD isn't being read right by df, and attempts to copy data larger than the incorrect size shown onto the HDD are failing. Does anyone know what the problem is?

Last edited by SecondComing (2020-10-25 10:46:23)

Offline

#2 2020-10-25 08:43:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,034

Re: [SOLVED]Drive interpreted as wrong size when attempting to copy data t

One is the partition size, the other one the filesystem.
Whether it's possible to resize the latter depends: https://en.wikipedia.org/wiki/Compariso … pabilities

Offline

Board footer

Powered by FluxBB