Solved

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

Posted on 2000-03-09
4
925 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
[X]
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
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

687 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