LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2009, 04:49 PM   #1
mortalic
LQ Newbie
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
trying to move some folders to new partitions and failing.


My wifes netbook is out of space on the / partition, so I'm trying to move her /var /lib and /opt folders to their own partitions on a seperate device (sd card). I've successfully resized the sd card with 3 new partitions. Here is where I'm stuck

I mount the first new partition to /mnt/temp then cp -Rp /var/* to /mnt/temp/

then I modify the /etc/fstab for /var on the new partition
UUID=<uuidnumber> /var ext4 relatime 0 0

When I reboot the system, it works fine until she logs in, then gnome throws a bunch of errors about the panel encountering a problem while loading gnome applets, and do I want to delete the applet from my configuration.

Another error is an Internal error: failed to initialize HAL!

I'm very confused and really need to get this laptop working soon.
Here's the details of the system:
Asus Eee 901,
Eeebuntu 3.0.1
4gb SSD
16gb SD

Last edited by mortalic; 08-29-2009 at 05:08 PM.
 
Old 08-30-2009, 08:26 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
Once you mounted /mnt/temp/ try the copy action like this:
Code:
rsync -uav /var/ /mnt/temp/
Do not omit the backslash behind /var/, enter this exactly like I wrote, no asterisk.

Needless to say to do this as root.

If you changed just the UUID to the new UUID in fstab and the device mounts correctly I don't see any reason why it should not work.

After the copy action you could try and see if you can mount the new partition on /var and if the contents of /var looks familiar to you. This is not completely fool-proof, applications which rely on /var/ might crash if you point them to /var which is not up-to-date with currently running processes.

jlinkels
 
Old 08-31-2009, 08:03 PM   #3
mortalic
LQ Newbie
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
thanks

Well I messed something up beyond repair before I could try your suggestion, good thing I made a backup I guess. I'll just repartition the drives the way I want them and reinstall linux. Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to uninstall folders/programs that do not have a move to trash option robert n. Linux - Software 2 08-13-2008 07:34 PM
I can't move my files to folders using metacharacters (mv ./.blah ../?[0-9]/) Cyberman Programming 5 06-29-2008 08:34 PM
Can't move files/folders to trash... adred Linux - General 1 06-22-2008 05:40 AM
Move huge amount of folders with bash alexweb Linux - Newbie 4 10-27-2006 04:06 AM
move files in tar.gz back to into original folders GUIPenguin Linux - General 1 05-09-2005 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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