[SOLVED]How to delete file with no mod user and group

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED]How to delete file with no mod user and group

Postby mackowiakp » Sep 9th, '23, 15:48

After upgrade M8->M9 one dir looks like this:
Code: Select all
d?????????  ? ?      ?                 ?                ? mnt/

It happens probably because of USB memory stick failure. The USB mem was mounted to this mnt dir.
How can I chmod/user/group or delete such directory?
Last edited by mackowiakp on Sep 9th, '23, 17:21, edited 1 time in total.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: How to delete file with no mod user and group

Postby sturmvogel » Sep 9th, '23, 16:30

Which command was used to get this output? "ls -l /" ?
E.g.:
Code: Select all
[test8@test8 ~]$ ls -l /
insgesamt 72
lrwxrwxrwx   1 root root     7 Jul 31  2020 bin -> usr/bin/
drwxr-xr-x   5 root root  4096 Sep  2 15:26 boot/
-rw-------   1 root root  2022 Sep  2 15:42 dead.letter
drwxr-xr-x  19 root root  3700 Sep  9 16:12 dev/
drwxr-xr-x 104 root root 12288 Sep  9 16:23 etc/
drwxr-xr-x   3 root root  4096 Jun 11 13:03 home/
drwxr-xr-x   2 root root  4096 Jul 31  2020 initrd/
lrwxrwxrwx   1 root root     7 Jul 31  2020 lib -> usr/lib/
lrwxrwxrwx   1 root root     9 Jul 31  2020 lib64 -> usr/lib64/
drwx------   2 root root 16384 Jun 11 12:48 lost+found/
drwxr-xr-x   2 root root  4096 Jul 31  2020 media/
drwxr-xr-x   2 root root  4096 Jul 31  2020 mnt/
drwxr-xr-x   3 root root  4096 Jun 11 13:17 opt/
dr-xr-xr-x 210 root root     0 Sep  9 16:12 proc/
drwxr-x---   9 root root  4096 Sep  9 16:27 root/
drwxr-xr-x  28 root root   820 Sep  9 16:12 run/
lrwxrwxrwx   1 root root     8 Jul 31  2020 sbin -> usr/sbin/
drwxr-xr-x   2 root root  4096 Jul 31  2020 srv/
dr-xr-xr-x  13 root root     0 Sep  9 16:12 sys/
drwxrwxrwt  11 root root   360 Sep  9 16:17 tmp/
drwxr-xr-x  13 root root  4096 Jun 11 12:52 usr/
drwxr-xr-x  14 root root  4096 Jun 11 13:08 var/
[test8@test8 ~]$


You shouldn't delete /mnt as this is a base directory. You should better try to change the owner via:
Code: Select all
# chown -R root:root /mnt
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39

Re: How to delete file with no mod user and group

Postby mackowiakp » Sep 9th, '23, 16:53

The command was ls -la.
I try to change user/group using command You mentioned. Error "Permission deny"
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: How to delete file with no mod user and group

Postby sturmvogel » Sep 9th, '23, 16:56

Did you execute this command as root user?
sturmvogel
 
Posts: 739
Joined: Jul 30th, '12, 00:39

Re: How to delete file with no mod user and group

Postby mackowiakp » Sep 9th, '23, 17:01

yes
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: How to delete file with no mod user and group

Postby mackowiakp » Sep 9th, '23, 17:05

Boot from Knoppix and fsck from gparted, resolved the problem
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [SOLVED]How to delete file with no mod user and group

Postby morgano » Sep 9th, '23, 18:13

Good thinking :)
My bootable tool favourite was https://www.system-rescue.org/
But recently Mageia Live Xfce 32 bit, with persistence and added tools :)
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1489
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED]How to delete file with no mod user and group

Postby mackowiakp » Sep 9th, '23, 18:25

:D :lol:
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron