LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2009, 08:44 AM   #16
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529

Quote:
Originally Posted by syg00 View Post
This is why I still use ext3, and distros that allow root login ...
BTDTGTS
Heh, since I'm learning as well and you're asking for it: what do you mean? And more importantly: who actually sent you the shirt? I didn't get any.
 
Old 07-06-2009, 08:52 AM   #17
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
ext3 (by default)reseves 5% in a filesystem for root in case the filesystem "fills" (see "-m"). Bloody handy.
GotTheScars ....
 
Old 07-06-2009, 01:59 PM   #18
mprogrammer
LQ Newbie
 
Registered: Jul 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I appreciate your help guys, but no one answered my question yet still. How do I move /var folder from sd4 to sd3? is it even possible?

Thank you all again!!
 
Old 07-06-2009, 06:15 PM   #19
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Given those sizings, it should fit pretty easily if you have been rotating logs and such. "df -h" will tell you how much free space you have/need.
Best done from a liveCD - "cp -a /media/sda4/* /media/sda3/var/" (depending on mount points) should do it if you have the space. Fix the fstab to remove the /var entry and try a reboot.
If you don't have the space, try and make it fit - clean out logs to make /var smaller, and get rid of (big) crap out of /home usually works best.
Else you'll need to delete/reduce the swap allocation and create a new partition for /var and copy it there. Then fix fstab again - potentially for / and swap as well depending if you use UUID/LABEL.

Edit: might be best to clean out the /media/sda3/var/ prior to the copy. It may well have old data in it you haven't been able to see due to the mount of sda4.

Last edited by syg00; 07-06-2009 at 06:22 PM.
 
Old 07-06-2009, 07:30 PM   #20
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Grab a livecd, mount the var and the root partitions and copy the data from the var partition to the var folder (cp - vax *) inside your root partition. Then remove the /var line from your fstab file on the root partition. Unmount, reboot, solved.

Of course, while you are at it, you could create an extended partition, then create a new var partition and copy the data back. You may (and probably) still need to fix up your fstab.

Next time, make sure to create any partition beyond the third one a logical partition; That way you can have fourteen or fifteen rather than just four.

Edit: aargh, I need to start reading; answer already posted by syg00.

Last edited by jay73; 07-06-2009 at 07:32 PM.
 
Old 07-07-2009, 12:20 AM   #21
mprogrammer
LQ Newbie
 
Registered: Jul 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I appreciate your help guys!!
 
Old 07-08-2009, 08:02 AM   #22
peacenik
LQ Newbie
 
Registered: Apr 2007
Distribution: Slackware w/grub (mostly), Debian, NetBSD
Posts: 5

Rep: Reputation: 1
A quick way to add a distro is to use a live distro .iso image.
Some live distros are really quite complete and updatable (slax for instance, but there are others - tinycore, slitaz, zenwalk).

You can download the .iso image for these and mount it then copy it to a partition that has enough space and add the particulars to grub (root, kernel,initrd) and by adding a few parametres you can have the distro as a "live" distro entirely in RAM or as fully mounted. It's particularly handy to have a distro running in RAM in order to do work on partitions, make backup images, etc.

(A reminder - to mount .iso image: mount -o loop /path/an.iso /mount/path and to unmount: umount /path/an.iso )

Last edited by peacenik; 07-08-2009 at 08:11 AM.
 
  


Reply

Tags
partition


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
hard drive partitions the_cat123 Linux - Newbie 2 08-17-2006 03:53 PM
hard drive partitions irishbantam Ubuntu 7 12-07-2005 02:58 PM
adding hard drive linoj Linux - General 6 12-25-2004 01:51 PM
hard drive partitions bm1 Linux - Hardware 3 11-26-2003 05:32 PM
Hard Drive / Partitions Starburn Linux - Hardware 2 10-29-2003 10:59 AM


All times are GMT -5. The time now is 06:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration