Jump to content

so ok i dont know BEST way to explain this. but in linux mint 7 (very old version) i can boot up to nearly any computer. and delete, modify any file without having to go thugh the horur wait of giving "permissions" on windows, or able to delete a bad virus that cant be deleted when widnows is running. boot linux mint 7, fidn the offending file edit or destroy it.

 

NOW however with like lkinux mint (and all linux) mint ubuntu eta above liek mint 8 or 9 there is a LOCK on the files and says "don't have permission" tyo do that, and read need "root access" to be able to do ANYTHIGN to the file (s) but the onyl way  to get "root access" is to INSTALL the lunux! but i DONT WANT TO INSTALL i want to use the temp linux to modify or delete offending riles, or delete a windows.old without waiting triple time for wondows to giv e"permission" to delete it. HOW CAN I REMOVE the dang lock on a newer linux and be able to easily do it as if i woulddo in linux mint 7?

 

hope i explained it good enugh to show exactly WAHT i  am talkign about.

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/
Share on other sites

Link to post
Share on other sites

3 minutes ago, Nightmare-Rex said:

so ok i dont know BEST way to explain this. but in linux mint 7 (very old version) i can boot up to nearly any computer. and delete, modify any file without having to go thugh the horur wait of giving "permissions" on windows, or able to delete a bad virus that cant be deleted when widnows is running. boot linux mint 7, fidn the offending file edit or destroy it.

 

NOW however with like lkinux mint (and all linux) mint ubuntu eta above liek mint 8 or 9 there is a LOCK on the files and says "don't have permission" tyo do that, and read need "root access" to be able to do ANYTHIGN to the file (s) but the onyl way  to get "root access" is to INSTALL the lunux! but i DONT WANT TO INSTALL i want to use the temp linux to modify or delete offending riles, or delete a windows.old without waiting triple time for wondows to giv e"permission" to delete it. HOW CAN I REMOVE the dang lock on a newer linux and be able to easily do it as if i woulddo in linux mint 7?

 

hope i explained it good enugh to show exactly WAHT i  am talkign about.

The live linux instal doesn’t let you use root? It should… try Su root? 

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15183516
Share on other sites

Link to post
Share on other sites

i mean i coudl keep using mint 7 but eventualy will HAVE to update since less BIOS and more UFEI. and yea i tried doing sudo su    when i find my newer linux i will try the sudo rm but reads omewhere that haden tworked, why do they have to make it difficult? idiots brickign their computers?

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15183517
Share on other sites

Link to post
Share on other sites

  • 1 month later...
Quote

NOW however with like lkinux mint (and all linux) mint ubuntu eta above liek mint 8 or 9 there is a LOCK on the files and says "don't have permission" tyo do that,

if this is referencing the windows systems you talk about, I think it would be related to BitLocker on windows preventing access.

if this is referencing Linux systems you talk about I think that would be because Mint 7 doesnt have the ability to de-crypt encrypted hard drives/ partitions of the newer linux.

 

if it is the system that is to new it could be related to the secure boot or tpm module in bios/uefi. (may need these settings turned off, while you work on the system)

 

however linux mint 20 - 20.3 should be able to help with some of those issues.

current main system: as of 1st Jan 2023

motherboard : Gigabyte B450M DS3H V2

CPU: Ryzen 5 3600

ram : 16Gig Corsair Vengeance 3600mhz

OS :multi-boot

Video Card : RX 550 4 GIG

Monitor: BENQ 21 inch

 

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15269080
Share on other sites

Link to post
Share on other sites

On 1/2/2022 at 8:35 AM, Nightmare-Rex said:

no its nothing in windows that has to do with it, sinced i tested linux 7 on a computer the SAME computer with linux 12 and 13 i think? but 7 works and 12 has locks so it IS somehting IN LINUX not windows.

13 hours ago, Nightmare-Rex said:

im still intrtested learnign more about linux and hhow to remove the lock and why this happens in newer versions but not older versions (bump) if peaople here don't know much about linux anywhere to point me to to learn more?

https://wiki.archlinux.org/title/NTFS-3G#Metadata_kept_in_Windows_cache,_refused_to_mount

 

 

It's possible in older version they were forcing the mount as "rw", https://blog.arvixe.com/how-to-force-mount-unclean-shutdowned-windows-ntfs-or-fat32-drive-in-linux/

