PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

Mondo Rescue, missingdev,proc,sys 2584


Your Ad Here

Your Ad Here

Ok, here it is, it's incredibly simple.

1) boot with a live or recovery CD.

2) make a temporary directoy: "mkdir foo" (no double quotes, bare in mind that this directory is virtual, it is not located anywhere but in RAM memory)

3) this is the most difficult part and it depends on your specific way of doing backups. Make a new device node: "mknoddev-st0 c 9 0" st0 means SCSI tape numer 0, as for c 9 0, I don't know :).

4) mount your main parbreastion (where all the directories are located, etc, home ...) in foo: "mountdev-sda2 foo" (-dev-sda2 is my second partion on my SCSI disk, if you have an IDE disk and the main parbreastion it the third one then don't use sda2 but hda3 instead)

5) change directory to foo: "cd foo"

6) make a directory boot: "mkdir boot"

7) mount the boot parbreastion in the directory boot: "mountdev-sda1 boot" (sda1 is the the first parbreastion of my SCSI disk, pay attention to your own type of disk)

8) tar all the directories on tape (I don't know if you use tapes, otherwise figure it out how to do it on some other media supports): "tar -cvpfdev-st0 *". Maybe tar will complain about some errors, example, it will not be able to copy to the archivedev-st0, becausedev-st0 is the tape and it cannot copy the archive to archive itself. In this case tar everything but the directory dev: "tar -cvpfdev-st0 home etc boot proc sys usr var selinux" every directory but dev. I know it's boring but it's worth.

9) ok now you can set you computer on fire.(without the tape)

10) reboot the pc with the CD again

11) now we destroy everything on the hard disk to demonstrate that the restore works. Run fdisk: "fdiskdev-sda"

Creating & tracking invoices for products
Greetings. I work for a small non-profit organization, part of whose activity includes publishing literature and audio-video discs, and selling them direct to...
Final Theory Of Everything V5.0
It is possible to use martingale probability theory to beat some games of chance. In a fair game of coin toss, where the odds reach an equilibrium of...

12) type "p" to print the parbreastion table and delete every parbreastion with "d"

13) recreate the parbreastions with "n". You won't see Bytes or MB but blocks instead. You have to decide how big your parbreastions will be. Usually the first, boot, about 100 MB, the second, root, how much you want it to be, the third, swap, half your memory amount. Save the parbreastions with "w".

Mondo Rescue, missingdev,proc,sys 2585
Again, I admit this is not especially neat, and people can make theoretical arguments as to whether it should be tweaked in varyingly painstaking ways, but it works well for me, and takes...

14) format the parbreastions: "mke2fs -jdev-sda1" "mke2fs -jdev-sda2" "mkswapdev-sda3"

15) make a virtual directory: "mkdir foo"

16) change directory to foo: "cd foo"

17) make a virtual directory boot: "mkdir boot"

18) mount the main bigger parbreastion to foo: "mountdev-sda2 foo"

19) mount the boot parbreastion to boot: "mountdev-sda1 boot"

20) make a device node: "mknoddev-st0 c 9 0"

20) now you have to be in the directory foo. Type: "tar -vxpfdev-st0"

21)type: "grub"

22)inside grub type: "root (hd0,0)" (there is a space between root and (hd0,0)

23) type: "setup (hd0)" and then "quit"

file pointers in gdb
I'm writing some code that does a lot of moving around and manipulating stuff inside files...

24) before rebooting take a look toboot-grub-grub.conf andetc-fstab and replace "LABEL=-" if you find it, with the actual partion names ex.dev-sda2.

24) reboot and the job is done.



Your Ad Here

List | Previous | Next

Mondo Rescue, missingdev,proc,sys 2585

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

Mondo Rescue, missingdev,proc,sys 2583