Thanks! -- Re: Exchange root and swap partitions?

1998-10-17 Thread kaynjay
Many thanks to both Helge and Steve for their help with my problem.  My
solution was simpler than I thought because of the suggestions they gave me.

Resized DOS. Expanded the swap. Reactivated OS/2 B.Mngr. with DOS fdisk
(cfdisk's rewrite of the partition table screwed up everything--only DOS's
fdisk from floppy saw two partitions being active and reset things).
Made and mounted the new e2fs over the swap, and copied over from the root all 
dirs. and files
after David's suggested reading of the Tips-HOWTO #2.6 (using tar). 
(Naturally I tried to move proc and several mounted partitions ... :)
Changing fstab (old vs. new swapped, keeping old for backup) and rebooting 
confirmed a working
system.  New swap now done .. up and running!

Concerning a few things--I couldn't simply use the expanded space--3
primaries and a logical partition prevented this.  Good suggestion, but too 
much work to redo all
my systems.  The above worked wonderfully well with 48 Mb RAM and an
original root partition which was maxed out at 100% usage (the tar/untar
worked with no problems).  Partition numbers did not change since I was
shrinking one, with another soaking it up.  OS/2's Boot Manager had no
problems with a new menu (I had troubles once in the past with that.  Now
don't know why.).

I am beginning to fully appreciate the Linux/Unix system of managing files and
partitions.  Such a move with OS/2, DOS, or WinDoze would have been a
nightmare with the drive path changes!

Thanks again!

Kenward


Exchange root and swap partitions?

1998-10-16 Thread kaynjay
Problem.  Not enough space for my root partition on hdb.  At 100% use, I
can't even send messages.  I'd like to shrink a DOS partition on hda, expand
the adjacent Linux swap partition into the freed space, then switch the root
and swap partitions.  One additional issue:  I'll be redoing OS/2's Boot
Manager in the middle to get the new partition on the menu.  This will need
a format of the swap partition to something OS/2 recognizes.  Afterwards,
I'll redo the fs for that partition.

Is this possible??  Is the resizing/formatting a problem?? I saw an earlier
post about moving root to a new partition but that didn't seem to cover this
problem.  I'll have sufficient swap afterwards, FWIW.

Thanks for any help!

Kenward
-- 
---
[EMAIL PROTECTED]
---


Re: Exchange root and swap partitions?

1998-10-16 Thread Helge Hafting
In BwTCcC.A.87D.CLvJ2@murphy, on 10/16/98 
   at 12:01 AM, [EMAIL PROTECTED] said:

Problem.  Not enough space for my root partition on hdb.  At 100% use, I
can't even send messages.  I'd like to shrink a DOS partition on hda,
expand the adjacent Linux swap partition into the freed space, then
switch the root and swap partitions.  One additional issue:  I'll be
You don't really have to move everything around unless you have other
reasons too.  Consider this alternative:
Just shrink that dos partition, and create an extra partition in the  free
space.  Then use 'du' and find a subdirectory on the existing root that is
approximately that size, and move that subdirectory only to the new
partition.  (Change the directory to a mount point for the new partition) 
Less data to move around, less work.  Moving the root can be tricky at
times.

redoing OS/2's Boot Manager in the middle to get the new partition on the
menu.  This will need a format of the swap partition to something OS/2
recognizes.  Afterwards, I'll redo the fs for that partition.
Os/2's boot manager does not need to understand the partition it boots!
You can run os/2's fdisk and add anything to the menu, even linux
partitions.  OS/2's fdisk will display a linux partition as type 83, a
linux swap partition will show up as type 82
There is no need to temporarily format the partition for os/2, it does not
need a drive letter for this to work.
If os/2 won't add linux to the boot menu then it may be some other
problem, such as the infamous 1024 cylinder limit.  If this bothers you,
put the kernel in a small partition of its own below cyl 1024, and install
lilo in that partition's boot sector.  You don't have to move root for
this.

Is this possible??  Is the resizing/formatting a problem?? I saw an
earlier post about moving root to a new partition but that didn't seem to
cover this problem.  I'll have sufficient swap afterwards, FWIW.
Resizing and formatting should work fine.  If you want to move root like
this, change the partition type, run mkfs, and then do the copying. Use
the correct parameters so that links, mount points and the files in /dev
are copied correctly.  
You do have enough RAM to run without swapping while making the transfer?

Helge Hafting
-- 
---
[EMAIL PROTECTED]
---