LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-29-2016, 03:56 PM   #1
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
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?

Thanks for any help.

Dan
 
Old 12-29-2016, 04:07 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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).
 
1 members found this post helpful.
Old 12-29-2016, 04:31 PM   #3
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
That did the trick! Thank you for your help. I will mark this solved.
 
1 members found this post helpful.
Old 12-30-2016, 08:42 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Glad I could help. Thanks for marking it Solved.

Quote:
Originally Posted by interndan View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files to corresponding folders nouse Linux - Newbie 6 09-16-2013 12:13 PM
Moving Folders Bladez711 Linux - Newbie 2 09-14-2009 09:53 AM
Which software and how to use for moving folders from 1 drive to another using LiveC pintree3 Linux - Desktop 6 03-05-2007 05:51 PM
Folders moving themselves between drives tmoorman Mandriva 1 07-12-2005 02:43 PM
moving folders Vyker Slackware 4 09-04-2003 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration