Help - Search - Members - Calendar
Full Version: Access second drive?
The Planet Forums > Operating Systems > Red Hat Linux
Joseph4829
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
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
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
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
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
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
Thx. What does "mount" mean / do BTW?
benito
I got one of this:

none 1007M 0 1007M 0% /dev/shm

What is its ?
firestarter
Can you paste the command that you were trying to fire in??
Joseph4829
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
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
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.
Invision Power Board © 2001-2010 Invision Power Services, Inc.