Re: Question on changing hard drive - Red Hat




John-Paul Stewart wrote:
amerar@xxxxxxx wrote:
John-Paul Stewart wrote:
amerar@xxxxxxx wrote:
I do not know a lot about Linux, so I'm not sure what is involved in
swapping the drives. I'd appreciate it if someone could help me
out.......
Read the "Hard Disk Upgrade HOWTO" from the Linux Documentation Project
at http://www.tldp.org/HOWTO/Hard-Disk-Upgrade/index.html.

IMHO, it is best to create partitions on the new disk, create
filesystems, and then copy over data.

You could use some utility to "clone" the whole disk and then resize the
filesystems to take advantage of the new disk space. But generally, I'd
try to avoid resizing a filesystem if possible, and it's easy to just
create filesystems of the appropriate size before you start copying data
to the new disk.

It's just that I've never really done this before. And, I've changed a
lot of config files and such and I'm worried about losing changes.
I've changed the SSHD config file, the Apache config file, the Postfix
configurations, etc.....I'm not even sure what else I've changed.

Sure. My suggestion was to create filesystems and copy everything from
the old to the new. You'll keep all your data and configuration info.
I'm not advocating re-installing.

All you need to do is use fdisk to create partitions on the new disk,
then use mkfs to make filesystems, copy everything one filesystem at a
time (using tar or cp or rsync or ...) to the new disk.

It's all described in the HOWTO.

That is a decent HOWTO. However, a few things it does not cover, and
please excuse my ignorance, as I'm shallow with Linux. But, what is
the best way to partition the disk? One huge 250GB partition? Easy
enough to manage? In terms of file systems, what if I make one too
small and another too large, is it easy to resize?

Also, it refers to LILO. I do not think I use LILO.......no biggie
there??

.



Relevant Pages

  • Re: [SLE] 9.0 Device checling on ext3 fs
    ... run the badbloc program on all partitions once. ... With something as critical as disk ... > filesystems, I need an app that has been tested and just works, preferably ... Usually they come as a file to create an MsDos boot ...
    (SuSE)
  • Re: W/XP PC HD Crashed
    ... solution such as a commercial data recovery outfit, ... 1b) Is the disk visible from the BIOS, and does the config look sensible? ... What happens next depends on whether the partitions and filesystems are as ...
    (comp.os.vms)
  • Re: Question on changing hard drive - Red Hat
    ... You could use some utility to "clone" the whole disk and then resize the ... filesystems to take advantage of the new disk space. ... I've changed the SSHD config file, the Apache config file, the Postfix ... All you need to do is use fdisk to create partitions on the new disk, then use mkfs to make filesystems, copy everything one filesystem at a time to the new disk. ...
    (comp.os.linux.hardware)
  • Re: Question on changing hard drive - Red Hat
    ... Read the "Hard Disk Upgrade HOWTO" from the Linux Documentation Project ... filesystems to take advantage of the new disk space. ... I've changed the SSHD config file, the Apache config file, the Postfix ...
    (comp.os.linux.hardware)
  • Re: Question on changing hard drive - Red Hat
    ... You could use some utility to "clone" the whole disk and then resize the ... filesystems to take advantage of the new disk space. ... I've changed the SSHD config file, the Apache config file, the Postfix ... All you need to do is use fdisk to create partitions on the new disk, ...
    (comp.os.linux.hardware)