format thumbdrive.

Carruth, Rusty Rusty.Carruth at smartm.com
Wed Dec 19 10:19:28 MST 2018


Well, remember that thumb drives aren’t really that super fast when writing, so 3 hours might be ‘to be expected’.  Yeah, I know, even if it’s a super-speed device.  Underneath its ‘just flash’, which does have something of a speed limit, even though certain commands are REALLY FAST (reading tends to be extremely fast, for example.  Writing can be, if the device is not all ‘fragmented’ (or what amounts to being fragmented).

On the other hand, if you’re using Windows it does a full read scan to ‘test’ the device.  (I’m assuming you’re not using Windows, but thought I’d mention this)

Also, writing all the super blocks and so forth takes a bit (a non-trivial bit, actually).  If you could erase the stick before writing it, you might find it to be much faster.  Or maybe not.  So much depends upon the controller inside the stick.

Ok, so to the question of why the permissions were wrong. Were you logged in via X as yourself when you inserted the stick?  If not, ownership of the stick will almost certainly not be what you wanted.  (As I recall from past experiences)  Also, if you were logged in, you might get the stick automounted, which you don’t want.  However, if you use the GUI to unmount the stick, it does MORE than just unmount it - you are highly likely to also lose the device (/dev/sdb, for example).  Instead, use ‘umount’ (possibly as root) to unmount the device.

I think you can set some options in /etc/fstab to make the ownership right, or maybe udev rules, or somewhere, but I’ve always just been lazy and become root….


Rusty

From: PLUG-discuss [mailto:plug-discuss-bounces at lists.phxlinux.org] On Behalf Of Michael
Sent: Wednesday, December 19, 2018 10:09 AM
To: Main PLUG discussion list
Subject: Re: format thumbdrive.

of 25.1 GB

On Wed, Dec 19, 2018 at 12:04 PM Michael <bmike1 at gmail.com<mailto:bmike1 at gmail.com>> wrote:
I'm pretty sure the drive is messed up. it is telling me 3 hours to completion

On Wed, Dec 19, 2018 at 8:50 AM Michael <bmike1 at gmail.com<mailto:bmike1 at gmail.com>> wrote:
That worked but why was the permission wrong?

On Wed, Dec 19, 2018 at 2:34 AM Dhruva Lokegaonkar <dhruva at lokegaonkar.in<mailto:dhruva at lokegaonkar.in>> wrote:
There's a good chance your drive is dead. But try changing the
permissions. It might just be that you don't "own" the drive.

Check the ownership info using `ls -la`
If the owner is root, change it to your user with
`sudo chown youruser:youruser /path/to/drivemount -R`


On 12/19/18 8:52 AM, Michael wrote:
> nevermind.... I just didn't wait long enough.
>
> but this time I get a different error:
>
> $ cp ~/Desktop/* /media/bmike1/009598a2-cbbe-4970-abd0-f75f3c4de28a
> cp: cannot create regular file
> '/media/bmike1/009598a2-cbbe-4970-abd0-f75f3c4de28a/google-chrome.desktop':
> Permission denied
> cp: cannot create regular file
> '/media/bmike1/009598a2-cbbe-4970-abd0-f75f3c4de28a/Link to 2017.kmy':
> Permission denied
> cp: cannot create regular file
> '/media/bmike1/009598a2-cbbe-4970-abd0-f75f3c4de28a/Link to
> Contacted.ods': Permission denied
> cp: cannot create regular file
> '/media/bmike1/009598a2-cbbe-4970-abd0-f75f3c4de28a/Link to
> Earnings2018.ods': Permission denied
> cp: cannot create regular file
> '/media/bmike1/009598a2-cbbe-4970-abd0-f75f3c4de28a/Link to
> Earnings2019.ods': Permission denied
> cp: cannot create regular file
> '/media/bmike1/009598a2-cbbe-4970-abd0-f75f3c4de28a/Link to Workflow':
> Permission denied
>
>
> On Tue, Dec 18, 2018 at 10:14 PM Michael <bmike1 at gmail.com<mailto:bmike1 at gmail.com>
> <mailto:bmike1 at gmail.com<mailto:bmike1 at gmail.com>>> wrote:
>
>     I remembered what the command is: mkfs
>     But I enter the command and:
>     $ sudo mkfs -text4 /dev/sdc
>     mke2fs 1.42.13 (17-May-2015)
>     Creating filesystem with 15436800 4k blocks and 3866624 inodes
>     Filesystem UUID: 009598a2-cbbe-4970-abd0-f75f3c4de28a
>     Superblock backups stored on blocks:
>     32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
>     4096000, 7962624, 11239424
>
>     Allocating group tables: done
>     Writing inode tables: done
>     Creating journal (32768 blocks): done
>     Writing superblocks and filesystem accounting information:
>
>     and it just sits there as if it is waiting for a variable.
>     What should I do?
>
>     On Tue, Dec 18, 2018 at 8:57 AM Michael <bmike1 at gmail.com<mailto:bmike1 at gmail.com>
>     <mailto:bmike1 at gmail.com<mailto:bmike1 at gmail.com>>> wrote:
>
>         I left click on it (why didn't I think of that) and format it
>         but it does not allow me to copy to it. I then tried with tty
>         and it says 'permission denied'. Another thing, it does not take
>         the label I assign to it.
>
>         On Tue, Dec 18, 2018 at 2:37 AM Jim <jim.nantz15 at comcast.net<mailto:jim.nantz15 at comcast.net>
>         <mailto:jim.nantz15 at comcast.net<mailto:jim.nantz15 at comcast.net>>> wrote:
>
>             My mistake. I meant lower right.  Any idea why that wouldn't
>             work for Mike?
>
>             On 12/18/18 12:36 AM, Jim wrote:
>>
>>             I have KDE on this dinosaur and I have no trouble
>>             formatting them.  i plug it in, then wait for the window
>>             that pops up in the lower left telling me my options.  I
>>             don't mount it.  I open Gparted or the KDE disk utility
>>             and format it.  If that doesn't work for Michael, I would
>>             wonder if something's wrong with his system.
>>
>>             On 12/17/18 10:50 PM, Dhruva Lokegaonkar wrote:
>>>             If you're on Gnome (latest Ubuntu/ Fedora) then you can use
>>>             gnome-disk-utility. (It's probably just called "Disks" on your computer.)
>>>
>>>             Click on the thumb drive on the left menu, then click on the partition
>>>             on the right side. (I'm guessing there's only one). Make sure its
>>>             highlighted. Then Press Control+Shift+F.
>>>
>>>             Give it a name in "Volume Name"
>>>             Make sure Erase is turned off. (Erase will do a in-depth wipe, which
>>>             takes very long)
>>>             Then select "For use with all systems and devices (FAT)" and click next.
>>>              (I've attached a screenshot)
>>>
>>>             I'm guessing the rest is self explanatory. I don't have a pen drive
>>>             handy and I don't want to format my drive haha.
>>>
>>>             If you want to do this from the Command line
>>>             Use `lsblk` to list all your connected drives and check which drive you
>>>             want to format. Then check again. and again to make sure.
>>>             Then copy the device path. (Something like /dev/sdb1) and execute
>>>             `sudo mkfs.fat -F 32 /dev/sdb1`
>>>             change sdb1 to whatever your drive is.
>>>             Make sure its the right drive though.
>>>
>>>             On 12/18/18 8:07 AM, Michael wrote:
>>>>             I thought I would be able to do it without help but I guess I was wrong.
>>>>             I got a thumbdrive that I want to format. gparted will not do it. Anyone
>>>>             able to help?
>>>>
>>>>             --
>>>>             :-)~MIKE~(-:
>>>>
>>>>             ---------------------------------------------------
>>>>             PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org> <mailto:PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>>
>>>>             To subscribe, unsubscribe, or to change your mail settings:
>>>>             https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>
>>>
>>>             ---------------------------------------------------
>>>             PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org> <mailto:PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>>
>>>             To subscribe, unsubscribe, or to change your mail settings:
>>>             https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>>             ---------------------------------------------------
>>             PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org> <mailto:PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>>
>>             To subscribe, unsubscribe, or to change your mail settings:
>>             https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>             ---------------------------------------------------
>             PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>
>             <mailto:PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>>
>             To subscribe, unsubscribe, or to change your mail settings:
>             https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
>         --
>         :-)~MIKE~(-:
>
>
>
>     --
>     :-)~MIKE~(-:
>
>
>
> --
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>

--

Dhruva Lokegaonkar
dhruva at lokegaonkar.in<mailto:dhruva at lokegaonkar.in> <mailto:dhruva at lokegaonkar.in<mailto:dhruva at lokegaonkar.in>>
lokegaonkar.in<http://lokegaonkar.in> <https://lokegaonkar.in>

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org<mailto:PLUG-discuss at lists.phxlinux.org>
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss


--
:-)~MIKE~(-:


--
:-)~MIKE~(-:


--
:-)~MIKE~(-:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20181219/5030662a/attachment.html>


More information about the PLUG-discuss mailing list