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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C56B21381F3 for ; Fri, 3 Jul 2020 21:59:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75CEEE081B; Fri, 3 Jul 2020 21:59:47 +0000 (UTC) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0AF73E07FA for ; Fri, 3 Jul 2020 21:59:46 +0000 (UTC) Received: by mail-qk1-x72b.google.com with SMTP id e13so29984681qkg.5 for ; Fri, 03 Jul 2020 14:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=9nkA0xNBipwHx5fjSV+PypVJWQZtyOP+vKs539PpUp8=; b=MPBN+N4a121iF0TvFZsQ2EDaOuOlFSvjhdICkeApsWrqPFDb10PekLwACILbXFucJ5 89x5FHTRRBdYIvQsoOJY+UIARn3D8RCGjBMUWY72nVtfEDkOkKL5tFYyeMXpDJRkxCIy NzVn/Vtvqo6HXJWu3FctvxK0zxi+mp3ArTw+PLK+9HJGNBFUuckvk2BSUj+jR/X3qTCs 0Be5BCxZYWF3GO3R+b63K41XZBD3p5tyCInj6BW74tcGTdwq2imYOtzQucMs09wO3VKX rnlsQcuqIuNH4/HZ3pdRePzIoSOl0zKxwlvyIb6sn1h/6qxkw85flT4XkN05BRBImBJ7 +6ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to; bh=9nkA0xNBipwHx5fjSV+PypVJWQZtyOP+vKs539PpUp8=; b=kNXrkrl9fBXSNZj/BZghebkltTGpEAVOkSvDQLPv8M2Gfb/4oRUqXbR0/WR4WYukhx XxjQwFsxy30i5bLeOKMtzkfoe0glRoPXTIpocdCJOEam4dQpFCx7L1m8eXx4RC3ADwGt ai5DP2uMGdRMzRl29zqM8q2adawDWQDiImacMhB5A7fo1nBxLBCrSPKYtwyxZNyLI+E3 8NBl2CeQq52vT6WvXjMmDfd7MvIvtSv+fdv57wWgLIZ/KXMPv6XpzvI61T3WwnZbt56B DVBWT439X26HzT4HKOd6oqSqz0zkLor9Xk1WLXXsP5qJCaNM85vX9atBiA9vLMzuJZX1 z0Dg== X-Gm-Message-State: AOAM530UU0D/z2LxB0n2q71n/uL1+Mhntsjyi1sUo+RriwJ0m3gn1Vmi WRVO10063pDi4da6BwX5L+U= X-Google-Smtp-Source: ABdhPJzGyQoVTt8GeFSCVMm6UdhUekfkzGpCkajoeiwLUVxR+CCV/iRguN5Xh9goCxk3stqNrutehg== X-Received: by 2002:ae9:eb0a:: with SMTP id b10mr37161045qkg.198.1593813586207; Fri, 03 Jul 2020 14:59:46 -0700 (PDT) Received: from [192.168.0.100] (adsl-074-188-244-087.sip.asm.bellsouth.net. [74.188.244.87]) by smtp.gmail.com with ESMTPSA id w11sm12648026qtk.35.2020.07.03.14.59.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2020 14:59:45 -0700 (PDT) Subject: Re: [gentoo-user] USB ext2 flash drive - No space left on device To: gentoo-user@lists.gentoo.org References: <9795d50a-c8bd-b96a-7cc0-9266e7c04047@sys-concept.com> <64669941-2389-2905-9e06-cb2cb2ae440c@sys-concept.com> From: Dale Openpgp: preference=signencrypt Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt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X6eIhANkMFo6oJVjuEgy1dvu1wFfDq7c+i8GAHu L4pYzyXYu6PporlNNU0xSwdVgzM/uuK0lt+UxCimgC+YR3IezgDcbfudb7h9dGIwL+bbPL0A EQEAAYkCNgQYAQgAIBYhBNnuy6u48FpLrRsJhe8Qz9da75mcBQJcXOzIAhsMAAoJEO8Qz9da 75mcXZ4P/1YXgWDZek7mhzrf6uaQzMxa92P89HeWz4PlgB/32symeEFAV04WazzBZffI8AYY rGA1Xmu/2VaB9+FOODyKhUWBc2UL0NRWBk6POwboyTdKlclmpixaN9zLcBt0YLejoRfN1B/5 aQf9/lUDZMnAiCyz0FgeqEMUshldmwWC35RqnjrCbbuk2vIqSH6BLDIXU6jQrLHE1DF0ai41 wLtQFAFXPhn45n0ZwYhVs4Z32z4sjXrIvgBgCaXa4HM+L1Klne0KiNM8ReFTTpTE0SgyDOSZ O3MOa2n77i6JbVtsbiFYnNeP3J9S/l3jevGpZEtNQOKrIm1MW8jGuHWtsDeMkT/mCcSodlkt PxIo+mMK9GpGvG2hW80LiohqNfUbNwAmr3blOYY4URPXPRnEnPs4pmTmL5owjw2dkg145i9I D42Tq+XZ6YtWt3SGzGbAYow6XwTwZ5NFAzV9UQuCGrDw4KWan6O6Z+VIYWsn0UMZlu1Obxna aocofkaUCbISK26kImuD1aA8juSHC18Qv1xUage6/UakbSxyDtACqt6hOVFKX3IA59ApdNRT +2x3iCmlvF9MJsGgFq6IpqL+Fk7iWV8Kjbz0wQOId6N9+JdQh3LrLaS7a1PowUm1z9DK5/O0 Yg+gpDnEOOFI7WM5u7a7FSM2Z/LXGVwel/0eWvLk9tN6 Message-ID: <2f2e0ea4-af04-5f05-ac52-fcc651c7db1a@gmail.com> Date: Fri, 3 Jul 2020 16:59:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.2 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 In-Reply-To: <64669941-2389-2905-9e06-cb2cb2ae440c@sys-concept.com> Content-Type: multipart/alternative; boundary="------------D5944D4292E8A29A56CB0E1B" X-Archives-Salt: a6556e1f-d20a-48f0-ad9c-4fd81025bd58 X-Archives-Hash: c752f7a5f4d77a9487d5d64d4f3207d9 This is a multi-part message in MIME format. --------------D5944D4292E8A29A56CB0E1B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit thelma@sys-concept.com wrote: > On 07/03/2020 03:12 PM, thelma@sys-concept.com wrote: >> I have a USB flash drive with ext2 file system and when I try to copy a >> file I get an error "No space left on device" >> >> df -Th >> Filesystem Type Size Used Avail Use% Mounted on >> /dev/sdb1 ext2 944M 1.4M 943M 1% /run/media/thelma/UUI >> >> df -i >> Filesystem Inodes IUsed IFree IUse% Mounted on >> /dev/sdb1 61440 21 61419 1% /run/media/thelma/UUI >> > Here is more info: > > tune2fs -l /dev/sdb1 > tune2fs 1.43.6 (29-Aug-2017) > Filesystem volume name: UUI > Last mounted on: /run/media/thelma/UUI > Filesystem UUID: 4348ab9b-f3ec-4908-b11b-73a460882cd5 > Filesystem magic number: 0xEF53 > Filesystem revision #: 1 (dynamic) > Filesystem features: ext_attr resize_inode dir_index filetype > sparse_super large_file > Filesystem flags: signed_directory_hash > Default mount options: user_xattr acl > Filesystem state: not clean with errors > Errors behavior: Continue > Filesystem OS type: Linux > Inode count: 61440 > Block count: 245504 > Reserved block count: 0 > Free blocks: 241291 > Free inodes: 61419 > First block: 0 > Block size: 4096 > Fragment size: 4096 > Reserved GDT blocks: 59 > Blocks per group: 32768 > Fragments per group: 32768 > Inodes per group: 7680 > Inode blocks per group: 480 > Filesystem created: Wed Oct 7 08:28:52 2015 > Last mount time: Fri Jul 3 15:25:24 2020 > Last write time: Fri Jul 3 15:27:21 2020 > Mount count: 2594 > Maximum mount count: -1 > Last checked: Wed Oct 7 08:28:52 2015 > Check interval: 0 () > Lifetime writes: 61 MB > Reserved blocks uid: 0 (user root) > Reserved blocks gid: 0 (group root) > First inode: 11 > Inode size: 256 > Required extra isize: 28 > Desired extra isize: 28 > Default directory hash: half_md4 > Directory Hash Seed: dbea2a4c-9588-4364-a8de-96e68f24db09 > FS Error count: 126 > First error time: Sat Jun 6 19:33:04 2020 > First error function: mb_free_blocks > First error line #: 1470 > First error inode #: 13 > First error block #: 1589 > Last error time: Fri Jul 3 15:27:21 2020 > Last error function: __ext4_new_inode > Last error line #: 884 > Last error inode #: 0 > Last error block #: 0 > > I notice this little bit. Filesystem state: not clean with errors and FS Error count:           126 It may be that it was removed while still mounted.  Maybe a file system check would help?? I did some googling.  For the instances I found like this, people took all files off the USB device, re-partitioned and reformatted the device and then copied the files back.  That seemed to be the cleanest and easiest solution.  If checking the file system doesn't help, that may be your next option.  I might add, some had to do that with new USB sticks straight out of the box. I also saw mentions of inodes but generally, that didn't turn out to be the problem.  I think you can check those with df -i.  Hope that helps or someone else comes along with a better idea. Dale :-)  :-)  --------------D5944D4292E8A29A56CB0E1B Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 07/03/2020 03:12 PM, thelma@sys-concept.com wrote:
I have a USB flash drive with ext2 file system and when I try to copy a
file I get an error "No space left on device"

