How to mount my other 1TB please ?

FileSick

Verified User
Joined
Oct 5, 2013
Messages
104
hello

i ordered a 2TB server recently and i can't find my other 1TB

http://imgur.com/L3RPoOR

so i contacted my hosting provider and they responded with this

"Your other 1tb is attached to your server. You will have to mount it"

but i don't know how and i don't want to lose the data that's on the server so could you please help me and tell me how to mount the other 1TB please

i Run centos 6
 
Last edited:
You can mount it one time using the mount command. For instructions:
Code:
$ man mount
You can set it to mount automatically by adding a line to the /etc/fstab file and remounting your entire file system (instructions in man mount).

I can't tell you the specific mount location because your hosting company doesn't seem to tell you the name of the drive.

And you may need to create one or more partitions on the new drive and/or format them with the filesystem of choice, as well.

If you're running a CentOS system you can hire me to do this work for you (send an email to my email address below in my siglines). Or lots of others who post here can do the work for you as well, on CentOS, Debian-based systems or FreeBSD systems.

Or if you post the output of this command:
Code:
$ df -h
We can tell you where yur new drive may be located.

Jeff
 
thank you so much for your help and time


so sorry i can't afford to hire you i want to do this on my own so i can save money

the output

Code:
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb2       907G  663G  199G  77% /
tmpfs           3.9G     0  3.9G   0% /dev/shm
/dev/sdb1       504M  123M  356M  26% /boot
tmpfs           3.9G   12K  3.9G   1% /tmp


guys please help ASAP
 
Check if you can see the drive with
Code:
# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1
then create a partition (be very careful what you answer):
Code:
# fdisk /dev/sdb
then create a filesystem and give a label (in this example the label is /data) to the drive
Code:
/sbin/mkfs.ext4 -L /data /dev/sdb1
then mount the drive
Code:
# mkdir /data
# mount /dev/sdb1 /data
ONE MORE THING:
With the command "[FONT=Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif]fdisk -l" [/FONT]you can find newly added drives[FONT=Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif][/FONT]
 
Last edited:
Note carefully: It appears that the drive in use is found as sdb (see the output of df -h. So it's likely the empty hard drive is one of the others. It could be drive sda or drive sdc, or some other drive, depending on how it's physically attached.

If you play with the partitions of sdb you'll likely destroy your entire installation, based on your output.

I recommend you ask your vendor for help in knowing what the drive is installed at.

You'll likely need to partition it with one or more partitions and then format the partition(s).

You can mount the drive as an additional drive once it's partitioned and formatted.

If you want to try on your own you might want to look here (techotopia.com).

Jeff
 
so sorry guys i was so busy with the school i couldn't answer you

so what happened i stopped before the fdisk cause i'm not sure what's going to do but when i entered

# ls /dev/sd*

i got this output

/dev/sda /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb3

so does that help ?

waiting for your responds
 
This means that you have installed your OS on the second drive "sdb"
Use "fdisk /dev/sda" to create a partition on the first HDD (be very careful what you answer - read the fdisk manual or look for examples on the internet) and then "/sbin/mkfs.ext4 -L /data /dev/sda1" to create the filesystem.
Then mount the partition to a folder on your system, e.g.:
# mkdir /data
# mount /dev/sda1 /data
 
and then it's going to act like one or not cause noway i don't want to lose any of my data at all not even 1 byte

like i want when i upload the two HDD act like 2 TB you know what i mean please let me know

waiting for your respond
 
Well, to be honest, I don't know what you mean.
But if you mount the drive to a folder, this folder will be 1TB capacity.

I see that the response from the datacenter is: "Your other 1tb is attached to your server. You will have to mount it"
If you don't mount it, how do you want to use it?
 
i understand but when you say fdisk i get scared like i am not an expert may be i will do a mistake or something and i won't mount it properly you know what i mean so please if you can type me the commands again carefully also please pm me how much it's gonna cost me to hire you to do it ?

waiting for your respond
 
Sorry, no time to hire me, but it's a good thing I found some documentation I wrote in the past.

I just copy and paste. NOTE that I had to mount the 2nd drive "sdb"
You have to replace "sdb" with "sda".

If you don't understand the document DO NOT do it. Read some documentation first...


HOW TO MOUNT a second Hard Drive:


Find the new hard drive:

# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sdb

Create one or more Linux partitions on the new disk drive

# fdisk /dev/sdb

Switch off DOS compatible mode and change the units to sectors by entering the c and u commands:

Command (m for help): c
DOS Compatibility flag is not set

Command (m for help): u
Changing display/entry units to sectors

View the current partitions on the disk enter the p command:

Command (m for help): p

Create a new partition on the disk, a task which is performed by entering n (for new partition) and p (for primary partition):

Command (m for help): n

Command action
e extended
p primary partition (1-4)
p
Partition number (1-4):

Create one partition which will be partition 1

Partition number (1-4): 1
First sector (2048-67108863, default 2048): (just press Enter)
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-67108863, default 67108863): (just press Enter)
Using default value 67108863

Write it to the disk using the w command:

Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.

Check the devices:

# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1

Create a filesystem:

# /sbin/mkfs.ext4 -L /data /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=/ data
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
2097152 inodes, 8388352 blocks
419417 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
256 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

Mount the filesystem:

# mkdir /data
# mount /dev/sdb1 /data

Edit /etc/fstab to auto mount the partition and add at the end of the file:

LABEL=/data /data ext4 defaults 1 2
 
Last edited:
Back
Top