Cannot send files to the basket bin  [Solved]

Help on all MX Re-spins
Message
Author
User avatar
pcfan
Posts: 124
Joined: Mon Feb 05, 2024 6:23 pm

Cannot send files to the basket bin

#1 Post by pcfan »

I have a partition sda3 which contains my files mounted in /home/username/DATA
In order to have access to it I was told to run sudo chown -R yourusername:yourusername /path
However, when I try to delete any file it says that the system (subsystem files) doesn't allow to send it to the basketbin (it is in spanish) so It will be eliminated.
How can I solve this?

Code: Select all

[CODE]Snapshot created on: 20231025_1318
System:
  Kernel: 6.1.0-21-amd64 [6.1.90-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-21-amd64 root=UUID=<filter> ro quiet splash
  Desktop: LXDE v: 0.10.1 info: lxpanel wm: Openbox v: 3.6.1 vt: 7 dm: LightDM v: 1.26.0
    Distro: Senpai Respin Lxde MX-23.3_x64 Libretto octubre 25 2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: LENOVO product: VIUS3 v: Lenovo IdeaPad S400 serial: <superuser required>
    Chassis: type: 10 v: Lenovo IdeaPad S400 serial: <superuser required>
  Mobo: LENOVO model: INVALID v: 31900004WIN8 STD SGL serial: <superuser required>
    UEFI-[Legacy]: LENOVO v: 6DCN92WW(V8.06) date: 02/21/2013
Battery:
  ID-1: BAT1 charge: 0 Wh (0.0%) condition: 24.7/N/A Wh volts: N/A model: LENOVO PABAS0241231
    type: Li-ion serial: <filter> status: not charging
CPU:
  Info: model: Intel Core i3-3217U bits: 64 type: MT MCP arch: Ivy Bridge gen: core 3 level: v2
    built: 2012-15 process: Intel 22nm family: 6 model-id: 0x3A (58) stepping: 9 microcode: 0x21
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 1015 high: 1056 min/max: 800/1700 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 1018 2: 1056 3: 975 4: 1014 bogomips: 14367
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: conditional; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915 v: kernel arch: Gen-7
    process: Intel 22nm built: 2012-13 ports: active: HDMI-A-1 off: LVDS-1 empty: DP-1,VGA-1
    bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1360x768 s-dpi: 96 s-size: 359x203mm (14.13x7.99") s-diag: 412mm (16.24")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: LG (GoldStar) W1943 serial: <filter> built: 2009
    res: 1360x768 hz: 60 dpi: 85 gamma: 1.2 size: 406x229mm (15.98x9.02") diag: 466mm (18.4")
    ratio: 16:9 modes: max: 1360x768 min: 720x400
  Monitor-2: LVDS-1 note: disabled pos: primary model: LG Display 0x03cc built: 2012
    res: 1360x768 dpi: 112 gamma: 1.2 size: 310x174mm (12.2x6.85") diag: 355mm (14") ratio: 16:9
    modes: 1366x768
  API: OpenGL v: 4.2 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 4000 (IVB GT2)
    direct-render: Yes
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo 7 driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20 class-ID: 0403
  API: ALSA v: k6.1.0-21-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Lenovo driver: r8169 v: kernel pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 01:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Device-2: Qualcomm Atheros AR9485 Wireless Network Adapter vendor: Lenovo driver: ath9k
    v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 168c:0032
    class-ID: 0280
  IF: wlan0 state: up mac: <filter>
Drives:
  Local Storage: total: 223.57 GiB used: 135.98 GiB (60.8%)
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37240G size: 223.57 GiB block-size:
    physical: 512 B logical: 512 B speed: 3.0 Gb/s type: SSD serial: <filter> rev: ST17 scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
Partition:
  ID-1: / raw-size: 39.35 GiB size: 37.68 GiB (95.77%) used: 19.48 GiB (51.7%) fs: ext4
    block-size: 4096 B dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 3.72 GiB used: 3 MiB (0.1%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2312 libs: 1229 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/librewolf.list
    1: deb [arch=amd64] http://deb.librewolf.net bookworm main
  Active apt repos in: /etc/apt/sources.list.d/megasync.list
    1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_12/ ./
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://espejito.fder.edu.uy/mxlinux/packages/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https://linux.teamviewer.com/deb stable main
Info:
  Processes: 191 Uptime: 30m wakeups: 2 Memory: 3.69 GiB used: 1.39 GiB (37.5%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)
[/code]

User avatar
CharlesV
Global Moderator
Posts: 7531
Joined: Sun Jul 07, 2019 5:11 pm

Re: Cannot send files to the basket bin

#2 Post by CharlesV »

Ownership does not necessarily mean that you have the rights specified to write to a folder.

do an

Code: Select all

ls -l 

in that folder and see what rights you have in that folder. If you dont have rights to write, then you need to add them.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Stevo
Developer
Posts: 14645
Joined: Fri Dec 15, 2006 7:07 pm

Re: Cannot send files to the basket bin

#3 Post by Stevo »

We have GUI tools in the file managers that allow to to look at and change permissions, too.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
towwire
Posts: 684
Joined: Fri Oct 15, 2010 12:15 pm

Re: Cannot send files to the basket bin

#4 Post by towwire »

I do not use LXDE, I use Xfce.

He said that...

Code: Select all

I have a partition sda3 which contains my files mounted in /home/username/DATA
In order to have access to it I was told to run sudo chown -R yourusername:yourusername /path
I would question his mount point. If the path was not correct then the sudo command will not do anything. Also if they use $USER:$USER then it replaces $USER with the username that was used to logged in.

I think that his path or mount point is most likely like this "/media/towwire/My_Data/" which is for one of mine. I have never mounted a partition in /$HOME, only used system links.
It is easier to fight for one's principles then to live up to them.

MXRobo
Posts: 1834
Joined: Thu Nov 14, 2019 12:09 pm

Re: Cannot send files to the basket bin

#5 Post by MXRobo »

@pcfan
IIRC, you had a little trouble setting up the DATA partition - or whatever was used.
You may want to include that link, or at least the part indicating what you did.

Also, IIRC, I would not have done it the way that you did, BUT that's mostly because I really only know my method.

IIRC, CB bailed me out.

Good Luck

User avatar
fehlix
Developer
Posts: 12740
Joined: Wed Apr 11, 2018 5:09 pm

Re: Cannot send files to the basket bin  [Solved]

#6 Post by fehlix »

pcfan wrote: Tue May 28, 2024 6:48 pm I have a partition sda3 which contains my files mounted in /home/username/DATA
In order to have access to it I was told to run sudo chown -R yourusername:yourusername /path
However, when I try to delete any file it says that the system (subsystem files) doesn't allow to send it to the basketbin (it is in spanish) so It will be eliminated.
How can I solve this?
Some information are missing. E.g Which file system is the partition formatted with?
Further what file-manager is in use?
Does the file-manager support Trash/Wastebasket, and is normally "Send to Trash" working?
You can check wheter gvfs/gio-trashing is working
e.g by these steps on the terminal command line:
* Open terminal as normal user.
*change to the DATA mounted partition

Code: Select all

cd ~/DATA
* List current items with the Wastebaket/Trash

Code: Select all

gio trash --list
* Maybe clear /remove all items within the Trash:

Code: Select all

gio trash --empty
* Now the test:
create a TEST directory and change into, and create a testfile.txt

Code: Select all

mkdir TEST
cd TEST
echo This is a Test. > testfile.txt
* Now send this testfile to the wastebasket:

Code: Select all

gio trash testfile.txt
* list the trash-bin:

Code: Select all

gio trash --list
Open the filemanager and check the Trash item "testfile.txt"
is visable.
If not, the file manger you are use might not support trashing
for files located on another mounted partition.
If so, consider another filemanager to be used.
HTH
PS:
Maybe this:
WIthin PCmanFM preferences window -> General
do untick "Erase files on removable media instead of "trash can" creation"
as show in these pictures:
enable-trash-pcmanfm-for-mounts-en.png
in Spanish:
enable-trash-pcmanfm-for-mounts-es.png
You do not have the required permissions to view the files attached to this post.

User avatar
pcfan
Posts: 124
Joined: Mon Feb 05, 2024 6:23 pm

Re: Cannot send files to the basket bin

#7 Post by pcfan »

Dear Friends, I am so sorry I couldn't return earlier with the info you need. I will answer each one right now.
Last edited by pcfan on Sat Jul 06, 2024 11:52 am, edited 1 time in total.

User avatar
pcfan
Posts: 124
Joined: Mon Feb 05, 2024 6:23 pm

Re: Cannot send files to the basket bin

#8 Post by pcfan »

I am editing this post since I realize I am in a different machine... I will return as soon as possible.

User avatar
pcfan
Posts: 124
Joined: Mon Feb 05, 2024 6:23 pm

Re: Cannot send files to the basket bin

#9 Post by pcfan »

I am sorry it toke me so long to return. I have been working in another computer an left this one aside
In fact I had to pick it up from my office.

[/quote]
Some information are missing. E.g Which file system is the partition formatted with?

Partition is GPT, dev/sda2 ext4 , dev/sda3 (DATA) ext4


Further what file-manager is in use?
PCManFM

Does the file-manager support Trash/Wastebasket, and is normally "Send to Trash" working?
Yes

You can check wheter gvfs/gio-trashing is working
e.g by these steps on the terminal command line:
* Open terminal as normal user.
*change to the DATA mounted partition

Code: Select all

  
* List current items with the Wastebaket/Trash

Code: Select all

gio trash --list

It doesn't show anything, it was clean
It returns to cd ~/DATA


* Maybe clear /remove all items within the Trash:

Code: Select all

gio trash --empty
* Now the test:
create a TEST directory and change into, and create a testfile.txt

Code: Select all

mkdir TEST
cd TEST
echo This is a Test. > testfile.txt
* Now send this testfile to the wastebasket:

Code: Select all

gio trash testfile.txt
* list the trash-bin:

Code: Select all

gio trash --list
Open the filemanager and check the Trash item "testfile.txt"
is visable.

This worked perfectly :happy:

If not, the file manger you are use might not support trashing
for files located on another mounted partition.
If so, consider another filemanager to be used.
HTH
PS:
Maybe this:
WIthin PCmanFM preferences window -> General
do untick "Erase files on removable media instead of "trash can" creation"
as show in these pictures:
enable-trash-pcmanfm-for-mounts-en.png
in Spanish:
enable-trash-pcmanfm-for-mounts-es.png
[/quote]

This last step did the trick (so far) . THANK YOU ! :number1:

It seems my systems understands that sda3 is an external unit. Because now I can move the files there to the basket-bin.
Last edited by pcfan on Sat Jul 13, 2024 11:10 am, edited 1 time in total.

User avatar
pcfan
Posts: 124
Joined: Mon Feb 05, 2024 6:23 pm

Re: Cannot send files to the basket bin

#10 Post by pcfan »

CharlesV wrote: Tue May 28, 2024 7:42 pm Ownership does not necessarily mean that you have the rights specified to write to a folder.

do an

Code: Select all

ls -l 

in that folder and see what rights you have in that folder. If you dont have rights to write, then you need to add them.

Code: Select all

total 0
I don't know what this mean or how to change it.

Post Reply

Return to “MX Respins”