Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm currently running CentOS 6.4 64bit, earlier I made a post about my disk space running out and theres just not much I could do, so I've got a 240GB SSD now, I still have my old 120GB SSD with all my files on, I know how to transfer them all etc I just need to know how to mount this drive without losing any files.
Can someone tell me the basic steps and commands to mount a drive to my /mnt folder without losing any files, thanks.
As root. disk -l. This will tell you the /dev/sdX of that drive. If you have it formatted as any filesystem then ext# then you will need to properly use the correct -t option.
As root. disk -l. This will tell you the /dev/sdX of that drive. If you have it formatted as any filesystem then ext# then you will need to properly use the correct -t option.
Create a mount point. Ex: /mnt/ssd2
Then just mount the drive
mount /dev/sdX# /mnt/ssd2
That is only if it is properly formatted
Thanks, and how can I format it properly without losing files?
The correct command is fdisk. The -l option will output how the drive is partitioned.
It is not obvious from your post if the 240 GB drive is brand new which typically are not formatted if is installed internaly. External drives are typically pre-formatted NTFS.
Also, if you are logged into phpMyAdmin, click the menu item for "Show MySQL Variables." It will show you the data directory, as well as many other variables. For example:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.