Burial Grounds Forums

Linux question
Page 1 of 1

Author:  bgclthe phr3ak [ Wed Dec 14, 2005 8:27 am ]
Post subject:  Linux question

So I've added my new hard drive.
used fdisk to partition it, and used mkfs to format it.
It's mounted and the /etc/fstab has had the line added for auto mounting.
It appears when I do:
df -h
How do I get access to all my new space? My home directory is only showing the space that's left on my original drive, and I am unable to copy files over to my computer. Am I missing something? I didn't think it was like windows where you have separate root directories for the hard drives. Meaning that when I run out of space on one drive, Linux automatically starts using the space on the other drive. I thought this was transparent to the user, and logically it appears as if it's a single drive.

Debian Linux
IDE drives.
ext3 formats

Where should I be looking and is there something additional I need to do?

Author:  Hex [ Wed Dec 14, 2005 2:13 pm ]
Post subject: 

not sure but maybe it needs to be mounted?

edit. uh, yeah. You said its mounted. Hex shouldn't be posting at 6 in the morning evidently.

Author:  joyrock [ Sat Dec 17, 2005 5:14 am ]
Post subject: 

While the filesystem logically appears as a single "drive", the location of the physical space created by adding the new disk depends on where the newly created filesystem is mounted. For example, suppose my system consists of a single IDE drive. If I install a second IDE disk to my system, and create a single partition and filesystem on it, and then mount that filesystem on /mnt/mybigharddisk, then the new space resides on /mnt/mybigharddisk. You would see something like this if you typed "mount" with no options:

/dev/hdb1 on /mnt/mybigharddisk type ext3 (rw)

If you really want the new space to be accessible under your home directory, then create a directory under your home directory and use that directory as your mount point, for example...

cd /home/bob (or whatever your id is)
mkdir mybigharddisk
mount -t ext3 -o rw /dev/hdb1 /home/bob/mybigharddisk

...and then update /etc/fstab accordingly.

Keep in mind that this still doesn't really buy you new space under /home/bob, but under /home/bob/mybigharddisk.

If that still doesn't cut the mustard, then blow the system away and use LVM partitions instead of normal partitions (which is what I plan on doing the next time I install :P).

Author:  bgclthe phr3ak [ Thu Dec 29, 2005 12:02 am ]
Post subject: 

that's what I ended up doing.
Like you said, it's not truly new space in my home directory, but it's there.

Now you've got me looking at LVM partitions :)

Author:  Commander Keen [ Thu Dec 29, 2005 1:36 am ]
Post subject: 

I would remove all partitions and run the Linux setup from the CD. I can't explain it but I have had trouble installing Linux on a partition created using Microsoft's fdisk.

If you can find some other partitioning tools, look on sourceforge.net or somewhere to see if maybe there's a free one that claims Linux compatibility.

But I'm willing to bet your distro will recognize the unpartitioned fixed disk drive and partition it for you. Besides you should let the installer create a page file/swap file partition for you it makes Linux perform better.

Author:  bgclthe phr3ak [ Thu Dec 29, 2005 1:48 am ]
Post subject: 

keen, I did all the partitioning of it from within my debian distro. My problem was that it wasn't "automatically" included in my overall space without a direct link (sym link actually) to it. I was under the impression that in Linux, there is an overall freespace that is an accumulation of all the hard drives. When one is full, the system starts using the next one. This didn't happen, so I was confused. I am curious though how it would have worked if the drive had been there all along......Guess I"ll find out when I blow this up.

Author:  Commander Keen [ Thu Dec 29, 2005 2:26 pm ]
Post subject: 

So you did or didn't use FDISK?

Author:  joyrock [ Thu Dec 29, 2005 7:30 pm ]
Post subject: 

It wouldn't have mattered even if the disk was there from the very start. You would have just had an extra disk on which you could have allocated your partitions. Using old-style partitions, you still would not have been allowed to create a filesystem that spans both disks, unless you're using a RAID. But since we're talking about 2 disks here and you want to maximize your storage, you'd be left with RAID 0, so that wouldn't really be recommended (unless you don't mind losing your data whenever you jar a drive cable loose due to an errant sneeze, fart, etc). So that basically brings us back to LV´s.

Author:  munsen [ Mon Jan 02, 2006 4:58 pm ]
Post subject: 

Phreak, I think what you want is LVM or to just mount the whole drive on /home. you can do either. Mounting the drive at /home is probably easier though.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group