Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I seem to be having HD problems with on my Dual MP server at work, it is running RH 7.3 and has MP 1800+s in it, on a Tyan Tiger 2460. Grub takes forever to load, and about half of the time it fails to mount the HD. The drive clicks alot as well. So of course the HD is bad.
My question is that I need to tar and gzip everything in the file system, and install Grub on a the new HD, and put a mirror image of the filesystem of the server on the new HD. I also need Grub to call of the old data that will be put on the new HD. I need to do this with out using dd, since there is no way to get an exact matching HD now. Does anyone have any tips or know of any docs I can read on this? Thanks for your help.
you dont need dd, you can make it with tar. its easy and the
destination disk must not have the same size!
all links, devicese etc. will be move correctly to the new location.
if your old hd eg. hda and the new one hdc it works like follow:
boot your system and then
make the partions on the new one as you like and make the
filesystems on it. (in my scenario i would like use only one big slice
for / so its easier to describe)
mount -t ext2 /dev/hdc1 /mnt
cd /
tar cflp - . | ( cd /mnt ; tar xfvlp - )
e.g. if you have the /usr file system on the source at a diferent
partition and at the new one too - so you have to do the follow:
(e.g. hda6 = /usr -> hdc8 = /usr)
mount -t ext2 /dev/hdc8 /mnt/usr
cd /
tar cflp - /usr/ | ( cd /mnt/usr ; tar xfvlp - )
after all stepps please check the fstab on the new hd so it reflect the new slices and configure your bootloader.
Thanks for the information it helps. Do I need to install the Boot loader to the MBR? I am a little confsed on what to do with the boot loader. I understand the FSTAB part.
Also I wondered what you recommended for partitioning in RH7.3 I have always used Disk Druid in initial setups, but I did not know if you could use it from the OS or rescue mode without being in the installer.
hmmm - I cant give you a recommendation for partitioning your system - I prefer seperate partitions for / /tmp /usr /var /home and in some cases /opt.
disk druid is only a gui for fdisk, so all you do with disk druid, can you do too with fdisk (only for the software raid configuration you need the raid tools).
put both disks in your system, boot it with the rescue disk, use
fdisk -l /dev/hda (if hda is your old disk) to see the partions on the old HD and create
with fdisk /dev/hdc (if hdc is the new one) the new partitions
thnx, I was just wondering does the mke2fs /dev/hd?? tune2fs -j /dev/hd?? make the ext3 partitions? I thought mke2fs was for ext2? Also mkeswap is what I need to use to initialize the swap correct?
example, to create an ext3 filesystem on the first partition on the first hard drive
mke2fs /dev/hda1
tune2fs -j /dev/hda1
ext3 is the same filesystem as ext2 with a journal added. that's why you need to use tune2fs, to create the journal.
you can make the swap partition after the new system is up and running or before.
mkswap sets up the partition that you have created as type swap. the fstab file will be where the system is told to mount it at boot. Be sure to give the right name to mkswap
mkswap /dev/hd??
If you create the swap partition after booting the new system then use swapon /dev/hd?? to mount the swap partition.
Last edited by DavidPhillips; 06-18-2003 at 02:03 PM.
Thanks, I was also just making sure, you do not need to backup /dev, and /proc those are generated. I assume that you do need to creat e their directroy with correct permissions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.