Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to restore filesystem /, /usr, /var?

Posted on 2000-03-09
4
918 Views
Last Modified: 2013-12-15
I was SUN Solaris Admin. In Solaris environment, if your disk drive is failed and  you have to replace it with a new one, you simply plug in the new disk drive, boot the system from a Solaris CD, partition the new disk drive, and then you can start restore the system file systems.
Can somebody tell me if there is a way to do this in Linux environment?
boot system either from a CD or a floppy and restore system filesystems?

To my kownledge, you can boot SCO Unix from a floppy.

Thanks a lot!

Bill
0
Comment
Question by:aicc
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:hbrady
ID: 2604513
aicc,  What distribution are you using ? If you purchased a box set it may have come with boot / rescue disk or it may explain the quickest way to create them for your particular
distribution.  For instance, if you use RedHat you can grab some images from their CD to create boot disks using rawrite from DOS or dd from Linux

Once you have a a boot and root/rescue disk you can boot up, mount what ever drives you still have left and recover data.  You can also boot most distributions from the CD
now and do a fresh install.  Hope this helped
0
 

Author Comment

by:aicc
ID: 2604835
Thank you for your reply. I use Red Hat and TurboLinux. How to create boot/rescue floppys?
I created a boot floppy using /sbin/mkbootdisk command. When the system start to boot, it ask for root file system. I don't know where to go from there.

Bill
0
 
LVL 1

Accepted Solution

by:
hbrady earned 100 total points
ID: 2604902
Use DOS and MKFS or Unix and the dd command to make a rescue disk.

i.e.

Insert a blank floppy in floppy drive.
mount RedHat install CD (do not mount floppy).

cd /mnt/cdrom/images
enter command:
dd if=boot.img of=/dev/fd0 bs=1440k

0
 

Author Comment

by:aicc
ID: 2605685
Thank you very much.
I think I got it.
followed hbrady's instruction.
and performed
dd if=rescue.img of=/dev/fd0 bs=72k

which works fine.

my last question for Mr. hbrady is:
which backup uitility is best to use practically, tar, cpio, or any third party tools?
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question