On 09/26/2018 08:34 AM, Howard, Chris wrote:
Why do parted and mount have this difference?
/dev/sdg1 ?
What he said.
/dev/sdg is the whole device
/dev/sdg1 is the first partition on that device.
Partitions have file systems. Partitions with file systems can be mounted.
parted works on the whole device.
mount works on the partitions with file systems.
Also, if I'm not mistaken, when you create a partition using parted's
mkpart command, you designate which type of partition it is, and that
info is stored in the partition table, but it doesn't format the file
system for you. You have to follow parted with a mkfs command for each
partition you create, e.g.:
mkfs.xfs /dev/sdg1
Then you can mount the partition.
--
Gilles R. Detillieux E-mail: <[email protected]>
Spinal Cord Research Centre WWW:
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scrc.umanitoba.ca_&d=DwIDaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A&m=kHIwLV7GEvlQ7BsFbN-khVlm2Jk3eNpdwHa3-CU-mO4&s=KqeP2Q6oibvXAtGzrqiHduxB129MkpySzDVazbtVcFw&e=
Dept. of Physiology and Pathophysiology, Rady Faculty of Health Sciences,
Univ. of Manitoba Winnipeg, MB R3E 0J9 (Canada)