On Sun, 16 Dec 2001, Karl J. Runge wrote:

[snip]

> Can I just go into fdisk, delete the first 3 and then create a bigger
> hda1?  I have NT 4.0 on /dev/hda1 and haven't booted it in years; it
> would be fun to delete and recycle it along with the swap :-)
>
> I understand the hda* names will (may?) all change, and I am prepared
> to fix this in /etc/lilo.conf and /etc/fstab.
>
> I have a sinking feeling I am forgetting something here... please
> remind me before it is too late!

Seems to me that you *can* do that, thusly: just knock out the fstab entries
for each of the three partitions, reboot (to inactivate the two swap
partitions), cfdisk, reboot (mandatory), mkfs, possibly reboot once more
(depends on which fs you pick), back into /etc/fstab, mount and you're
done; no partition numbers change, because the others are all in an
extended partition and keep their numbers - you just have a new
/dev/hda1, and no hda2 or hda3.

One factor I'd consider is what lives on /dev/hda7. If it's /, I'd
reconsider the whole thing; the space you gain isn't worth the risk. If it
isn't (say, for example, it's /usr or /home), the *safest* method would be
to carefully copy the whole thing to another partition on another drive,
change the fstab entry to point to the new home for the data (and knock
out all the swap entries for /dev/hda while you're there, not just the
ones you're planning to delete), umount /dev/hda7 && mount /dev/wherever,
and make sure that everything still works okay, all before the first
reboot. This way, when you come back up, the drive is not in use at all,
for anything (remember to put the 2 remaining swaps, hda5&6, back into
/etc/fstab at the very end, and run "swapon -a").

Short of all that, I'd at least make darned sure that I had a backup of
the data on /dev/hda7 that I had complete faith in. :)

As for /etc/lilo.conf, change it & run lilo at your leisure, if at all.
You might decide to keep that NT entry in there just for laughs. :)

-- 

Bill Mullen
[EMAIL PROTECTED]
Dec 16, 2001





*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to