[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how do i mount a drive?

Posted on 2004-11-30
9
Medium Priority
?
238 Views
Last Modified: 2013-12-15
How do I mount a hard disk on a server? I've never done this before to be honest. How do I know "where it is" or what directory, ie "/backup" or such to mount to? Please explain.
How do I see all disks on the server, their full info?
I need to format it first.

I'm using IDE. This is what whm's server info shows (before mount)

Filesystem Size Used Avail Use% Mounted on
/dev/hda3 75G 3.4G 68G 5% /
/dev/hda1 99M 14M 80M 15% /boot
none 498M 0 498M 0% /dev/shm

Thanks
- newbie -

specs:
cpanel/whm
centos 3.3
0
Comment
Question by:SecretAgentOnline
  • 3
  • 2
  • 2
7 Comments
 
LVL 41

Accepted Solution

by:
stevenlewis earned 1000 total points
ID: 12708656
0
 

Author Comment

by:SecretAgentOnline
ID: 12708678
Ok, thats a lot of details. Can you please just post
the simple command lines for me?

By the way, this is a secondary 80GB drive too.
0
 
LVL 41

Expert Comment

by:stevenlewis
ID: 12708782
do  you have a directory for it
make a dir for it
mkdir mnt/d
try mount /dev/hda3 mnt/d
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 41

Expert Comment

by:stevenlewis
ID: 12708786
0
 
LVL 8

Expert Comment

by:edkim80
ID: 12708815
try the cmd

fdisk -l

this usually shows you which drives are connected

to mount a drive type

mount -t (type of file format) /dev/hdb1 (or whatever ur device is) /any directory

so for example you could type

mount -t vfat /dev/hdb1 /mnt/edrive

make sure the directory edrive exists in /mnt and u can just cd to /mnt/edrive and ls.

Hope this helps
Ed
0
 

Author Comment

by:SecretAgentOnline
ID: 12708980
ok, here are the results, please tell me what do next, thank you much

root@server [~]# fdisk -l

Disk /dev/hdc: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System

Disk /dev/hda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        13    104391   83  Linux
/dev/hda2            14       144   1052257+  82  Linux swap
/dev/hda3           145     10011  79256677+  83  Linux
0
 
LVL 8

Assisted Solution

by:edkim80
edkim80 earned 1000 total points
ID: 12709219
u want to create a filesystem on /dev/hdc so type

parted /dev/hdc mkpartfs primary ext2 1 80000

where 1 = start of partition in MB
80000 = end in MB (80000 ~ 80GB)

then u should see something like
 /dev/hdc1 under fdisk -l

then mount -t ext2 /dev/hdc1 /mnt/edrive

Regards,
Ed
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month18 days, 15 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question