[95259] in RedHat Linux List
making more space for linux
daemon@ATHENA.MIT.EDU (Martin P Holland)
Fri Oct 16 10:42:15 1998
From: Martin P Holland <m.holland@dial.pipex.com>
Reply-To: m.holland@shef.ac.uk
To: redhat-list@redhat.com
Date: Fri, 16 Oct 1998 15:02:00 +0100
Resent-From: redhat-list@redhat.com
Hi
I have been using RH 5.1 for a while now with 1GB of hard drive space and 80M
of swap (I have 80M RAM). The 1GB partition is 95% full so I have freed up some
space by deleting a 1 GB partition in windows and I plan to partition this into
two parts and mount a couple of directories there (most likely /home and /usr).
So far this has not been plain sailing! After doing the delete when I rebooted
into linux I got a "kernel panic can't mount the / filesystem" type message.
After a while I worked out that the deletion had relabelled the partitions on
my drive a little but fstab still had the same old stuff. So I booted in from
loadlin mounting / on hdb5 rw and I can now actually use the system.
The current state of my system is:
c: (hda1) win 95 1G
d: (hdb1) win 95 2G
hdb2 (the new 1G partition I freed from windows)
hdb5 / (my exisiting 1G linux--used to be hdb6)
hdb6 swap (80M used to be hdb7)
I tried to change fstab to reflect this the "official way" using control
panel->filesystems without any luck. So in the end I just edited fstab directly.
Now, when I look in control panel it seems to think that these partitions are
all 0MB long. Can I do anything about this? Does it actually matter?
By the way here is my current /etc/fstab:
/dev/hdc /mnt/cdrom iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy ext2 noauto 0 0
/dev/hda1 none ignore 0 0 0
/dev/hdb1 none ignore 0 0 0
/dev/hdb2 none ignore 0 0 0
/dev/hdb5 / ext2 defaults 1 1
none /proc proc defaults
/dev/hdb6 none swap sw
Now if I try to make a fs on my new partition hb2.
I get this:
[root@localhost /root]# mke2fs -c /dev/hdb2
mke2fs 1.10, 24-Apr-97 for EXT2 FS 0.5b, 95/08/09
/dev/hdb2: Not enough space to build proposed filesystem while setting up superblock
What can I do to avoid this?
Actually, I should obviously first break the partition of hdb2 into two parts
(one for /usr and one for /home). I recall from the installation that disk druid
seemed to be easy to use for creating partitions. Can I use this now? If so,
where is it?
Assuming I make the partition on hdb2 and then the fs, I am a bit
puzzled about how I actually mount /usr and /home on these positions.
I am guessing that I should use cpio to copy the contents of /usr and /home
to the approriate places. But then if I type something like mount /dev/hdb2 /usr
isn't there an ambiguity? if I look for /usr/file is this the /usr/file that is
mounted on hdb2 or the one on hdb5 under /usr?
I suppose I could rename the /usr on hdb5 to something before mounting. Is that
the answer?
Finally, one more question about swap partitions. I read that you "should" have
a swap partition at least double the size of your RAM. So should I have a
second 80M partition on hdb2?
Sorry for sending such a long mail and thanks for any help.
Martin
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.