[SOLVED] Cannot delete drive files
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 1
- Posts: 35
- Joined: Fri Apr 02, 2021 9:00 am
[SOLVED] Cannot delete drive files
New to LInux and built a Linux PC and I moved some HDDs over from my previous Windows PC. I can read files on the drives just fine but can't delete the files. I found a way to access the files using root and updated the permissions and was able to delete files, but after a restart I'm not able to again. How do I go about fixing this and giving me full access to the files on the drive?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Cannot delete drive files
Are you dual booting with Windows?
If so it is a Windows issue & you need to disable fat boot in Windows.
https://www.passfab.com/windows-10/disa ... ws-10.html
Windows does not release the disk completely & so Linux is unable to perform some actions on the disk..
If so it is a Windows issue & you need to disable fat boot in Windows.
https://www.passfab.com/windows-10/disa ... ws-10.html
Windows does not release the disk completely & so Linux is unable to perform some actions on the disk..
Re: Cannot delete drive files
RIH meant " fast" boot. xD
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
Re: Cannot delete drive files
Hey..now..don't apologize. There is nothing wrong with a fat boot..Fat boot= more stability for running up mountains. xD Keep sense of humor sharp
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
- ricardogroetaers
- Level 6
- Posts: 1372
- Joined: Sat Oct 27, 2018 3:06 am
- Location: Rio de Janeiro, Brasil
Re: Cannot delete drive files
Assuming that the hard drives remain fixed, I ask you to post the output of the commands:thelonghop wrote: ⤴Fri Apr 02, 2021 9:25 pm I can read files on the drives just fine but can't delete the files.
id
lsblk -fi
cat /etc/fstab
I ask you to mention which volumes (file systems), shown in "lsblk -fi", with which you are having problems.
-
- Level 1
- Posts: 35
- Joined: Fri Apr 02, 2021 9:00 am
Re: Cannot delete drive files
No, not dual booting. The Linux mint was install on a new drive, then after I confirmed everything was running I pulled some data drives out of the Windows PC. They don't have Windows installed on them.RIH wrote: ⤴Fri Apr 02, 2021 10:33 pm Are you dual booting with Windows?
If so it is a Windows issue & you need to disable fat boot in Windows.
https://www.passfab.com/windows-10/disa ... ws-10.html
Windows does not release the disk completely & so Linux is unable to perform some actions on the disk..
-
- Level 1
- Posts: 35
- Joined: Fri Apr 02, 2021 9:00 am
Re: Cannot delete drive files
ricardogroetaers wrote: ⤴Sat Apr 03, 2021 1:25 amAssuming that the hard drives remain fixed, I ask you to post the output of the commands:thelonghop wrote: ⤴Fri Apr 02, 2021 9:25 pm I can read files on the drives just fine but can't delete the files.
id
lsblk -fi
cat /etc/fstab
I ask you to mention which volumes (file systems), shown in "lsblk -fi", with which you are having problems.
Code: Select all
uid=1000(mint) gid=1000(mint) groups=1000(mint),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),114(lpadmin),134(sambashare)
Code: Select all
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0
squash 0 100% /snap/mono
loop1
squash 0 100% /snap/core
loop2
squash 0 100% /snap/snap
sda
|-sda1
|
`-sda2
ntfs Backup
6CEE119FEE11631E 863.4G 69% /media/mat
sdb
`-sdb1
ntfs Data1 9424CDFC24CDE17A 612.6G 34% /media/mat
sdc
`-sdc1
ntfs Data2
0C3910DC0C3910DC 252.1G 86% /media/mat
nvme0n1
|
|-nvme0n1p1
| vfat DF1C-DC0B 503.2M 2% /boot/efi
`-nvme0n1p2
ext4 43d8d77d-cecc-48a8-9e12-b7ec77e56ed6 1.7T 2% /run/times
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=43d8d77d-cecc-48a8-9e12-b7ec77e56ed6 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=DF1C-DC0B /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
Re: Cannot delete drive files
Still relevant, if that win PC did not have fast start disabled, then the chances are that the ntfs partitions are locked and read-only. Plug them back into the win PC, disable fast start and then shut down.The Linux mint was install on a new drive, then after I confirmed everything was running I pulled some data drives out of the Windows PC.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
- ricardogroetaers
- Level 6
- Posts: 1372
- Joined: Sat Oct 27, 2018 3:06 am
- Location: Rio de Janeiro, Brasil
Re: Cannot delete drive files
I understand, thank you.thelonghop wrote: ⤴Sat Apr 03, 2021 9:22 am It's the Backup, Data1, and Data2 drives that have the permission issues.
I ask you to confirm that your username on this computer is really "mint".
-
- Level 1
- Posts: 35
- Joined: Fri Apr 02, 2021 9:00 am
Re: Cannot delete drive files
nopericardogroetaers wrote: ⤴Sat Apr 03, 2021 10:55 pmI understand, thank you.thelonghop wrote: ⤴Sat Apr 03, 2021 9:22 am It's the Backup, Data1, and Data2 drives that have the permission issues.
I ask you to confirm that your username on this computer is really "mint".
- ricardogroetaers
- Level 6
- Posts: 1372
- Joined: Sat Oct 27, 2018 3:06 am
- Location: Rio de Janeiro, Brasil
Re: Cannot delete drive files
You probably posted the output of the "id" command using a Linux Mint installation medium. Am I right or am I wrong or was it just a coincidence?thelonghop wrote: ⤴Sun Apr 04, 2021 12:00 amnopericardogroetaers wrote: ⤴Sat Apr 03, 2021 10:55 pm I ask you to confirm that your username on this computer is really "mint".
There it appears to be "mint" as your username.
Mystery?
I don't need to know your username on that computer to suggest an attempt at a solution, but it would help a lot if you did.
It is up to you to inform or not.
-
- Level 1
- Posts: 35
- Joined: Fri Apr 02, 2021 9:00 am
Re: Cannot delete drive files
That was probably it! I did as suggested, but then also used the 'safely eject' option for each of them as well. Added them back to the Linux PC and I have full control over the files. Thanks!AndyMH wrote: ⤴Sat Apr 03, 2021 2:38 pmStill relevant, if that win PC did not have fast start disabled, then the chances are that the ntfs partitions are locked and read-only. Plug them back into the win PC, disable fast start and then shut down.The Linux mint was install on a new drive, then after I confirmed everything was running I pulled some data drives out of the Windows PC.
Re: [SOLVED] Cannot delete drive files
Just one of the things we have to live with alongside win. Fast start = win never shuts down, just gives the user the illusion that it has shut down so that it can appear quick to boot. That together with 'disable secure boot' are the two things you need to do if dual booting or working with win. If you are not sharing those drives with any win PC, you would be better off converting them to ext4, i.e. a native linux filesystem.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Re: [SOLVED] Cannot delete drive files
Indeed Andy is correct. This is just one of the many reasons why I don't dual boot Windows and Linux worlds within the same storage drive. There is just too much to have to remember/keep up with to ensure things work correctly. It's just not worth the headache. That's why whenever I absolutely must do something within the Windows world on the same machine I use to run LM 20.1 Cinnamon with...I power it down completely..disconnect all Linux-only involved drives, connect only Windows-coherent drives and then power it on.
This way, I keep the two worlds as separated as possible and keep my sanity. xD
This way, I keep the two worlds as separated as possible and keep my sanity. xD
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor