public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mitchell Dorrell <mwd@psc.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] format usb as ext4
Date: Wed, 23 Oct 2024 23:01:09 -0400	[thread overview]
Message-ID: <CAHqckJ3jngD5NMxcNPbLUjZRtyM-6cC1wdcz2Y0ok0HeT2Ee2g@mail.gmail.com> (raw)
In-Reply-To: <CAEVFJ_D+V2_7-VZ6NQp04eQT1RiFUNTpLkwXZU6441k-d18pMA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

On Wed, Oct 23, 2024 at 10:35 PM syscon edm <syscon780@gmail.com> wrote:

> It was my error, the command should be:
> mkfs.ext4 /dev/sda
> The usb was auto-mounted as soon as the command finished.
>

You can format the whole thing (/dev/sda) as one big ext4 volume, yes, but
unless I'm very mistaken, that's not standard practice. USB storage devices
usually have a partition table with one or more partitions defined. The
first partition would be /dev/sda1, so the usual commands to format such a
partition would use /dev/sda1, not /dev/sda.

Since you're formatting it as ext4, I suppose you only intend to use this
on Linux machines. I guess it's probably OK to format the whole device as
ext4, without any partition table. However, I would definitely advise
against it for any USB device you might use in a cross-platform
environment. I have no idea whether you can skip the partition table and
still be usable with computers running Windows or Mac OS or with embedded
systems like home printers or commercial photo kiosks.

-MD

[-- Attachment #2: Type: text/html, Size: 1462 bytes --]

  parent reply	other threads:[~2024-10-24  3:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-24  0:34 [gentoo-user] format usb as ext4 syscon edm
2024-10-24  2:19 ` Mitchell Dorrell
2024-10-24  2:34   ` syscon edm
2024-10-24  2:42     ` Jack Ostroff
2024-10-24 13:11       ` syscon edm
2024-10-24 13:16         ` Michael
2024-10-24  3:01     ` Mitchell Dorrell [this message]
2024-10-24  8:33       ` Jacques Montier
2024-11-03 23:35       ` Wol
2024-11-04  2:11         ` Matt Jolly
2024-11-04  7:35           ` Wols Lists
2024-11-04  8:32             ` Viorel Munteanu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHqckJ3jngD5NMxcNPbLUjZRtyM-6cC1wdcz2Y0ok0HeT2Ee2g@mail.gmail.com \
    --to=mwd@psc.edu \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox