Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
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.:

706 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

15 Experts available now in Live!

Get 1:1 Help Now