Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 96:10:24 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,426 |
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
<div>/run/media/joseph/disk_name</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><div dir="auto">I think you're correct that if something is automounting your USB storage device, it's probably XFCE (or some partof it).</div><div dir="auto"><br></div><div dir="auto">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
<div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div>
It was my error, the command should be:
mkfs.ext4 /dev/sda
The usb was auto-mounted as soon as the command finished.
</blockquote><div><br></div><div>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 partitionsdefined. The first partition would be /dev/sda1, so the usual commands to format such a partition would use /dev/sda1, not /dev/sda.<br></div><div><br></div><div>Since you're formatting it as ext4, I suppose you only intend to use this on Linux
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 <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
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"
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.
Seeing as it's removable media I would expect most of those to have
problems if you DID have a partition table. It's linux that's unusual in being happy with a partition table on removable media.
Hi,
On 4/11/24 09:35, Wol wrote:
Seeing as it's removable media I would expect most of those to have
problems if you DID have a partition table. It's linux that's unusual
in being happy with a partition table on removable media.
That is not the case at all. Without a partition table how would other
OSes handle, say, a USB thumbdrive with multiple partitions?
Various *nixes are the systems that don't mind if you just bang a
filesystem directly onto a storage device. Windows would (and does)
have a conniption if this is attempted.
I know linux doesn't care - has never cared, but historically you did
NOT have partition tables on removable media. Floppy disks didn't have partition tables. I'm not aware of early SD cards or USB sticks having partition tables. It's only relatively recently with "huge" media
sticks that partition tables on removable media have become a thing.