LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 03-21-2017, 09:31 PM   #1
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Rep: Reputation: Disabled
Talking All files 4k.? wrong in CL


My new Arch is pretty happy but for a detail:

In command line (Terminology)and using enlightenment file manager in a window, nearly all directories are 4k. which is wrong and it seems to be effecting my ability to do basic copy functions in both.

Odder, Thunar file manager has no problem at all and gives all correct readings. I'm able to use it normally.

Never seen a windowed program do what CL would'nt. I do need the CL to work tho'.

ls -l gets this. Many gigs should be there and can be used but no correct sizings. 4096. every directory, but not the .deb. Missing dependency for directories?


drwxr-xr-x 4 barkester users 4096 Mar 20 03:33 'Calibre Library'
drwxr-xr-x 2 barkester users 4096 Mar 19 01:23 Desktop
drwxr-xr-x 2 barkester users 4096 Mar 18 12:52 Documents
drwxr-xr-x 5 barkester users 4096 Mar 20 04:26 Downloads
drwxr-xr-x 34 barkester users 4096 Mar 18 14:01 Music
drwxr-xr-x 2 barkester users 4096 Mar 20 04:26 Pictures
drwxr-xr-x 2 barkester users 4096 Mar 18 12:52 Public
drwxr-xr-x 2 barkester users 4096 Mar 18 12:52 Templates
drwxr-xr-x 3 barkester users 4096 Mar 19 01:22 Videos
-rw-r--r-- 1 barkester users 51549860 Mar 18 14:15 Yandex.deb

Next rung down in music, we find all but one directory with 4096b. The only directory properly listed is totally ununique other than the fact it's proper size comes up. However, the mother directory (music) still shows 4k. Spotty. Here's a small piece of it with the magic directory:

drwxrwxr-x 2 barkester users 12288 Mar 5 07:41 'VA - Drum & Bass, DubStep, Trap V.10 from AGR (2014) MP3, 320 kbps'
drwx------ 2 barkester users 4096 Mar 9 03:57 'VA - DubStep Pro v.19 from AGR (2013) MP3, 320 kbps'
drwxrwxr-x 6 barkester users 4096 Feb 1 2015 'VA - Ministry Of Sound - Fiesta Latin House Anthems (3CD) (2014) [320 kbps]'
drwxrwxr-x 2 barkester users 4096 Feb 23 2016 'VA - Ministry Of Sound : The Annual 2016 [2015] [MP3-VBR] [H4CKUS] [GloDLS]'

Countless other music directories also list 4096, but all can play.

My best guess is I need install another disc utility. I've already installed my fave, GParted, but haven't any of the others. The others may have dependency-like usage I'm unaware of and be needed. Clearly something is missing. What does a terminal use to get volume size info?

Thnx for any info. Pls b gentle. I'm an Arch virgin.
 
Old 03-21-2017, 09:45 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
The 4096 figure is not the total size of all the content in the directory. It is the size of the data block(s) that contains the directory entries (each data block is normally a minimum size of 4096 bytes). As long as that data block has enough space to contain the directory entries then the figure remains at 4096.

See: http://askubuntu.com/questions/18681...4096-bytes-4-k for further explanation.
 
1 members found this post helpful.
Old 03-21-2017, 09:58 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The size shown for a directory is a function of the number of files it contains (contains directly, not including content of any subdirectories) and the lengths of their names. It is absolutely unrelated to the sizes of those files. That size will always be a multiple of the filesystem blocksize, here 4096. Also, a directory never shrinks. If it becomes enlarged because it contains a lot of files, perhaps with long names, it will retain that size when those files are deleted.

You can use the du command ("Disk Usage") to see the total space used by a directory's contents.
 
1 members found this post helpful.
Old 03-22-2017, 07:11 PM   #4
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Original Poster
Rep: Reputation: Disabled
Thanks for that. The link was a help. Process of elimination right now.

Reckon I'll havta look elsewhere for that copy function tick. I'll retest and use a terminal I'm used to. Start over. Hopefully, that'll clear it up.

Currently, I'm studying from The Linux command Line, so even tho' I can easily copy using Thunar, I need to follow the lessons in CL only. Hit the copy commands and got stopped dead.

Like the rest of the world, I was hoping for an easy answer that didn't involve me doing much. Worth a shot. I'll do all the usual checks again now with a new terminal and go from there.

Still learning something, so no worries. Thnx for the blocks lesson. Didn't know ext. cared.
 
Old 03-22-2017, 07:15 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Can you provide an example of the copy problem?
 
Old 03-23-2017, 10:21 PM   #6
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Original Poster
Rep: Reputation: Disabled
Sure...


Mostly copying from a half trig portable and it was large files that enlightenment couldn't do. Was no way to copy my whole music file to the new OS using it or CL. I finally did it file at a time with Enlightenment which managed small ones all right before me getting fed up and trying Thunar.

I haven't had time to test Thunar and all the options in CL yet, but honestly, it looks like Enlightenment is just a bit buggy. Also, I may experiment with a different mounting point as I always mounted portables to root before (and did all their partitioning, etc.) and now its media. With no easy answers, I'll just havta go thru it all. Possibly its 2 small but unrelated problems confusingly appearing as one.

I'll have some better examples and hopefully a better answer example for this in a few days. Unrelated tasks await me first.

Thnx.
 
Old 04-01-2017, 08:11 PM   #7
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Original Poster
Rep: Reputation: Disabled
Directory names were identical combined with a noob CLI mistake. Fixed.
 
Old 04-01-2017, 09:09 PM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Barkester View Post
Directory names were identical combined with a noob CLI mistake. Fixed.
Glad you got it sorted. Thanks for letting us know.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Files open on wrong screen kkv1009 Slackware 6 08-02-2016 10:00 AM
[SOLVED] GREP: only for text files? What am I doing wrong? Adams Seven Linux - Newbie 4 12-26-2015 09:10 PM
dropbox destroys files: what did I do wrong? dgermann Linux - General 3 08-27-2013 09:22 PM
Catting files together is not working, what am I doing wrong? BajaNick Linux - General 5 02-13-2005 05:33 PM
Up %$## creek, deleted wrong files. Passive Linux - Software 2 07-21-2004 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration