LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mounting new HD space into existing mount points? (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-new-hd-space-into-existing-mount-points-173036/)

GT_Onizuka 04-21-2004 06:01 PM

Mounting new HD space into existing mount points?
 
Okay here's my situation, I just got a new hard drive (200 GB its fabulous) and I'm trying to think of various ways to partition it. Here's my current HD and how its set up:

Code:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6            9.3G  7.0G  1.9G  80% /
/dev/hda7            9.3G  8.7G  137M  99% /mp3
/dev/hda8              38G  36G  296M 100% /home
/dev/hda1              16G  14G  2.8G  83% /mnt/windowsC

Now here's my first questions, is there anyway I could partition my new hard drive, and let's say, in addition to having /dev/hda7 mount into /mp3, also have /dev/hdb1 mount into that same directory? I want to keep them divided up like this, by 10 GB isn't enough for my music. I have a feeling this is impossible, so here's my next question. What, do you think, would be the best way to move everything around to have it set up, without having to back everything up? I was planning on making my /mp3 directory ~40 GB and keeping my home directory the same. I was then going to make the rest of the new hard drive into a big multimedia directory, since I download lots of anime/movies/etc. and I need a place for all of it. / has enough since I have about 3 GB of music and videos that would go into another directory after everything is all straightened out. If I can't go with my original plan (mounting two partitions into one directory) could I copy everything from /home to the new harddrive and have /mp3 occupy all the space at the end of the first drive? And then just partition the new drive from there? What software would I need to use to make /mp3 occupy the remainder of /dev/hda? I'm rather new to adding hard drives under Linux, so any help/suggestions you would have would be greatly appreciated. Thanks!

EDIT^2: Okay, well apparently, I have to do mke2fs -j to make the ext3 filesystem. I figured it did that during fdisk, but I'm wrong, so I can mount the partition no problem.

finegan 04-22-2004 02:50 AM

You might want to look into LVM, then you could append the whole 200Gb, let's call it /dev/hdb1 for the sake of argument onto the end of the partition /dev/hda7. The filesystem will see one horking 209Gb partition, lvm gets a little involved, I've never used it myself, but that's an option.

Also, ext3 begins to get really topheavy in filesystem infrastructure in the 100ish gig land, you'll end up losing less space to just simple inode allocation, etc, with something like Reiser or XFS.

Cheers,

Finegan

GT_Onizuka 04-22-2004 02:57 AM

Sweet I've got it all working out perfectly. ReiserFS is teh own.

brehmc 05-26-2004 02:32 AM

Hi GT_Onizuka,

which mount options did you use?
I've already added a new partition into my filesystem, but now I cannot chown...
The actual according entry in my /etc/fstab is the following

/dev/hdb1 /home/data auto defaults,umask=0 0 0

Thank you
Christian

GT_Onizuka 05-26-2004 05:15 AM

/dev/hdb1 /home ext3 defaults 1 2
/dev/hdb2 /media reiserfs defaults 1 2

Those are the two patitions on my second hard drive, are you sure you are using the chown command correctly? Try, as root, something like this:
$ chown -R username:group /home/data
That's really all I did. And my partitions are both owned by me
Code:

ynadji@onizuka:ynadji$ ls -al /
[unimportant stuff]
drwxr-xr-x    8 ynadji  users        232 May 16 10:41 media
[other unimportant stuff]

Hope that helps!

EDIT: brehmc, I just wanted to make sure you knew that I wasn't able to add new HD space to an existing partition, but I ended up moving things around and putting the /home and /media partition on my new hard drive.

And welcome to the boards! You'll learn a lot here, excellent resource.


All times are GMT -5. The time now is 06:32 AM.