I've formatted a 3TB external hard drive as ext4 using fdisk (actually gnu fdisk), mounted it at /media/external and am trying to copy my entire home directory to it.
My first attempt I thought was successful, but after a while when the process stopped, I couldn't cd into the copied home directory. cd seemed to fail:
sudo: cd: command not found
I then thought there might be some limit to cp and then tried again using tar.
cd /from-stuff/ tar cf – . | (cd /to-stuff; tar xvf -)
I measured my home directory size to be ~100G. When in my home directory, I ran:
du -ch | grep total
I've mounted it as:
sudo mount -t ext4 /dev/sdd1 /media/external
Note that I could not mount
/dev/sdd which shows up on
sudo fdisk -l while /dev/sdd1 does not.
When formatting I did the most default setup, 1 partition, default everything else. I confirmed that formatting correctly by not having any 'invalid partition table errors.' I'm new to this so please bear with. I may have accidentally chosen GUID? but do not know how to check that or re-format away from that to whatever it may need to be.
Is there anything glaring that I did incorrectly? Can someone maybe offer an fdisk sequence to really make sure everything is 1 basic partition formatted as ext4?
Here's my documentation on what I did to format. Please clarify/augment if you can. There may have been a failed gparted attempt before this:
sudo fdisk /dev/sdb # this will pull up an interactive menu n # create a new partition p # create a primary partition [enter] # use default value of 1 for the partition number [enter] # use default value of 256 for first sector [enter] # use default value for last sector w # write these settings and leave the interactive menu # make the file system sudo mkfs.ext4 /dev/sdb1