Muzi,
This isn't exactly an answer for what you asked, but in case you haven't
met them, df and du are two very handy little commands. Depending on
how much new free space you have to play with, you can use du to find
what will fit comfortably in it, make a filesystem, copy what you want
to move to it with cpio or tar (don't be put off by the impenetrable
synopsis, those man pages are well worth a few reads), delete the
contents of the dir you just moved, umount your new partition and mount
it on the dir you just moved. You don't want to try and move /bin,
/sbin, /dev, /etc, or /var, or you will surely shoot yourself in the
foot. It is much safer to do this kind of restructuring from a rescue
floppy.
Sounds complicated, doesn't it? I don't think it is really very hard,
but I've never had to do it. Any time my / fs gets 90% full I start
looking for files to delete and old dos partitions to run mke2fs on and
use for overflow.
That is another approach you can take, of course. Instead of trying to
keep the same fs structure as before, only split across 2 fs's, you can
just move things from / to your new fs. Probably you don't have
anything in /usr/local, so you could mount your new fs there and start
moving things off of /. By default I think RedHat doesn't include
/usr/local/bin or sbin in root's path, and I see their point, but
whatever shell you use, it takes its marching orders from some profile
rc file its manpage will mention, and you are free to change it. :-).
You should only use root for administrative tasks anyway.
Lawson
>< Microsoft free environment
This mail client runs on Wine. Your mileage may vary.
On Mon, 2 Aug 1999, Muzi wrote:
> hi again,
>
> i have linux installed on a 500 Megs hard disk, and it's full. as i
have other
> two hd's in my system
> i think i can resize the fat32 partition of one of them in order to add
a linux
> partition in the
> free space. my question is: is it possible to do it WITHOUT LOSS OF
DATA?
> no problems for the first step (i will use partition magic), but i
don't know
> if fdisk lets me just
> add a partition without formatting the entire volume or so.
> Next, how can i allow linux to use the new space? how will it be
available in
> the filesystem?
>
> thanx :)
> val
>
___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.