LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-16-2020, 08:08 PM   #1
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Rep: Reputation: 40
Move system directory


How would i move /usr/share to /home/share?

/dev/sda1 is root but /dev/sdb4 is /home.

/dev/sda has 16gb and is full. The best way i could figure to make space is to move share. so i mv /usr/share /home then ln -s /home/share /usr/share.

But now my system is borked. Any ideas?
 
Old 08-16-2020, 08:44 PM   #2
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Quote:
Any ideas?
Undo the previous move and link and then solve why the disk is full.
 
Old 08-16-2020, 09:31 PM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by Furlinastis View Post
But now my system is borked. Any ideas?
Ideas for what exactly? To make your system bootable again, i.e., revert the mv? To make your idea work?
My guess would be that you might need /usr/share during the boot process but your /home is not mounted yet.

Look for hints in /var/log/syslog and /var/log/messages.

Alternatively, rebuild your system with a bigger root partition (Backup data first).
 
Old 08-17-2020, 12:33 AM   #4
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Original Poster
Rep: Reputation: 40
I dont have the option to make root drive bigger. I guess i could back up and reformat my home drive with a usr partition, i just thought there would be another way.

everything in usr/share is there. Although, im reading you should use rsync and not mv.

Quote:
My guess would be that you might need /usr/share during the boot process but your /home is not mounted yet.
Yea, its definitely mounting late in the boot cycle.

It does boot, but there are anomolies, like icons missing. I just figured i cant be the first person to run out of space and instead of buying a new drive , simply move a folder.
 
Old 08-17-2020, 01:10 AM   #5
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
You could use gparted to resize everything. I just made a huge move and resize of all partitions on a system and it workd well. Just be aware the uuid will change (check fstab for instance).
 
1 members found this post helpful.
  


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
move user directory and make it as a root's directory yerunkar11 Linux - Server 3 07-27-2015 11:39 AM
[SOLVED] move files or a directory to another directory using shell script user1111 Linux - Newbie 6 11-15-2013 08:13 AM
move all files in current directory into a subdirectory in the current directory jakykong Linux - Newbie 8 07-16-2013 11:46 PM
Move odd files in a directory to a different directory kamaleshbv1 Linux - Newbie 6 08-06-2012 07:18 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM

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

All times are GMT -5. The time now is 09:36 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