LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-21-2004, 06:01 PM   #1
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
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.

Last edited by GT_Onizuka; 04-21-2004 at 08:23 PM.
 
Old 04-22-2004, 02:50 AM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
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
 
Old 04-22-2004, 02:57 AM   #3
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 30
Sweet I've got it all working out perfectly. ReiserFS is teh own.

Last edited by GT_Onizuka; 04-22-2004 at 03:03 PM.
 
Old 05-26-2004, 02:32 AM   #4
brehmc
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
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
 
Old 05-26-2004, 05:15 AM   #5
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 30
/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.

Last edited by GT_Onizuka; 05-26-2004 at 05:24 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting specific hardware devices to specfic mount points tallguy999 Linux - Newbie 3 11-27-2003 02:07 PM
help with mount points rmanocha Linux - Software 12 10-26-2003 01:32 PM
help mounting points bosewicht Linux - General 2 10-01-2003 10:53 AM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM
mount points... Jeffrey Linux - General 6 02-24-2001 12:09 PM


All times are GMT -5. The time now is 10:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration