From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B3AC6158042 for ; Thu, 24 Oct 2024 02:43:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9407DE0AAD; Thu, 24 Oct 2024 02:43:24 +0000 (UTC) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17762E0A5D for ; Thu, 24 Oct 2024 02:43:23 +0000 (UTC) Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-e2972abc807so498560276.3 for ; Wed, 23 Oct 2024 19:43:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729737803; x=1730342603; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=yPwNyI4o2fc06iwudxyGQLMfXuTPN3bT6c6G9xwgwoM=; b=RDmB/cHQCIqxZzOgZfpeGxSo0O9SYJi583xh9ynkcTPFzSIiQZQy71Mc1WbuoqZZL2 9SwPqCWf/2c7SmU+LfJVl/GhtTgDkUWog7XUFPMtF3q20g8RpUReAa6vQT/oG9d+2pQ5 +iy9aCfZuwhQqeuBwH1cID7NpYGsn0Z+5noBl2CJhoeAnQIiLF+YqsgvEsJDF4NE2EhO /t7uIHIm1A7n72Xifhbt7ThDuT/KRP8uxzfJFtaF6xTlxL3zGpg7HHmI+bfI1TQ9Ub4a hJIpmnY+GUtvP2sOo4/HcOipl+I633fSn2CnnxrK5tUVQBLZAuII0vgUj5fzSBPaA+00 F6Mw== X-Gm-Message-State: AOJu0YzvVfXV7eYd7PkWdc51IRwsQHm0EUeswwhDQw1yiWsaK2P4KlXW EiTtcAn3gWvCgrgFuqpUjca+xqEKyfihj5uP31Lg9u8Dc+7CaJdos0ZeuN+c08ZEQ5lbGJxOZYM u X-Google-Smtp-Source: AGHT+IEdr96DYdcxyWMM9vp2LCR7ugXRjQBqNfiv5SENjPprbamBP9R0HxulS6jGjlzR+POn0YMPJA== X-Received: by 2002:a05:6902:1243:b0:e2b:dde2:30bd with SMTP id 3f1490d57ef6-e2f2fc106a3mr459436276.53.1729737803020; Wed, 23 Oct 2024 19:43:23 -0700 (PDT) Received: from [172.20.0.25] ([50.226.37.190]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e2bdcaebe0dsm1710412276.51.2024.10.23.19.43.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Oct 2024 19:43:21 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------2hLUeyO5e0iZSYeS3LMGqqaZ" Message-ID: Date: Wed, 23 Oct 2024 22:42:34 -0400 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] format usb as ext4 To: gentoo-user@lists.gentoo.org References: Content-Language: en-US From: Jack Ostroff In-Reply-To: X-Archives-Salt: 5f9cbad5-dd66-47d8-8172-6d9e80d0bf41 X-Archives-Hash: 4ca720f01dd0779c4cf22d1145091818 This is a multi-part message in MIME format. --------------2hLUeyO5e0iZSYeS3LMGqqaZ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit [resent from my subscribed email] "mkfs.ext4 /dev/sda" will create/format an ext4 partition taking up the entire device, which will then easily be automounted. "mkfs.ext4 /dev/sda1" can work, but only if you have already created a partition table on /dev/sda and created at least one partition in it.  It probably won't automount because the system doesn't know which of the possibly several partitions on the device should be mounted, but I haven't tested. On 10/23/24 10:34 PM, syscon edm wrote: > It was my error, the command should be: > mkfs.ext4 /dev/sda > The usb was auto-mounted as soon as the command finished. > > It has been some time since I run it, but looking at some > documentation on-line a lot of instructions show to run: > sudo mkfs.ext4 /dev/sdX1 > > eg: > https://unix.stackexchange.com/questions/422656/how-to-make-an-ext4-formatted-usb-drive-with-full-rw-permissions-for-any-linux-m > Even Google AI if one search: "gentoo format usb as ext4" > it shows to run: > sudo mkfs -t ext4 /dev/sdb1 > > this will work but the disk will not automount in XFCE, > it should be: > sudo mkfs.ext4 /dev/sdX > > > > On Wed, Oct 23, 2024 at 8:20 PM Mitchell Dorrell wrote: > > On Wed, Oct 23, 2024, 20:35 syscon edm wrote: > > I format usb as ext4 > mkfs.ext4 /dev/sda1 > > but XFCE does not automount the partition > my other usb (ext4 as well) shows up automatically under > /run/media/joseph/disk_name > > > I think you're correct that if something is automounting your USB > storage device, it's probably XFCE (or some part of it). > > I don't personally use XFCE, but I'm sure others here probably do. > If you don't get any responses on this mailing list, then perhaps > try the #gentoo-xfce IRC channel. If that's also quiet, you might > try another venue that focuses specifically on XFCE, such as the > official XFCE links at https://www.xfce.org/community . > > -Mitchell Dorrell > --------------2hLUeyO5e0iZSYeS3LMGqqaZ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

[resent from my subscribed email]

"mkfs.ext4 /dev/sda" will create/format an ext4 partition taking up the entire device, which will then easily be automounted.

"mkfs.ext4 /dev/sda1" can work, but only if you have already created a partition table on /dev/sda and created at least one partition in it.  It probably won't automount because the system doesn't know which of the possibly several partitions on the device should be mounted, but I haven't tested.

On 10/23/24 10:34 PM, syscon edm wrote:
It was my error, the command should be:
mkfs.ext4 /dev/sda
The usb was auto-mounted as soon as the command finished.

It has been some time since I run it, but looking at some documentation on-line a lot of instructions show to run:
sudo mkfs.ext4 /dev/sdX1

eg:
Even Google AI if one search: "gentoo format usb as ext4"
it shows to run:
sudo mkfs -t ext4 /dev/sdb1

this will work but the disk will not automount in XFCE, 
it should be:
sudo mkfs.ext4 /dev/sdX



On Wed, Oct 23, 2024 at 8:20 PM Mitchell Dorrell <mwd@psc.edu> wrote:
On Wed, Oct 23, 2024, 20:35 syscon edm <syscon780@gmail.com> wrote:
I format usb as ext4
mkfs.ext4 /dev/sda1

but XFCE does not automount the partition 
my other usb (ext4 as well) shows up automatically under
/run/media/joseph/disk_name

I think you're correct that if something is automounting your USB storage device, it's probably XFCE (or some part of it).

I don't personally use XFCE, but I'm sure others here probably do. If you don't get any responses on this mailing list, then perhaps try the #gentoo-xfce IRC channel. If that's also quiet, you might try another venue that focuses specifically on XFCE, such as the official XFCE links at https://www.xfce.org/community .

-Mitchell Dorrell
--------------2hLUeyO5e0iZSYeS3LMGqqaZ--