df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sdb1      ext2      944M  1.4M  943M   1% /run/media/thelma/UUI

df -i
Filesystem       Inodes  IUsed    IFree IUse% Mounted on
/dev/sdb1         61440     21    61419    1% /run/media/thelma/UUI

Here is more info:

tune2fs -l /dev/sdb1
tune2fs 1.43.6 (29-Aug-2017)
Filesystem volume name:   UUI
Last mounted on:          /run/media/thelma/UUI
Filesystem UUID:          4348ab9b-f3ec-4908-b11b-73a460882cd5
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      ext_attr resize_inode dir_index filetype
sparse_super large_file
Filesystem flags:         signed_directory_hash
Default mount options:    user_xattr acl
Filesystem state:         not clean with errors
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              61440
Block count:              245504
Reserved block count:     0
Free blocks:              241291
Free inodes:              61419
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      59
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         7680
Inode blocks per group:   480
Filesystem created:       Wed Oct  7 08:28:52 2015
Last mount time:          Fri Jul  3 15:25:24 2020
Last write time:          Fri Jul  3 15:27:21 2020
Mount count:              2594
Maximum mount count:      -1
Last checked:             Wed Oct  7 08:28:52 2015
Check interval:           0 (<none>)
Lifetime writes:          61 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Default directory hash:   half_md4
Directory Hash Seed:      dbea2a4c-9588-4364-a8de-96e68f24db09
FS Error count:           126
First error time:         Sat Jun  6 19:33:04 2020
First error function:     mb_free_blocks
First error line #:       1470
First error inode #:      13
First error block #:      1589
Last error time:          Fri Jul  3 15:27:21 2020
Last error function:      __ext4_new_inode
Last error line #:        884
Last error inode #:       0
Last error block #:       0




I notice this little bit.


Filesystem state: not clean with errors

and

FS Error count:           126


It may be that it was removed while still mounted.  Maybe a file system check would help??

I did some googling.  For the instances I found like this, people took all files off the USB device, re-partitioned and reformatted the device and then copied the files back.  That seemed to be the cleanest and easiest solution.  If checking the file system doesn't help, that may be your next option.  I might add, some had to do that with new USB sticks straight out of the box.

I also saw mentions of inodes but generally, that didn't turn out to be the problem.  I think you can check those with df -i. 

Hope that helps or someone else comes along with a better idea.

Dale

:-)  :-) 
--------------D5944D4292E8A29A56CB0E1B--