Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 10817  / 1 Year ago, thu, january 26, 2023, 9:09:42

I have a live USB persistent version of Ubuntu 11.04 installed with Unetbootin.



After some time I experienced some bugs while upgrading the kernel and trying to use my second screen on my laptop. Later then I noticed a strange, apparently unrelated problem: each time i tried to sudosomething i got the same response :



sudo: can't open /etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting


Unable to do anything requiring root privileges, I rebooted using the single boot option and was able to access the root console.



I noticed the following behavior :



# ll /etc/sudoers
-r--r----- 0 root root 1014 2011-05-31 16:23 /etc/sudoers
# cat /etc/sudoers
cat: /etc/sudoers: No such file or directory


Is there something wrong with the hard link count being zero ? How can i change it ? The hard link count is 1 on my other computer which work correctly.



The live session user still belongs to the admin group if it matters.


More From » filesystem

 Answers
7

A hard link count of zero means that the directory entry doesn't belong to any file. That sounds like a damaged file system.


[#44868] Friday, January 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ionash

Total Points: 214
Total Questions: 111
Total Answers: 116

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
;