LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-10-2003, 12:21 PM   #1
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
Moving /var to new partition


I've searched for this already but didn't get the specific answer I'm looking for, so here goes a new post.
My daughter used to dual boot XP/Slack 9 on her laptop. She decided to do away with the dual boot and run slack 9.1 alone (she likes kopete better than trillian was her reason heh). At the end of her hard disk, I made a 1 gig partition to hold some data from XP she wanted to keep. Slack is up and running, and the win partition is now reiserfs. What I'd like to do is move /var to this partition. Is this possible to do on the /var folder? I'm asking because it's so dynamic, she has an ATI video chip and it spits out messages to the x log pretty frequently.

Here's my partition scheme
Code:
                         cfdisk 2.12
                                                                     
                    Disk Drive: /dev/hda
              Size: 30005821440 bytes, 30.0 GB
    Heads: 255   Sectors per Track: 63   Cylinders: 3648
                                                                     
   Name     Flags   Part Typ        FS Type       [Label]    Size (MB
)-----------------------------------------------------------
   hda1              Primary           Linux swap                  509.97
   hda3     Boot   Primary           Linux ext2                   98.7
   hda4              Primary           Linux ReiserFS             6999.7
   hda5              Logical            Linux ReiserFS            10001.9
   hda6              Logical            Linux ReiserFS            11342.6
   hda7              Logical            Linux ReiserFS             1052.8
hda1 = swap
hda3 = /boot
hda4 = /
hda5 = /usr/local
hda6 = /home
hda7 = unmounted <future /var>

any ideas/suggestions/help is appreciated
 
Old 12-10-2003, 12:24 PM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
You can give it a try.

What I'd do is load the boot CD and then chroot the main partitions ( not really needed, but it's easier than typing /mnt/sysimage all the time ).

From there, I'd do a cp -R from /var to /newvar, then mv /var /oldvar;mv /newvar /var, then change the fstab entry to point to the partition of the new /var. Reboot.

Hopefully that's a good enough outline for you on how to do it.
 
Old 12-10-2003, 12:33 PM   #3
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Original Poster
Rep: Reputation: 30
Good idea. I never thought of using a boot cd. I'm trying it now
 
  


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 /home /root & /var to new partition CrashedAgain Linux - General 8 11-24-2005 10:44 AM
Can't install packages after moving /var zag_zag Debian 4 11-26-2004 05:21 AM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 06:46 PM
Moving contents of /var to separate partition TexasDex Linux - Software 2 03-01-2004 08:30 PM
moving /var to a new hdd freelinuxcpp Linux - Software 4 11-02-2003 02:52 AM

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

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