Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When for whatever reason my home partitions gets mounted read-only, sudo fails:

/usr/bin/sudo: Input/output error

From what I understand, it seems to be trying to touch ~/.sudo_as_admin_successful

Is there a way around this, to use sudo to remount my harddisk? Should I file a bug?

share|improve this question

1 Answer 1

If the filesystem were read only the error message would say so. This seems to be because there is an underlying problem with your disk. You should investigate the cause of that with dmesg.

share|improve this answer
    
Other binaries in /usr/bin work. Anyother attempts to change the file system complain about a read-only filesystem. I think that the issue with the disk is that the connector is faulty. But IMO sudo should be able to work even so. –  nishantjr Mar 4 '13 at 3:00
    
@nishantjr, yes, it looks like you have a hardware problem that is is throwing IO errors in some places, including when trying to read sudo. A side effect of the IO errors is that the fs gets remounted read-only. You need to fix your hardware problem. –  psusi Mar 4 '13 at 15:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.