Solved

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

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

734 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