* [gentoo-user] format usb as ext4 @ 2024-10-24 0:34 syscon edm 2024-10-24 2:19 ` Mitchell Dorrell 0 siblings, 1 reply; 12+ messages in thread From: syscon edm @ 2024-10-24 0:34 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 169 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 251 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 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 0 siblings, 1 reply; 12+ messages in thread From: Mitchell Dorrell @ 2024-10-24 2:19 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 718 bytes --] 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 > [-- Attachment #2: Type: text/html, Size: 1451 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-10-24 2:19 ` Mitchell Dorrell @ 2024-10-24 2:34 ` syscon edm 2024-10-24 2:42 ` Jack Ostroff 2024-10-24 3:01 ` Mitchell Dorrell 0 siblings, 2 replies; 12+ messages in thread From: syscon edm @ 2024-10-24 2:34 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1459 bytes --] 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 > >> [-- Attachment #2: Type: text/html, Size: 2828 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-10-24 2:34 ` syscon edm @ 2024-10-24 2:42 ` Jack Ostroff 2024-10-24 13:11 ` syscon edm 2024-10-24 3:01 ` Mitchell Dorrell 1 sibling, 1 reply; 12+ messages in thread From: Jack Ostroff @ 2024-10-24 2:42 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2026 bytes --] [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 <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 > [-- Attachment #2: Type: text/html, Size: 5188 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-10-24 2:42 ` Jack Ostroff @ 2024-10-24 13:11 ` syscon edm 2024-10-24 13:16 ` Michael 0 siblings, 1 reply; 12+ messages in thread From: syscon edm @ 2024-10-24 13:11 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2310 bytes --] 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" On Wed, Oct 23, 2024 at 8:43 PM Jack Ostroff < ostroffjh@users.sourceforge.net> wrote: > [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 <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 >> >>> [-- Attachment #2: Type: text/html, Size: 5409 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-10-24 13:11 ` syscon edm @ 2024-10-24 13:16 ` Michael 0 siblings, 0 replies; 12+ messages in thread From: Michael @ 2024-10-24 13:16 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 640 bytes --] 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 #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-10-24 2:34 ` syscon edm 2024-10-24 2:42 ` Jack Ostroff @ 2024-10-24 3:01 ` Mitchell Dorrell 2024-10-24 8:33 ` Jacques Montier 2024-11-03 23:35 ` Wol 1 sibling, 2 replies; 12+ messages in thread From: Mitchell Dorrell @ 2024-10-24 3:01 UTC (permalink / raw To: gentoo-user [-- 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 --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-10-24 3:01 ` Mitchell Dorrell @ 2024-10-24 8:33 ` Jacques Montier 2024-11-03 23:35 ` Wol 1 sibling, 0 replies; 12+ messages in thread From: Jacques Montier @ 2024-10-24 8:33 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1335 bytes --] Le jeu. 24 oct. 2024 à 05:01, Mitchell Dorrell <mwd@psc.edu> a écrit : > 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 > Hello, Same issue. No automount usb disk ext4 formatted with cinnamon 6. Automounting with fat32, ntfs or xfat formatted disk. Cheers, -- Jacques [-- Attachment #2: Type: text/html, Size: 2420 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-10-24 3:01 ` Mitchell Dorrell 2024-10-24 8:33 ` Jacques Montier @ 2024-11-03 23:35 ` Wol 2024-11-04 2:11 ` Matt Jolly 1 sibling, 1 reply; 12+ messages in thread From: Wol @ 2024-11-03 23:35 UTC (permalink / raw To: gentoo-user On 24/10/2024 04:01, Mitchell Dorrell wrote: > 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. Cheers, Wol ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-11-03 23:35 ` Wol @ 2024-11-04 2:11 ` Matt Jolly 2024-11-04 7:35 ` Wols Lists 0 siblings, 1 reply; 12+ messages in thread From: Matt Jolly @ 2024-11-04 2:11 UTC (permalink / raw To: gentoo-user 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. Regards, Matt ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-11-04 2:11 ` Matt Jolly @ 2024-11-04 7:35 ` Wols Lists 2024-11-04 8:32 ` Viorel Munteanu 0 siblings, 1 reply; 12+ messages in thread From: Wols Lists @ 2024-11-04 7:35 UTC (permalink / raw To: gentoo-user On 04/11/2024 02:11, Matt Jolly wrote: > 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? I wasn't aware they could... > > 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. If you wanted to boot a Windows install from a USB stick, I'm used to just dd'ing the CD iso (shows how long ago that was) to the stick. Certainly in the early days, istr Windows being unable to find a partition table on a USB stick. Cheers, Wol ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] format usb as ext4 2024-11-04 7:35 ` Wols Lists @ 2024-11-04 8:32 ` Viorel Munteanu 0 siblings, 0 replies; 12+ messages in thread From: Viorel Munteanu @ 2024-11-04 8:32 UTC (permalink / raw To: gentoo-user La 04.11.2024 09:35, Wols Lists a scris: > 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. > Actually they did. USB sticks had a partition table, and Windows would would only see the first partition. It did not show you the partition table, but it was there. I think the last floppy without a partition table was the 1.44 MB one (ok, the 2.88 MB too, but I never saw one). Even ZIP drives had a partition table. Viorel ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-11-04 8:32 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox