Search results
Results from the WOW.Com Content Network
If you have a directory named /mnt/drive2 (/mnt is commonly used, but it can be in your home directory if you want), and your drive is /dev/sdb, with a single partition, then the simplest command is: sudo mount -t type /dev/sdb1 /mnt/drive2
You can do that by the command: echo -e "\ncd '$(pwd)'" | tee -a ~/.bashrc Where: echo will print to the stdout the string enclosed with the quotation marks. The option -e will enable interpretation of backslash escapes, so \n will be interpreted as new line. '$(pwd)' will expand the output of the pwd command as string, enclosed with single quotes.
Here /dev/sda2 is the device (in this case, a hard drive's partition) you want to access, and /media/username is your mountpoint, i.e., the location in the filesystem where you want to mount the device. To answer your questions: Yes, using cd is the normal way to change directories.
Size it to hold the existing contents of / that you want to move to the new disk, plus however much space you want left over. Say you're using 14 GiB of your 16 GiB /, and you want to move only /home, which is using 10 GiB. If you want double your current space, you'd make the new drive 20 GiB.
Want to move your Linux home folder to another drive? Here's a straightforward and step by step way to do it that should work on any distribution. Moving your home folder means you can reinstall Linux and not have to worry about your personal files.
"drive" isn't a concept in Linux, it's nothing you could "change to". Storage devices like /dev/sdb are containers for file systems. File systems must be mounted to a directory of an already mounted file system (starting with the root file system) thus forming a single hierarchy.
Method 1# using dosfslabel ( As @Macro suggested ) Umount Partition. sudo umount <device> Set Label using : sudo dosfslabel <device> label. Method 2# using mtools.