Richard W. Ernst wrote:
> Michael Lynch wrote:
>> Is it possible to mount a hard drive and make /root recognize it?
>>
>> For example I have a 120 gb drive and I would like to add
>> another 40 gb drive but I would like my /root to increase its size,
>> from 120 to 160 gb.
>>
>> Is this possible and if so how would I accomplish it?
>>
>>
>>
>> Thanks,
>> Michael
>>
>>
>> Ps my distro is FC6
>
> Another alternative would be to mount the 40 G drive as a subdirectory
> of /root and move the data from the current subdirectory to that new
> subdirectory that's physically on the other drive.
>
Ok, looking back at your question, I think the excursion into LVM was
probably an unnecessary complication for what you probably want to do.
See if this is right:
- You installed FC6 to a 120 GB drive
- You have a 40G drive that works, is physically attached and is
recognized by FC6, and you just want to make use of it.
Not that you are exactly running
out of space on the 120, I presume :-)
Here's one recipe (but read further below, too):
# mkdir /extra
# mkfs.ext3 /dev/sdb1
# mount /dev/sdb1 /extra
df -h
ls -l /extra
The df command should show sdb1 mounted on extra with some smallish
fraction used (unavoidable initial overhead). The ls -l should show a
directory named lost+found (always present on ext3 filesystems), and
nothing else.
Then you should edit /etc/fstab to contain a line like
/dev/sdb1 /extra ext3 defaults 0 2
so that future boots automatically mount it.
You now have something close to 40GB of space in the directory /extra
for whatever purpose you want.
Another approach (as Rich was describing) would be to use that 40GB for
some existing content, corresponding increasing the space on the 120G'er
by the stuff moved. You would have to temporarily mount sdb1 somewhere,
and then move the existing content to the new storage at it's temporary
location, and then unmount the new storage and remount it at the
existing directory. This is a little more complex and just a tiny bit
tricky, so if you want to do this, post some more messages, such as "how
would I put my /home on my 40G drive?".
Feel free to ask questions, when I run off like this, .. :-)
BUT: the following is probably what you want to do next
=======================================================
It may be useful to see what the layout and status of the 40G is, so
that further recommendations don't conflict with anything.
I presume the drive is installed and recognized? Maybe you could post
the output of these:
df -h
cat /proc/partitions
sudo fdisk -l
One further question is: does your 40G have anything on it, or are you
wanting/needing to replace whatever might have been there with a clean
empty filesystem.
Regards,
..jim
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie