The whole backup process went fine until I wanted to reinstall grub into my MBR:/dev/hda1 WindowsXP as NTFS
/dev/hda2 /boot
/dev/hda3 swap
/dev/hda4 Extended
/dev/hda5 /
/dev/hda6 /usr
/dev/hda7 /opt
/dev/hda8 /var
/dev/hda9 /tmp
/dev/hda10 /home
This resulted in the following outputgrub
root (hd0,1)
setup (hd0,1)
Filesystem type is ext2fs, partition type 0x83
Checking if "/boot/grub/stage1 exists ... yes"
Checking if "/boot/grub/stage2 exists ... yes"
Checking if "/boot/grub/e2fs_stage_1_5 exists ... yes"
Running "embed /boot/grub/e2fs_stage_1_5 (hd0,1) .. . failed (this is not fatal)"
Running "install /boot/grub/stage1 (hd0,1) /boot/grub/stage2 p /boot/grub/menu.lst ... succeeded"
So grub loaded and I could select my Gentoo System. But then suddenly the following message appeared and the booting process stopped:grub-install --root-directory=/boot /dev/hda
What does this mean and how can i fix it?UDF-fs: no VRS found
kernel panic - not syncing VFS: Unable to mount root fs on unknown-block(3,3)
Code: Select all
default_include_files="
/dev/null
/dev/console
/home
`/find /mnt -name .keep`
/proc
/sys
/tmp
/usr/portage
/usr/src
/var/log/emerge.log


is this question too stupid? cmon, a simple "yes" or "no" would be enoughfunkoolow wrote:back here for this simple and direct question: since my gentoo works as webserver with php and mysql, is it relevant that during the backup process it's available on web and so it's possible that db and logs and such can be updated and or modified? will be useful and/or safer to stop apache2-mysql-php?
thanks
I personally keep it in /root/scripts, but you could keep it wherever you feel most comfortable.tgh wrote:Noob questions.
1) What is a good directory to keep this script in? Where do admins like to keep scripts like this? I'm guessing "/usr/local/sbin" or should it go straight to "/sbin" since it's a critical file needed to restore the system? (Well, not really, you could restore by hand.) A lot of the pages that talk about directory structure lean more towards putting something like this in /usr/local/sbin, if I understand them correctly:
RedHat 5.0 - section 11.1.1.3
Linux Directory Structure (doc.vic.computerbank.org.au)
Linux Directory Structure (www.comptechdoc.org)
(answered my 2nd quesetion)
I have php and mysql running on my machine. I tryed this backupscript and it worked fine. I didnt stop any servers while creating the backup.funkoolow wrote:is this question too stupid? cmon, a simple "yes" or "no" would be enoughfunkoolow wrote:back here for this simple and direct question: since my gentoo works as webserver with php and mysql, is it relevant that during the backup process it's available on web and so it's possible that db and logs and such can be updated and or modified? will be useful and/or safer to stop apache2-mysql-php?
thanks

thanks for your reply, man. I asked cause once I had problems too with mysql after restoring a stage4 and I solved them directly remerging mysql. Beyond that, everything gone smooth, so i wondered if this would happen everytime or not (and it seems yes, for now)...iq_zero wrote:I have php and mysql running on my machine. I tryed this backupscript and it worked fine. I didnt stop any servers while creating the backup.
After I had unpacked the stage4 to my disk i rebooted and mysql and some other programs were complaining because i didnt have any log files. I created them with nano and rebooted again just to see that everything was ok.
The backup went great but the disk I was planning to run on crashed 12 hours after the machine was up and running again. IBM Deathstar
I hope something can be useful
you do not know, so leave it. this script works right out of the box for you - it has been made for exactly that purpose. as you'll only resize the partitions you won't even have to change /etc/fstab (well, that wouldn't be a problem, right? you may have to adjust it anyway if you change the filesystem).mkstage4.sh wrote:# don't touch it unless you know what you are doing!
Jan L. A. van de Snepscheut wrote:In theory, there is no difference between theory and practice. But, in practice, there is.

Code: Select all
EXCLUDE="
--exclude=proc/*
--exclude=sys/*
--exclude=mnt/backup/*
--exclude=mnt/install
--exclude=var/log/*
--exclude=dev/*
--exclude=usr/portage/distfiles/*
"
if [ `whoami` != root ] ; then echo "you must be root, exiting" ; exit ; fi
cd /
tar -cjpvf /mnt/backup/backup.tar.bz2 `echo $EXCLUDE` *

Code: Select all
Updating Portgage cache:
Traceback (most recent callout):
flie "/usr/bin/emerge",line 2705,in)
oldcate=portage.catsplit(cp_list[0])[0]
Index Error:list (forgot this part, can't read my own handwriting)