On Thursday 24 October 2024 14:11:12 BST syscon edm wrote:
> Yes, you are right.
> doing "mkfs.ext4 /dev/sda1" worked, but I could only manually mount,
> for automount it has to be entire partition "mkfs.ext4 /dev/sda"

If you want to run "mkfs.ext4 /dev/sda1" then first you must create a 
partition label (e.g DOS, GPT) and add a partition on the device using fdisk, 
parted, etc.  The mkfs command will error out complaining about /dev/sda1 not 
found or something like that.

If the device has no partitions on it, then "mkfs.ext4 /dev/sda" is what you 
have to run.  It will format an ext4 fs on the whole device, like a floppy 
disk.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to