Timeline for How to use Linux to Partition and Format a blank external hard drive where the partitions were lost
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 21, 2021 at 14:48 | answer | added | user787832 | timeline score: 0 | |
Feb 16, 2021 at 17:15 | comment | added | Kamil Maciorowski |
In short: wipefs (just in case, probably not needed), fdisk (or gdisk ), mkfs.ext4 (why so many tools?). Can you take it from here? (man is your friend). I understand you want to create everything anew, i.e. discard the old data whatever it is. What a great opportunity to experiment! There are only two scenarios where things get worse: (1) you confuse disks (e.g. /dev/sda instead of /dev/sdb ; lsblk is also your friend; think twice twice); (2) random malfunction of the hardware.
|
|
Feb 16, 2021 at 16:45 | comment | added | Stack Exchange Supports Israel |
df -h only shows filesystems. Until you create a partition and format it, you don't have a filesystem. Try lsblk which shows disks and partitions.
|
|
Feb 16, 2021 at 16:43 | comment | added | user787832 | df -h does not detect it. How can I partition it via a command line tool if I don't have a path to point it to? | |
Feb 16, 2021 at 15:26 | comment | added | Stack Exchange Supports Israel | It's normal for it to not be mounted if it's not partitioned. Writing a partition table should be super quick though since it just writes the table... | |
Feb 16, 2021 at 15:01 | history | asked | user787832 | CC BY-SA 4.0 |