Mounting New Hard Drive
Can someone let me know how I would go about mounting a new secondary hard drive in a Centos 5 box? I have a primary already in the box and I think I need to create a new /dir and mount it to that but not sure. I know this is a noobie question.
|
You don't mount drives you mount filesystems so what do you have on the second drive, another partition, another OS?
|
Hi,
Quote:
Code:
~#mkdir /mnt/my_mount_point #create a dir within /mnt Code:
~#mount -t ext3 /dev/sda1 /mnt/my_mount_point You could just as easily create '/home/username/mount_point' within your structure. 'man' is your friend and I suggest that you do use it. You could look online at 'LINUX MAN PAGES ONLINE'. I would suggest that you look at 'Linux Newbie Admin Guide'. These links and others are available from 'Slackware-Links'. More than just SlackwareŽ links! |
No its just a secondary with nothing on it. I will have to migrate the stuff on the old secondary to it. I was curious if I needed to mount it?
|
Hi,
Quote:
You could do a 'dd' to copy the whole thing. Look at 'Learn The DD Command Revised' to get the whole scope. This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links! |
I should think that there is little point in dd if you are not copying system files. Just copying stuff using cp (-R) will have the advantage that your stuff gets defragmented in the process while dd basically makes a clone of the original.
Of course, before you can mount your drive, you'll need to format. This can be done either from the command line using fdisk and then mkfs.ext3 or graphically using gparted (available on most distros, including CentOS). |
Ok I think I got it. Thanks guys.
|
Hi,
Quote:
The cp -R does not defrag the stuff. Where do you get the file(s) is fragged to begin with? If it was a M$ filesystem then the possibilities do exist that things could be fragmented. If a existing Linux filesystem then fragmentation is not going to be a problem or issue. The (-R) is just a recursive copy option for the 'cp' command. Yes, 'dd' will copy and convert depending on the options the user supplies. I would feel better using dd to clone a copy of a system than a 'cp -R' of the same. Sure you need to know what your doing with 'dd' but the same goes with any command. |
Quote:
|
Hi
Agree! Terminology can be a hassle at times. I just read that the '-R' as you stated would defrag as a copy. Actually the cp would copy, but the actual structure of the copy will be dependent on the target not the source (other than having valid data as source). The flow of the information would be source dependent but the final copy would be target dependent for the final copy by default in the way the file(s) are allocated storage. That's another reason to utilize the 'dd' to make a migration of bulk information. Just my way! Sure if I just have a few MB to copy of a fileset then a cp would be the way. But large amounts of data do warrant a controlled and verifiable copy of information. I see people drag & drop all the time and then when they have a corrupt copy of the information that is a must have set complain when the data is not valid. I've seen people copy information to a file then move the same to a cd for term storage. They then take the cd out with the assumption the data is valid. The burn software checked it right! :rolleyes: GUI's have cost companies more $$ than they have saved. |
All times are GMT -5. The time now is 06:28 PM. |