Solved

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

Posted on 2000-03-09
4
912 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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" …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now