Joseph4829
Dec 13 2004, 09:46 AM
I got a server with two hard drives. I didn't think I would need the second, but now I do. How do I access the second drive? Also, how do I see how much space is left on both drives?
Thanks in advance.
RexAdmin
Dec 13 2004, 10:30 AM
You have, probably, already monted second hdd.
You can check it with "mount" command.
"df -h" will give you free disk space...
Good luck.
Joseph4829
Dec 13 2004, 11:00 AM
This is what I got. I have not idea what this all means.
# mount
/dev/sda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 66G 2.9G 60G 5% /
/dev/sda1 99M 15M 80M 16% /boot
none 1007M 0 1007M 0% /dev/shm
Yivit
Dec 13 2004, 05:27 PM
Looks like you only have one HD with any mounted partitions. Try "fdisk -l" to see your partitions of all your drives, mounted and not. I would be willing to bet your second HD is /dev/sdb for the physical device, and probably all one partition.
Joseph4829
Dec 13 2004, 05:32 PM
Here is what I got....
Disk /dev/sda: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 268 2048287+ 82 Linux swap
/dev/sda3 269 8924 69529320 83 Linux
Disk /dev/sdb: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 8924 71681998+ 83 Linux
Yivit
Dec 13 2004, 05:37 PM
Yep, you have /dev/sdb1 which is one large partition. To use it you would need to mount it. Create a directory whereaver you want the mountpoint to be (/home2 for example) and then mount it there. Most likely the command would be (using my example):
mount -t ext2 /dev/sdb1 /home2
To make sure it mounts after a reboot, you would add the appropriate line in /etc/fstab.
Joseph4829
Dec 13 2004, 05:46 PM
Thx. What does "mount" mean / do BTW?
benito
Dec 13 2004, 05:54 PM
I got one of this:
none 1007M 0 1007M 0% /dev/shm
What is its ?
firestarter
Dec 14 2004, 03:38 AM
Can you paste the command that you were trying to fire in??
Joseph4829
Dec 14 2004, 05:17 PM
Ok, I did the mount command. But it only says 50% is available. how do I get the whole 100%?
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 66G 2.9G 60G 5% /
/dev/sda1 99M 15M 80M 16% /boot
none 1007M 0 1007M 0% /dev/shm
/dev/sdb1 68G 32G 33G 50% /home2
Yivit
Dec 14 2004, 07:07 PM
hmm...
Look at what's on there. Normally that second drive should be empty. Sounds like someone forgot to wipe it before putting it in your machine.
Joseph4829
Dec 14 2004, 07:32 PM
You're right, has a bunch of crap on it -lol.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.