Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Real Users are afraid they'll break the machine -- but they're never afraid to break your face.


computers / comp.os.linux.misc / Re: More formatting USB

SubjectAuthor
* More formatting USBdb
+* Re: More formatting USBMarco Moock
|+- Re: More formatting USBKenny McCormack
|+- Re: More formatting USB51b.1055
|`* Re: More formatting USBdb
| +* Re: More formatting USBThe Natural Philosopher
| |+* Re: More formatting USBJerry Peters
| ||`- Re: More formatting USBThe Natural Philosopher
| |`- Re: More formatting USBCarlos E. R.
| `* Re: More formatting USBDavid W. Hodgins
|  `- root_owner (Was: More formatting USB)Kenny McCormack
`* Re: More formatting USBDavid W. Hodgins
 `* Re: More formatting USBCarlos E. R.
  `* Re: More formatting USBDavid W. Hodgins
   `- Re: More formatting USBThe Natural Philosopher

1
More formatting USB

<uc4o7b$2t003$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13446&group=comp.os.linux.misc#13446

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.os.linux.misc
Subject: More formatting USB
Date: Wed, 23 Aug 2023 12:49:15 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <uc4o7b$2t003$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 23 Aug 2023 10:49:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fba146115b7c460478ed59fb1ed2a520";
logging-data="3047427"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PHknVU2GPdi5SQd8fgqj7f3p0MSTjkJQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:QcMja0MhYeE/JdckRmACwbe+NE4=
Content-Language: en-US
 by: db - Wed, 23 Aug 2023 10:49 UTC

I got a lot of advice on how to format a USB stick and ended up
typing in

sudo mkfs.ext4 /dev/sdb1

This worked, except for a few things. Firstly I guess there
must be an option for the final name of the device (I can
find this out). Secondly, in order to copy stuff on the
device, I must preface the command with sudo and type in
my password. OK, I can do that, but why?
Thirdly, and most irritatingly, after the first (largish)
copy, subsequent copy operations gave the notice that the
job was stopped. Why is this? I must find out how to resume
a stopped job, which I think I can.
But why is all this happening? What should I type in to
format a USB stick?

As mentioned before, I work under Kubuntu 23.04.

--
Dieter Britz

Re: More formatting USB

<uc4r6c$2tam7$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13447&group=comp.os.linux.misc#13447

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Wed, 23 Aug 2023 13:39:56 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <uc4r6c$2tam7$2@dont-email.me>
References: <uc4o7b$2t003$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 23 Aug 2023 11:39:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="91fe2df983741d2e47c219fc146ccd85";
logging-data="3058375"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190hnd8Q6waSBC2NydnSEJa"
Cancel-Lock: sha1:YdEaqzszucSMGZio6bjo+Qsvq+I=
 by: Marco Moock - Wed, 23 Aug 2023 11:39 UTC

Am 23.08.2023 um 12:49:15 Uhr schrieb db:

> I got a lot of advice on how to format a USB stick and ended up
> typing in
>
> sudo mkfs.ext4 /dev/sdb1
>
> This worked, except for a few things. Firstly I guess there
> must be an option for the final name of the device (I can
> find this out).

https://unix.stackexchange.com/questions/289477/what-is-the-difference-between-a-name-and-a-label-in-gparted
e2label can change the label.

> Secondly, in order to copy stuff on the device, I must preface the
> command with sudo and type in my password. OK, I can do that, but why?

Change the permissions on the device, so you can write there. If the
owner is root and only the owner is allowed to write, this is what
happens.

Re: More formatting USB

<op.194ylhsma3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13449&group=comp.os.linux.misc#13449

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Wed, 23 Aug 2023 11:28:19 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <op.194ylhsma3w0dxdave@hodgins.homeip.net>
References: <uc4o7b$2t003$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="50b9c58c0ee94fb0867801a72c3f6dee";
logging-data="3136875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JSpn38dOxIQ0X4WYPYrnHgOum9LkxSnc="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:5/fgCtJFrWuEO0j8W8Inyo7Xm1I=
 by: David W. Hodgins - Wed, 23 Aug 2023 15:28 UTC

On Wed, 23 Aug 2023 06:49:15 -0400, db <dieterhansbritz@gmail.com> wrote:

> I got a lot of advice on how to format a USB stick and ended up
> typing in
>
> sudo mkfs.ext4 /dev/sdb1
>
> This worked, except for a few things. Firstly I guess there
> must be an option for the final name of the device (I can

Use the option "-L volume-label" as per man mkfs.ext4 when formatting the
partition. To add a label to an unmounted existing formatted partition use
"tune2fs -L volume-label /dev/sdb1".

> find this out). Secondly, in order to copy stuff on the
> device, I must preface the command with sudo and type in
> my password. OK, I can do that, but why?

It was mounted by root. Unmount it, unplug the device and plug it back in.
I'm assuming Kubuntu uses udev and it's kde has the removable devices system
tray applet enabled.
If desired, use systemsettings5/Hardware/Removable storage to enable auto
mounting of the file system owned by the currently logged in user.

> Thirdly, and most irritatingly, after the first (largish)
> copy, subsequent copy operations gave the notice that the
> job was stopped. Why is this? I must find out how to resume
> a stopped job, which I think I can.

How are you doing the copy? If using a command with & to put it in the background,
use the fg command to bring the job back to the foreground.

> But why is all this happening? What should I type in to
> format a USB stick?

The formatting is done. The problems described are about how to mount it with
the desired owner, and a how copying files work.

> As mentioned before, I work under Kubuntu 23.04.

I'm using Mageia, but any distribution using a recent version of the kde plasma
desktop environment should be the same.

Regards, Dave Hodgins

Re: More formatting USB

<uc5mr7$3uk0m$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13451&group=comp.os.linux.misc#13451

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Wed, 23 Aug 2023 19:31:51 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uc5mr7$3uk0m$1@news.xmission.com>
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me>
Injection-Date: Wed, 23 Aug 2023 19:31:51 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="4149270"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Wed, 23 Aug 2023 19:31 UTC

In article <uc4r6c$2tam7$2@dont-email.me>, Marco Moock <mo01@posteo.de> wrote:
>Am 23.08.2023 um 12:49:15 Uhr schrieb db:
>
>> I got a lot of advice on how to format a USB stick and ended up
>> typing in
>>
>> sudo mkfs.ext4 /dev/sdb1
>>
>> This worked, except for a few things. Firstly I guess there
>> must be an option for the final name of the device (I can
>> find this out).
....
>> Secondly, in order to copy stuff on the device, I must preface the
>> command with sudo and type in my password. OK, I can do that, but why?
>
>Change the permissions on the device, so you can write there. If the
>owner is root and only the owner is allowed to write, this is what
>happens.

Use "-E root_owner=1000:1000" on the mkfs command.

(Assuming 1000:1000 is you)

Note that if you do the mkfs as you, you won't need the =1000:1000, but of
course, since you are accessing a device, you need to use sudo for the
mkfs, so you will need to specify it.

As far as I can tell, from the man page, you have to use numeric IDs; you
can't do myuser:myuser.

--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/FiftyPercent

Re: More formatting USB

<kknra9F4fjaU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13456&group=comp.os.linux.misc#13456

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Wed, 23 Aug 2023 21:50:01 -0400
Lines: 32
Message-ID: <kknra9F4fjaU1@mid.individual.net>
References: <uc4o7b$2t003$1@dont-email.me>
<op.194ylhsma3w0dxdave@hodgins.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net +QPu4OzQz1DQeeKey3EOEQBQoEwIalhLK9g7ArNESjT96o+bLE
Cancel-Lock: sha1:YusdrdJJ7K0Sokln8vneoDdrks8= sha256:6FnKJnqcZ5JosVb0H9Qx4meX48LT9ul4fWPWVB8pKI0=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <op.194ylhsma3w0dxdave@hodgins.homeip.net>
 by: Carlos E. R. - Thu, 24 Aug 2023 01:50 UTC

On 2023-08-23 11:28, David W. Hodgins wrote:
> On Wed, 23 Aug 2023 06:49:15 -0400, db <dieterhansbritz@gmail.com> wrote:
>
>> I got a lot of advice on how to format a USB stick and ended up
>> typing in

....

>> find this out). Secondly, in order to copy stuff on the
>> device, I must preface the command with sudo and type in
>> my password. OK, I can do that, but why?
>
> It was mounted by root. Unmount it, unplug the device and plug it
> back in. I'm assuming Kubuntu uses udev and it's kde has the
> removable devices system tray applet enabled. If desired, use
> systemsettings5/Hardware/Removable storage to enable auto mounting
> of the file system owned by the currently logged in user.

Will not work when using ext4 or any other Linux filesystem.

There are several methods. One that has not been mentioned yet is
creating a directory inside owned by the normal user. Notice that this
user will be a different user if the stick is connected to another
computer. It is the uuid number that matters.

....

--
Cheers,
Carlos E.R.

Re: More formatting USB

<op.195y47nya3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13458&group=comp.os.linux.misc#13458

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Thu, 24 Aug 2023 00:37:45 -0400
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <op.195y47nya3w0dxdave@hodgins.homeip.net>
References: <uc4o7b$2t003$1@dont-email.me>
<op.194ylhsma3w0dxdave@hodgins.homeip.net> <kknra9F4fjaU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="487e1b477a37cd883252eea9016784e3";
logging-data="3512082"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/a1hLxSx9Ev/dlDTR+oPr8h8WC/CtcfuM="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:ROOJY9/bHzrg/dCCJphvXRO/8+0=
 by: David W. Hodgins - Thu, 24 Aug 2023 04:37 UTC

On Wed, 23 Aug 2023 21:50:01 -0400, Carlos E. R. <robin_listas@es.invalid> wrote:

>
> On 2023-08-23 11:28, David W. Hodgins wrote:
>> On Wed, 23 Aug 2023 06:49:15 -0400, db <dieterhansbritz@gmail.com> wrote:
>>
>>> I got a lot of advice on how to format a USB stick and ended up
>>> typing in
>
> ...
>
>>> find this out). Secondly, in order to copy stuff on the
>>> device, I must preface the command with sudo and type in
>>> my password. OK, I can do that, but why?
>>
>> It was mounted by root. Unmount it, unplug the device and plug it
>> back in. I'm assuming Kubuntu uses udev and it's kde has the
>> removable devices system tray applet enabled. If desired, use
>> systemsettings5/Hardware/Removable storage to enable auto mounting
>> of the file system owned by the currently logged in user.
>
> Will not work when using ext4 or any other Linux filesystem.
>
> There are several methods. One that has not been mentioned yet is
> creating a directory inside owned by the normal user. Notice that this
> user will be a different user if the stick is connected to another
> computer. It is the uuid number that matters.

My mistake. Thanks for the correction.

It gets mounted with "drwxr-xr-x 3 root root" so the user has read access, but
not write access.

So either the uid has to be specified during the mkfs.ext4 or mount it
using the device notifier and then chown the directory used as the
mount point using sudo. The chown only has to be run the first time it's
mounted, not after subsequent mounts.

Regards, Dave Hodgins

Re: More formatting USB

<yQOdnafSbseQfHv5nZ2dnZfqn_SdnZ2d@earthlink.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13461&group=comp.os.linux.misc#13461

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 24 Aug 2023 04:48:13 +0000
Subject: Re: More formatting USB
Newsgroups: comp.os.linux.misc
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me>
From: 51b.1055@qtq9.net (51b.1055)
Organization: telegraph cerulean
Date: Thu, 24 Aug 2023 00:48:08 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <uc4r6c$2tam7$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <yQOdnafSbseQfHv5nZ2dnZfqn_SdnZ2d@earthlink.com>
Lines: 34
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 68.222.41.40
X-Trace: sv3-ALET3ynxL4VcsZAEJkPLxN4AlIoawGZcWSn8W5Gfw0HL7v9faELQwVF5DLgrJ4JxCmSPYdsbpWKDZX0!6FkbSeJJrFP741TryTXba9BqpCXJOiBMfXuorpHBsid8MfLeA+Otaz5PPEfm5eFXDX7q81RvvBUo!83CcHM6eHqTo8aS4hY8=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: 51b.1055 - Thu, 24 Aug 2023 04:48 UTC

On 8/23/23 7:39 AM, Marco Moock wrote:
> Am 23.08.2023 um 12:49:15 Uhr schrieb db:
>
>> I got a lot of advice on how to format a USB stick and ended up
>> typing in
>>
>> sudo mkfs.ext4 /dev/sdb1
>>
>> This worked, except for a few things. Firstly I guess there
>> must be an option for the final name of the device (I can
>> find this out).
>
> https://unix.stackexchange.com/questions/289477/what-is-the-difference-between-a-name-and-a-label-in-gparted
> e2label can change the label.
>
>> Secondly, in order to copy stuff on the device, I must preface the
>> command with sudo and type in my password. OK, I can do that, but why?
>
> Change the permissions on the device, so you can write there. If the
> owner is root and only the owner is allowed to write, this is what
> happens.

Perfectly correct, 'chmod' to 777 or thereabouts.

And, if a GUI environment, use gparted instead of
the tricky CL stuff.

But it's STILL "best" to format USB sticks as FAT-32
to ensure maximum compatibility. So long as your files
are under 4gb it'll work just perfectly.

USB HDDs ... do whatever you want. FAT-32 isn't adequate.
NTFS *is* often an option for both worlds.

Re: More formatting USB

<uc71dr$3ce0l$7@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13464&group=comp.os.linux.misc#13464

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Thu, 24 Aug 2023 08:38:35 +0100
Organization: A little, after lunch
Lines: 59
Message-ID: <uc71dr$3ce0l$7@dont-email.me>
References: <uc4o7b$2t003$1@dont-email.me>
<op.194ylhsma3w0dxdave@hodgins.homeip.net> <kknra9F4fjaU1@mid.individual.net>
<op.195y47nya3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 24 Aug 2023 07:38:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="96c49c9e69ea11bfa89a85b2c1f841b8";
logging-data="3553301"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YM3OkTyo/68/e3B7l+hhSPCNrWRHSaOc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:Y5sfRD5KUFry1fF0+X+xQ7XqlvI=
In-Reply-To: <op.195y47nya3w0dxdave@hodgins.homeip.net>
Content-Language: en-GB
 by: The Natural Philosop - Thu, 24 Aug 2023 07:38 UTC

On 24/08/2023 05:37, David W. Hodgins wrote:
> On Wed, 23 Aug 2023 21:50:01 -0400, Carlos E. R.
> <robin_listas@es.invalid> wrote:
>
>>
>> On 2023-08-23 11:28, David W. Hodgins wrote:
>>> On Wed, 23 Aug 2023 06:49:15 -0400, db <dieterhansbritz@gmail.com>
>>> wrote:
>>>
>>>> I got a lot of advice on how to format a USB stick and ended up
>>>> typing in
>>
>> ...
>>
>>>> find this out). Secondly, in order to copy stuff on the
>>>> device, I must preface the command with sudo and type in
>>>> my password. OK, I can do that, but why?
>>>
>>> It was mounted by root. Unmount it, unplug the device and plug it
>>> back in. I'm assuming Kubuntu uses udev and it's kde has the
>>> removable devices system tray applet enabled. If desired, use
>>> systemsettings5/Hardware/Removable storage    to enable auto mounting
>>> of the file system owned by the currently logged in user.
>>
>> Will not work when using ext4 or any other Linux filesystem.
>>
>> There are several methods. One that has not been mentioned yet is
>> creating a directory inside owned by the normal user. Notice that this
>> user will be a different user if the stick is connected to another
>> computer. It is the uuid number that matters.
>
> My mistake. Thanks for the correction.
>
> It gets mounted with "drwxr-xr-x 3 root root" so the user has read
> access, but
> not write access.
>
> So either the uid has to be specified during the mkfs.ext4 or mount it
> using the device notifier and then chown the directory used as the
> mount point using sudo. The chown only has to be run the first time it's
> mounted, not after subsequent mounts.
>
> Regards, Dave Hodgins

It's normal to have mount points 777 perms. Then you can adjust the rest
on the device itself.

--
Those who want slavery should have the grace to name it by its proper
name. They must face the full meaning of that which they are advocating
or condoning; the full, exact, specific meaning of collectivism, of its
logical implications, of the principles upon which it is based, and of
the ultimate consequences to which these principles will lead. They must
face it, then decide whether this is what they want or not.

Ayn Rand.

Re: More formatting USB

<uchpmo$1kt7u$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13518&group=comp.os.linux.misc#13518

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Mon, 28 Aug 2023 11:34:16 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <uchpmo$1kt7u$1@dont-email.me>
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 09:34:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dcee2fcaa127457cb80873462963ed3f";
logging-data="1733886"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OlCVaPasSEUrxDQpjF/pT7EiicrHqRBU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:QBJ2ujjqFfu+6ed/lJYtsu+8VKc=
Content-Language: en-US
In-Reply-To: <uc4r6c$2tam7$2@dont-email.me>
 by: db - Mon, 28 Aug 2023 09:34 UTC

On 23.08.2023 13.39, Marco Moock wrote:
> Am 23.08.2023 um 12:49:15 Uhr schrieb db:
>
>> I got a lot of advice on how to format a USB stick and ended up
>> typing in
>>
>> sudo mkfs.ext4 /dev/sdb1
>>
>> This worked, except for a few things. Firstly I guess there
>> must be an option for the final name of the device (I can
>> find this out).
>
> https://unix.stackexchange.com/questions/289477/what-is-the-difference-between-a-name-and-a-label-in-gparted
> e2label can change the label.
>
>> Secondly, in order to copy stuff on the device, I must preface the
>> command with sudo and type in my password. OK, I can do that, but why?
>
> Change the permissions on the device, so you can write there. If the
> owner is root and only the owner is allowed to write, this is what
> happens.
>
How do I do that? I know about chmod but not how to use it on a
device.
--
Dieter Britz

Re: More formatting USB

<uchrc6$1l4gi$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13520&group=comp.os.linux.misc#13520

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Mon, 28 Aug 2023 11:02:46 +0100
Organization: A little, after lunch
Lines: 55
Message-ID: <uchrc6$1l4gi$2@dont-email.me>
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me>
<uchpmo$1kt7u$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 28 Aug 2023 10:02:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ccf87cbc3416f92d9501210cdc964e07";
logging-data="1741330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bDcD652LN5Z+45z9hdWoMQkBtjU6IZQo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:FioOeloM0lesf1ES7PsniP0SeEo=
Content-Language: en-GB
In-Reply-To: <uchpmo$1kt7u$1@dont-email.me>
 by: The Natural Philosop - Mon, 28 Aug 2023 10:02 UTC

On 28/08/2023 10:34, db wrote:
> On 23.08.2023 13.39, Marco Moock wrote:
>> Am 23.08.2023 um 12:49:15 Uhr schrieb db:
>>
>>> I got a lot of advice on how to format a USB stick and ended up
>>> typing in
>>>
>>> sudo mkfs.ext4 /dev/sdb1
>>>
>>> This worked, except for a few things. Firstly I guess there
>>> must be an option for the final name of the device (I can
>>> find this out).
>>
>> https://unix.stackexchange.com/questions/289477/what-is-the-difference-between-a-name-and-a-label-in-gparted
>> e2label can change the label.
>>
>>> Secondly, in order to copy stuff on the device, I must preface the
>>> command with sudo and type in my password. OK, I can do that, but why?
>>
>> Change the permissions on the device, so you can write there. If the
>> owner is root and only the owner is allowed to write, this is what
>> happens.
>>
> How do I do that? I know about chmod but not how to use it on a
> device.

IIRC, but its a long time since I had this problem, you need to ensure
first of all that the mount point is accessible permissions-wise without
any device mounted on it.

Then once mounted all you 'see' are directories - even the root
directory of the device is just a directory, so changing that directory
permissions is possible.

So again to the best of my memorry if you are say going to mount on /mnt

#chmod 777 /mnt
followed by
#mount /dev/whatever /mnt
and then
#chmod 777 /mnt

AGAIN
has effectively opened up the root directory of the device to all and
sundry.

--
"What do you think about Gay Marriage?"
"I don't."
"Don't what?"
"Think about Gay Marriage."

Re: More formatting USB

<op.2ad6hhyla3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13523&group=comp.os.linux.misc#13523

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Mon, 28 Aug 2023 10:57:07 -0400
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <op.2ad6hhyla3w0dxdave@hodgins.homeip.net>
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me>
<uchpmo$1kt7u$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="3630d6cbd91f89b409c301bf80d2a18e";
logging-data="1929776"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CFw5OaNNA3I+Bb+HCzDSPRzBgqPwElLc="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:Gkvk7TNx0nhbemQ9TA6vah3znPY=
 by: David W. Hodgins - Mon, 28 Aug 2023 14:57 UTC

On Mon, 28 Aug 2023 05:34:16 -0400, db <dieterhansbritz@gmail.com> wrote:

> On 23.08.2023 13.39, Marco Moock wrote:
>> Am 23.08.2023 um 12:49:15 Uhr schrieb db:
>>
>>> I got a lot of advice on how to format a USB stick and ended up
>>> typing in
>>>
>>> sudo mkfs.ext4 /dev/sdb1
>>>
>>> This worked, except for a few things. Firstly I guess there
>>> must be an option for the final name of the device (I can
>>> find this out).
>>
>> https://unix.stackexchange.com/questions/289477/what-is-the-difference-between-a-name-and-a-label-in-gparted
>> e2label can change the label.
>>
>>> Secondly, in order to copy stuff on the device, I must preface the
>>> command with sudo and type in my password. OK, I can do that, but why?
>>
>> Change the permissions on the device, so you can write there. If the
>> owner is root and only the owner is allowed to write, this is what
>> happens.
>>
> How do I do that? I know about chmod but not how to use it on a
> device.

$ sudo mkfs.ext4 -E root_owner[=uid:gid] /dev/sdb1
or if the device is already formatted, but not mounted
$ sudo tune2fs -u user -g group /dev/sdb1

Then unplug the device an reinsert it, and once mounted, the specified user
can write to it.

Note that the uid and gid must be numerical, while the user and group can be
either the login/group or the uid/gid.

This was posted earlier by Carlos E. R. on Aug. 23rd.

Regards, Dave Hodgins

root_owner (Was: More formatting USB)

<uciufb$5b2p$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13524&group=comp.os.linux.misc#13524

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.os.linux.misc
Subject: root_owner (Was: More formatting USB)
Date: Mon, 28 Aug 2023 20:01:48 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uciufb$5b2p$1@news.xmission.com>
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me> <uchpmo$1kt7u$1@dont-email.me> <op.2ad6hhyla3w0dxdave@hodgins.homeip.net>
Injection-Date: Mon, 28 Aug 2023 20:01:48 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="175193"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Mon, 28 Aug 2023 20:01 UTC

In article <op.2ad6hhyla3w0dxdave@hodgins.homeip.net>,
David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
....
>This was posted earlier by Kenny McCormack on Aug. 23rd.

FTFY

--
Never, ever, ever forget that "Both sides do it" is strictly a Republican meme.

It is always the side that sucks that insists on saying "Well, you suck, too".

Re: More formatting USB

<ucjaqm$1tcbc$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13526&group=comp.os.linux.misc#13526

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jerry@example.invalid (Jerry Peters)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Mon, 28 Aug 2023 23:32:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <ucjaqm$1tcbc$1@dont-email.me>
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me> <uchpmo$1kt7u$1@dont-email.me> <uchrc6$1l4gi$2@dont-email.me>
Injection-Date: Mon, 28 Aug 2023 23:32:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="062fad18fc3646c48a262837d07cc103";
logging-data="2011500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+k3AxiIaYks24NN0ADiYsOTJ9ALy3qoU="
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/6.1.45 (x86_64))
Cancel-Lock: sha1:r+0ioRh289GxurjJSCZnAbeTr9k=
 by: Jerry Peters - Mon, 28 Aug 2023 23:32 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 28/08/2023 10:34, db wrote:
>> On 23.08.2023 13.39, Marco Moock wrote:
>>> Am 23.08.2023 um 12:49:15 Uhr schrieb db:
>>>
>>>> I got a lot of advice on how to format a USB stick and ended up
>>>> typing in
>>>>
>>>> sudo mkfs.ext4 /dev/sdb1
>>>>
>>>> This worked, except for a few things. Firstly I guess there
>>>> must be an option for the final name of the device (I can
>>>> find this out).
>>>
>>> https://unix.stackexchange.com/questions/289477/what-is-the-difference-between-a-name-and-a-label-in-gparted
>>> e2label can change the label.
>>>
>>>> Secondly, in order to copy stuff on the device, I must preface the
>>>> command with sudo and type in my password. OK, I can do that, but why?
>>>
>>> Change the permissions on the device, so you can write there. If the
>>> owner is root and only the owner is allowed to write, this is what
>>> happens.
>>>
>> How do I do that? I know about chmod but not how to use it on a
>> device.
>
> IIRC, but its a long time since I had this problem, you need to ensure
> first of all that the mount point is accessible permissions-wise without
> any device mounted on it.
>
> Then once mounted all you 'see' are directories - even the root
> directory of the device is just a directory, so changing that directory
> permissions is possible.
>
> So again to the best of my memorry if you are say going to mount on /mnt
>
> #chmod 777 /mnt
> followed by
> #mount /dev/whatever /mnt
> and then
> #chmod 777 /mnt
>
> AGAIN
> has effectively opened up the root directory of the device to all and
> sundry.

You just need to change the permissions/owner on the root directory on
the device, to do this mount the device, assuming it's /mnt, then as
root: chown user.group /mnt
chmod a+rwx /mnt

I don't change the permissions of the mountpoint so that if I
accidently try to write to it without anything mounted there I get a
permission denied message.

Jerry

Re: More formatting USB

<uck426$24rho$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13527&group=comp.os.linux.misc#13527

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Tue, 29 Aug 2023 07:43:18 +0100
Organization: A little, after lunch
Lines: 71
Message-ID: <uck426$24rho$2@dont-email.me>
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me>
<uchpmo$1kt7u$1@dont-email.me> <uchrc6$1l4gi$2@dont-email.me>
<ucjaqm$1tcbc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 29 Aug 2023 06:43:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fbc35335f25c5baa1c849c054c5b5bdc";
logging-data="2256440"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XlgjJA3VA03F8qQlHithon/exeHnrGcA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:JgL0CATtC4cceTklkeSz/C2lNyw=
In-Reply-To: <ucjaqm$1tcbc$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Tue, 29 Aug 2023 06:43 UTC

On 29/08/2023 00:32, Jerry Peters wrote:
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> On 28/08/2023 10:34, db wrote:
>>> On 23.08.2023 13.39, Marco Moock wrote:
>>>> Am 23.08.2023 um 12:49:15 Uhr schrieb db:
>>>>
>>>>> I got a lot of advice on how to format a USB stick and ended up
>>>>> typing in
>>>>>
>>>>> sudo mkfs.ext4 /dev/sdb1
>>>>>
>>>>> This worked, except for a few things. Firstly I guess there
>>>>> must be an option for the final name of the device (I can
>>>>> find this out).
>>>>
>>>> https://unix.stackexchange.com/questions/289477/what-is-the-difference-between-a-name-and-a-label-in-gparted
>>>> e2label can change the label.
>>>>
>>>>> Secondly, in order to copy stuff on the device, I must preface the
>>>>> command with sudo and type in my password. OK, I can do that, but why?
>>>>
>>>> Change the permissions on the device, so you can write there. If the
>>>> owner is root and only the owner is allowed to write, this is what
>>>> happens.
>>>>
>>> How do I do that? I know about chmod but not how to use it on a
>>> device.
>>
>> IIRC, but its a long time since I had this problem, you need to ensure
>> first of all that the mount point is accessible permissions-wise without
>> any device mounted on it.
>>
>> Then once mounted all you 'see' are directories - even the root
>> directory of the device is just a directory, so changing that directory
>> permissions is possible.
>>
>> So again to the best of my memorry if you are say going to mount on /mnt
>>
>> #chmod 777 /mnt
>> followed by
>> #mount /dev/whatever /mnt
>> and then
>> #chmod 777 /mnt
>>
>> AGAIN
>> has effectively opened up the root directory of the device to all and
>> sundry.
>
> You just need to change the permissions/owner on the root directory on
> the device, to do this mount the device, assuming it's /mnt, then as
> root: chown user.group /mnt
> chmod a+rwx /mnt
>
> I don't change the permissions of the mountpoint so that if I
> accidently try to write to it without anything mounted there I get a
> permission denied message.
>
> Jerry

Right. More accurate info than I had in my memory.

I couldn't remember how Unix/Linux treats the permissions on a mount point.

--
Religion is regarded by the common people as true, by the wise as
foolish, and by the rulers as useful.

(Seneca the Younger, 65 AD)

Re: More formatting USB

<klabdeF53d0U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=13535&group=comp.os.linux.misc#13535

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E. R.)
Newsgroups: comp.os.linux.misc
Subject: Re: More formatting USB
Date: Wed, 30 Aug 2023 22:15:10 -0400
Lines: 60
Message-ID: <klabdeF53d0U1@mid.individual.net>
References: <uc4o7b$2t003$1@dont-email.me> <uc4r6c$2tam7$2@dont-email.me>
<uchpmo$1kt7u$1@dont-email.me> <uchrc6$1l4gi$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net od5uNbP64+clv0yHnG2XUweSipA4pbqt1RP45CT3tblx+4wPxM
Cancel-Lock: sha1:AIpkC3Msq5+Kgnsa/OhM7Pr4VWg= sha256:zulMYQ+U/RNQ5bq0JHXZGzaIy6uPMtOGYLrM5yigIvA=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <uchrc6$1l4gi$2@dont-email.me>
 by: Carlos E. R. - Thu, 31 Aug 2023 02:15 UTC

On 2023-08-28 06:02, The Natural Philosopher wrote:
> On 28/08/2023 10:34, db wrote:
>> On 23.08.2023 13.39, Marco Moock wrote:
>>> Am 23.08.2023 um 12:49:15 Uhr schrieb db:
>>>
>>>> I got a lot of advice on how to format a USB stick and ended up
>>>> typing in
>>>>
>>>> sudo mkfs.ext4 /dev/sdb1
>>>>
>>>> This worked, except for a few things. Firstly I guess there
>>>> must be an option for the final name of the device (I can
>>>> find this out).
>>>
>>> https://unix.stackexchange.com/questions/289477/what-is-the-difference-between-a-name-and-a-label-in-gparted
>>> e2label can change the label.
>>>
>>>> Secondly, in order to copy stuff on the device, I must preface the
>>>> command with sudo and type in my password. OK, I can do that, but why?
>>>
>>> Change the permissions on the device, so you can write there. If the
>>> owner is root and only the owner is allowed to write, this is what
>>> happens.
>>>
>> How do I do that? I know about chmod but not how to use it on a
>> device.
>
> IIRC, but its a long time since I had this problem, you need to ensure
> first of all that the mount point is accessible permissions-wise without
> any device mounted on it.
>
> Then once mounted all you 'see' are directories - even the root
> directory of the device is just a directory, so changing that directory
> permissions  is possible.
>
> So again to the best of my memorry if you are say going to mount on /mnt
>
> #chmod 777 /mnt
>  followed by

No, don't do that.

> #mount /dev/whatever /mnt
> and then
> #chmod 777 /mnt

That, yes.

>
> AGAIN
>  has effectively opened up the root directory of the device to all and
> sundry.
>
>
>

--
Cheers,
Carlos E.R.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor