0

Note that I'M using Mint Linux with Cinnamon. I just got a new 250 Gig SSD and I'd like to have it mounted at /home/garrett. First of all, what's the best way to do this? Should I simply add a mount command to my .profile file? Secondly, I'M assuming that I'll need to move everything that's currently under /home/garrett to that drive before having it mounted, I figured things could get a little screwy if I'M logged in as garrett when this is preformed. So should I fist swith to runlevel 1 (single user no GUI) and log in as root as not to frak up anything when I move my files? Also, what command whould I use to move it all, I don't know if a simple mv would get it or not. I need to make sure I get everything including all the files that begin with '.'. Thanks.

2
Contributors
2
Replies
23
Views
4 Years
Discussion Span
Last Post by rubberman
1

Do all this as root: sudo su -

  1. Create a partition and file system in that partition on the new disc - use ext3 or ext4 file system types.
  2. When you create the file system, specify a label such as "garrett": mkfs -t ext4 -L garrett /dev/snX1 where /dev/sdX is the new disc, and 1 is the partition number. The label will allow the system to renumber the device ids and still find the file system to mount at boot time.
  3. Create a temporary mount point, such as /mnt/newdrive, and mount the new file system there: mount /dev/sdX1 /mnt/newdrive - run df after you do that to make sure you see the new drive.
  4. Move /home/garrett to /mnt/newdrive.
  5. Create a new /home/garrett directory with the appropriate ownership and permissions - this will be the new mount point where the system will mount the new disk.
  6. Assuming you are using ext4 as the file system type, add the entry "LABEL=garrett /home/garrett ext4 defaults 1 2" to /etc/fstab.
  7. umount /mnt/newdrive
  8. mount -a

Now, you should see your data in /home/garrett. Log back in as garret, and everything should look like it did before, except that you will now be on a nice clean 250GB file system! The next time you reboot, /home/garrett will be mounted before the system comes up.

0

Oops. I made a goof in the list above. Here is the correction.

  1. Same
  2. Same
  3. Same
  4. Move contents of /home/garrett, including hidden files and directories, to /mnt/newdrive.
  5. Do NOT bother to create a new /home/garrett directory, since this is where the new file system will be mounted.
  6. Same
  7. Same

Everything else will be the same. Sorry. My bad - posted the above late last night after only a couple of hours sleep the night before - brain fuzz. :-)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.