[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fwd: Most directories locked read-only: how to unlock them?



Sorry Miquel,  I send my reply to the wrong person and not to the list.

Hi Ken,

I am a newbee but this helped me recover data from a hard drive in which some idiot superuser deleted the /proc directory and root was no longer recognized as a valid user.

I used knoppix, as you did, but could only mount the second drive ro.

My solution: With knoppix, in a terminal, I SU'd (from user "knoppix").  I was never prompted for a su password but was then able to chmod + chown on the second ide    (/mnt/hdb).  After I did this I was able to move important files from the bad drive to the good drive and recovered most of my data.

While playing, before knoppix, and modifying fstab earlier, I found that I had neglected to restore fstab after removing the second drive.  During bootup,  I found the system would hang up because it was trying to check the fs on the second drive  (that did not exist anymore) for errors.  The solution here was to open an editor (in knoppix again) and modify fstab again.

My only problem now is recovering mysql and posgresql databases that were never backed up.  Anyone know where the "working data files" are stored on a Debian (sarge) box?  I know it should be somewhere is /var .  What would the naming convention of these files be? I thought I might try just moving tohe raw data files to the new drive.

Fred


On 1/20/06, Miquel van Smoorenburg < miquels@cistron.nl> wrote:
In article <[🔎] 43CD6A21.8020007@heard.name" target="_blank" _onclick_="return top.js.OpenExtLink(window,event,this)">[🔎] 43CD6A21.8020007@heard.name>,
Ken Heard  < ken@heard.name> wrote:
>Daniel B. wrote:
>
>> That looks like you mistyped "defaults" as "drfaults" in your
>> /etc/fstab file.
>
>       I was well aware that I mistyped "defaults" as my original post
>indicated.  I was also aware that this error caused the root directory
>to be mounted read-only.  Also as my original post indicated, my first
>query was how to change the mount to read-write without having to
>reinstall the whole operating system.

Simply specify both the directory _and_ the device on the command
line, in that case mount doesn't read fstab.

Eg something like:

        mount -n -o remount,rw /dev/sda1 /

Mike.
--
Freedom is no longer a problem.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org




--
Fred OGrady

Blog @  http://vs6.resco.kicks-ass.net:8080


--
Fred OGrady


Blog @  http://vs6.resco.kicks-ass.net:8080
Reply to: