After unsuccesfull upgrade/restart the system is locked

Help with issues regarding installation of Debian

After unsuccesfull upgrade/restart the system is locked

Postby miro_ilias » 2009-09-14 11:57

Dear all,

I wanted to do (today) the upgrade of my Debian Sid. During upgrade (with Synaptic) I got crash with remark that I have to finish packages installation properly with :"dpkg --configure -a".

After the restart (as the root) in the text mode, however, I found that the entire system is read-only and completely locked (for root).

The /etc/fstab file contains "defaults,errors=remount-ro" for /dev/sda1, I can not change it in read-only mode. When I discarded "errors" in fstab through CD live, it did not help.

The mesage from dpkg: unable to access dpkg status area: Read-only file system

Any help is appreciated. Miro
miro_ilias
 
Posts: 28
Joined: 2008-03-31 08:08

Re: After unsuccesfull upgrade/restart the system is locked

Postby smallchange » 2009-09-14 13:55

Restore fstab to the way it was. After you login as root run
Code: Select all
mount -o remount /dev/sda1
It will remount in read-write mode. If your hard disc is failing it will immediately remount it in read-only mode. Look in /var/log/syslog to see if there are disc hardware errors being reported.
smallchange
 
Posts: 1740
Joined: 2009-05-04 15:56

Re: After unsuccesfull upgrade/restart the system is locked

Postby miro_ilias » 2009-09-14 14:22

smallchange wrote:Restore fstab to the way it was. After you login as root run
Code: Select all
mount -o remount /dev/sda1
It will remount in read-write mode. If your hard disc is failing it will immediately remount it in read-only mode. Look in /var/log/syslog to see if there are disc hardware errors being reported.


Excellent ! It worked ! Using Debian Live CD I restored fstab, then I removed CD, did reboot and "mount -o remount ..." restored the partition.

Afterwards "dpkg --configure -a" did further jov of restoration of broken packages.

Many thanks.
miro_ilias
 
Posts: 28
Joined: 2008-03-31 08:08

Re: After unsuccesfull upgrade/restart the system is locked

Postby mzilikazi » 2009-09-14 20:43

For future reference, never use Synaptic to do an upgrade. Use the command line instead.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable