SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381
Rep:
moving folders from one drive to another
I just completed a fresh full install of 14.2. My system has 3 drives not set as raid or lvm. SDA1 is mounted as root, sdb1 is mounted at /home/pictures, and sdc1 is mounted at /home/videos. What I wish to have is /home/user/pictures on sdb1 and /home/user/videos on sdc1. I thought I could just move the folders to the correct drive, but that doesn't perform as I expected. What is the correct procedure to set this up?
If you simply want to change the mounts to the new names you can:
1) Unmount the existing filesystems:
a) umount /home/pictures
b) umount /home/videos
2) Create directory /home/user if it doesn't already exist:
mkdir /home/user
3) Move the mount point directories under /home/user
a) mv /home/pictures /home/user/pictures
b) mv /home/videos /home/user/videos
4) Modify /etc/fstab to change the mount point for each of the filesystems to match the new names in step 3a & 3b using your favorite editor. (Assuming these were already in fstab - if not you may wish to add them so they get remounted automatically on boot.)
5) Run "mount -a" to mount all filesystems in /etc/fstab
(or alternatively mount each filesystem with full mount command specifying the device and the new mount point for each).
Nothing is obsolete so long as it still does what you acquired it to do and it still meets your needs.
I'd modify that to "so long as you can keep it doing what you acquired it to do". Out here in the professional system admin world there are way to many systems that are one failure away from becoming doorstops because no one wants to take the effort to migrate to systems for which parts are still available.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.