Which has since been deprecated, https://linux.die.net/man/8/ntfs-3g

force
This option is obsolete. It has been superseded by the recover and norecover options.

recover
    Recover and try to mount a partition which was not unmounted properly by Windows. The Windows logfile is cleared, which may cause inconsistencies. Currently this is the default option. 

norecover
    Do not try to mount a partition which was not unmounted properly by Windows. 

or there wasn't a check in place, but as of now it is part of the ntfs-3g driver implementation as it should be.

 

For Permissions

https://linux.die.net/man/8/ntfs-3g

Access Handling and Security

By default, files and directories are owned by the effective user and group of the mounting process, and everybody has full read, write, execution and directory browsing permissions

 

https://wiki.archlinux.org/title/NTFS-3G#Default_settings

Default settings

if the parent folder that it is mounted upon has the proper user or group permissions (e.g. /run/media/<username>/), then that user or group will be able to read and write on that partition(s). 

 

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15269201
Share on other sites

Link to post
Share on other sites

so saying it just cant be done? why was that done? why dose linux have to "respect" windows file ownership and make wait hours for that crap to prcess isntead just being able to quickly delete shouldent we have a choice so can delete viruse, or hell evne if did want to delete our windows we should be allowed to :/.

 

but yea cannot write or delete files that were made in windows on new linux but can on new linux, i also am still learnign all that linux jargon since maily use it for deltign viruses eta.

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15278831
Share on other sites

Link to post
Share on other sites

Nightmare-Rex, this actually does not sound to me like it has anything to do with the OS's per-say, but moreso with the permission bit set on the filesystem (whatever that filesystem is) or the manner it was mounted.

I think you need to get off the live distro and do it for real if you are unable to obtain root. As people have mentioned it should be as simple as using sudo. Most live distro's are not intended for daily use.

Try the distro name or blank as a password for sudo. Also be careful.. the root user can kill your box so there may be a good reason you can't edit what you are trying to edit. Linux and Unix won't stop root from deleting the box. Windows files on NTFS may be mounted as read-only also because it's a foreign filesystem, it can be mounted read-write but again, know what you are doing.. Live distro's sometimes do that to prevent new inexperienced users from causing accidents on the OS that is installed on the system. Nobody wants to read: "I tried the live CD and now windows won't boot" so it mounts it read only.

To remount it you'll need sudo working.
 

# Use lsblk and the mount command to find the device and mount point. ro means read only.
lsblk
mount | grep -i NTFS

# Once you know the device path and mount point remount read write with.
sudo mount -o remount,rw /device/path /mount/point

 

"Only proprietary software vendors want proprietary software." - Dexter's Law

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15279690
Share on other sites

Link to post
Share on other sites

On 2/24/2022 at 10:57 PM, Nightmare-Rex said:

why was that done

To prevent data loss.

 

 

On 2/24/2022 at 10:57 PM, Nightmare-Rex said:

so saying it just cant be done?

 it can still be manually mounted in Linux with "rw".

  • Find the disk and partition
    • fdisk -l
  • Remove the Windows Metadata that is used for Fast Boot

    • ntfsfix /dev/PART_TO_MOUNT

  • Make sure you have a directory to mount it in that you have full permissions on.

    • mkdir /mnt/windows

    • chown $USER:$USER -R /mnt/windows

  • Mount the partition

    • mount /dev/PART_TO_MOUNT /mnt/windows

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15281740
Share on other sites

Link to post
Share on other sites

  • 3 weeks later...

alrigh tsorry for beign such a noob with linux, but i mean its allready mounted when access it? so hav eto unmount it since its like just -R mount and have to switch it to -RW? i need to possibly buy antoehr stick, its a pain need one under 8GB for bootign certain computers but meany 8GB same price as a 32GB.

 

and wahts the widnows metadata? is that the secuity permissiosn thing? i read spooem thign about iwndows 10 and 11 put soemthiogn on fiesl to show where it was made what computer and when eta, (dotn really liek the idea of that) so if change computer it will edit this wired unseen data? dose windows 8.1 and windows 7 do the same thing?

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15309386
Share on other sites

Link to post
Share on other sites

23 hours ago, Nightmare-Rex said:

