On Thu, 27 May 2004 11:14:46 +1200
InfoHelp <[EMAIL PROTECTED]> wrote:

> Hi folks,
> 
> thanks Nick for looking at the fault yesterday.
> 
> Out of my Drafts folder comes where the install left off last week..
> 
> 
> Nick Rout wrote:
> 
> >unmount the partition which you want to check
> >run the fsck on the partition, not the mount point. (ie the parameter is
> >/dev/hda6 not /mnt/hda6)
> >
> ok - done successfully from SuSE install, but boot to Gentoo still says:
> 
> "Partition /dev/hda6 is mounted with write permissions, cannot check it
> * Fsck could not correct all errors, manual repair needed              
>      [!!]"
> 
> This is after boot process has:
> ...
> Adding swap                                                           
>                       [ok]
> * Remounting root filesystem read-only (if necessary)...        [ok]
> * Checking root filesystem...                                           
>             [ok]
> * Remounting root filesystem read/write...                              
>   [ok]
> 
> >add read-only to your kernel line in grub so that it boots readonly from
> >nowe on, and fsck can check it.
> >
> is that assuming I have a separate /boot partition - I have not. Seems 
> to have been accepted from Grub ok though.
> 
> 
> Update:
> 
> Nick checked the mount permissions, reran fsck, but the above error 
> message remains.
> 
> Looks like I've fscked (literally) Gentoo's partition whilst it was 
> mounted. Foobar!!
> Gentoo boots & is ready to use, but it doesn't seem safe to continue 
> with its filesystem in the above condition.
> 
> Sooo, unless there's a Reiserfs user/expert who can suggest a repair, 
> partition reformat will follow.
> 
> Short of repeating the Gentoo install, I'd like to back it up to a spare 
> partition, reformat ext3, then reinstate it.
> 
> Is this practical? Are there any dirs such as /proc that I need not copy 
> complete, or Reiserfs stuff to leave behind? Or should I simply copy 
> everything across?
> 
> Is mounting the Gentoo partition & spare partition from Suse, and using 
> Midnight Commander to copy across the Gentoo dirs a good way to go? (I'm 
> more confident with that than "#cp /* -r /dev/newmountpoint" etc.)

copying the info  is feasible, but you need to watch permissions etc. I
am not sure that mc is the right tool for the job.

do not copy /proc. if you have /sys do not copy it. do not copy mounted
cdroms etc

Personally I would use rsync -av because I know it works and all links
etc seem to be preserved.

If you have a whole spare partition, why not create an ext3 filesystem
on it and copy the install over to the new partition and then run gentoo
from there. The screwed reiser partition then becomes your spare
partition, and your next trial of a distro writes over it. 

you will need to change:

1. the grub setup file you have on your suse partition to reflect the
new location (if you move partitions as suggested above)

2. /etc/fstab in gentoo to refect the new partition for / , and the new
file system (ext3 rather than reiser)

By the way i suspect reiserfsck has fixed the partiton but that there is
something amiss in the bootup scripts, or in having the repair recognised
properly. If I had the machine for a half a day it'd be interesting to
fix, but by then you will be up and ruuning on a new filesystem :-)







> 
> Cheers
> 
> Rik
> 
> -- 
> InfoHelp Services  http://www.infohelp.co.nz/linux.html  i686 2.4.20-8
> RedHat Linux 9.0 - Gnome 2.2.0 - OpenOffice 1.0.2 - Mozilla Mail 1.2.1
> 

-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to