alrigh tsorry for beign such a noob with linux, but i mean its allready mounted when access it? so hav eto unmount it since its like just -R mount and have to switch it to -RW? i need to possibly buy antoehr stick, its a pain need one under 8GB for bootign certain computers but meany 8GB same price as a 32GB.

 

and wahts the widnows metadata? is that the secuity permissiosn thing? i read spooem thign about iwndows 10 and 11 put soemthiogn on fiesl to show where it was made what computer and when eta, (dotn really liek the idea of that) so if change computer it will edit this wired unseen data? dose windows 8.1 and windows 7 do the same thing?

You might be dealing with two separate things.

The filesystem is mounted read only: In this case, not even root can change permission until it's remounted RW.
The files are marked RO by the OS: in this case root (sudo) can change the permission.

I don't think anyone really knows so this is why you are getting different advice here from different ppl.

"Only proprietary software vendors want proprietary software." - Dexter's Law

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15310918
Share on other sites

Link to post
Share on other sites

  • 1 month later...
On 3/18/2022 at 11:24 AM, jde3 said:

You might be dealing with two separate things.

The filesystem is mounted read only: In this case, not even root can change permission until it's remounted RW.
The files are marked RO by the OS: in this case root (sudo) can change the permission.

I don't think anyone really knows so this is why you are getting different advice here from different ppl.

i KNOW its not that the files can tb emodified as linux mint 7 and BELOW lets me, its above 8 that gives me problems. i tried what was sied eailer and it ask me for a password so still cant get root on live 8+ LM (trying v20 atm)

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15392187
Share on other sites

Link to post
Share on other sites

On 3/18/2022 at 7:46 AM, 10leej said:

Linux Mint and Ubuntu hard disable root login by default so you need to use sudo

 

sudo su

now to set permissions you use chmod (a=all,plus ReadWrite)

chmod a+rw -R filename

 

allright so i have to do it before boot or something?since when try sudo su on the LIVE "cd" it ask for password. so i assume theres some sort of default password for LM 8+m jus tupdated the mint to latest now 20.4 doing that i still cannot delete or modify files on hardrive thugh evne thugh this time diddent ask for password.

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15392188
Share on other sites

Link to post
Share on other sites

Linux mint has no password for root account.

Typing sudo su should change the terminal prompt to this without asking for password

root@mint:/home/mint#

Indicating your now running the commands as root user

 

To ensure the windows drive is being mounted with read/write permissions. Mount the windows drive and then open terminal and run findmnt command.

This will list all mounted volumes. Find your windows drive in the list.

  • fstype column should be listed as ntfs or fuseblk
  • options column should list rw as a mount option.

With these options you should be be able to create/modify/delete files on the windows drive without any permission issue.

 

What files in particular are you trying to delete? Most windows system files (such as windows.old) can be deleted using Windows disk clean-up when run as administrator

 

 

 

 

 

 

 

 

 

 

 

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15392440
Share on other sites

Link to post
Share on other sites

On 1/1/2022 at 8:38 PM, LIGISTX said:

The live linux instal doesn’t let you use root? It should… try Su root? 

 

On 1/1/2022 at 8:39 PM, Nightmare-Rex said:

yes i tried it and no dice.

The username for the live session is mint. If asked for a password press Enter.

 
Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15392578
Share on other sites

Link to post
Share on other sites

On 2/18/2022 at 9:36 PM, Nightmare-Rex said:

why this happens in newer versions but not older versions

The NTFS driver was moved "in-kernel" at some point, and the funky bits merged with ntfsprogs.

The biggest shift in the paradigm between 2.6 and modern linux is live-distro devs treating users like idiots and not giving them root access by default, because reasons.

There was also a shift from ntfs-3g to ntfs3 drivers between 5.14 and 5.15; ntfs3 is a fully fledged filesystem driver with NTFS POSIX ACL's which will may/may not help you.

 

Anyway, there are only 2 things you need to do

  • Make yourself root (with 'sudo su' or 'sudo <command>' or just plain 'su')
  • Issue this command 'mount -a -o remount,rw'

If you can learn to do this in a non-gui console, along with the linux way to navigate files/file systems (cd, rm,  mv, nano/vi, tab completion, \ to escape spaces etc), it'll speed up your process a lot, and give you access to a much wider range of "Live OS's" to choose from like these.

Link to comment
https://linustechtips.com/topic/1400487-linux-file-locks/#findComment-15395987
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×