LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-12-2003, 06:18 PM   #1
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Rep: Reputation: 30
Unhappy Do I NEED to reinstall?


Greetings. I apologize if this question has been asked previously, but I haven't seen it in my searching.

I am trying to install (via .rpm) Samba 3.0.0 on my Mandrake 9.1 "server" I have become painfully aware that my / partition (approx. 500M) is woefully small and I need more space to install Samba. My disk lay-out looks like this:
/boot 62MB
/ 512MB
/swap 502MB
/usr 1004MB
/var 4.9GB
free space 2.5GB

this is all on hda. /home is all on hdb. What I want to know is can I "shift" /var and /usr into down into the free space and expand / and /swap? My needs for my swap file/partition have grown, too. I increased my RAM from 256M+64M to 512M+256M, so I really should up my swap partition.

Anyway, I've bolded the crucial question. Any additional commentary will be appreciated, but I really just need the answer to that question.

 
Old 12-12-2003, 07:08 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
i'm not sure this is the recommended procedure, but what i would probably try to do is create new partition/s, filesystem/s, directories, etc. using the free space, and then map the directories in question to their new locations in fstab. i'm not saying that would work -- i'm just saying i would try it.
 
Old 12-12-2003, 07:29 PM   #3
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
You definately don't need to reinstall. I have no experience solving this problem, but I know there is a solution. You can shift things around but I don't see why you would have to.

Here's my guess of what you'd want to do, but take it with a grain of salt.

By '2.5 gigs free space' I assume you mean unpartitioned. Just create a partition within that 2.5 gigs.. (You could use it all, or just however much space you need for samba plus some room for upgrades.) Then mount it onto / and install samba there.

Even though you increased your memory I'm not sure you want more swap. I know swap is 2 x memory but that still has an upper limit.
 
Old 12-12-2003, 07:38 PM   #4
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
Don't move the /var partition while the system is active. I just tackled this situation. I booted of a bootable cd and chrooted my file systems, moved /var, edited fstab and restarted. All was well. Since there was no user data on that particular computer, I tried doing the same while the system was up and running. (for experiment's sake) Edited fstab, made and mounted a new /var directory, then moved the data. When I tried to reboot system locked up and asked me to fsck when it restarted, which it couldn't do completely so I had to repartition and reinstall.
 
Old 12-13-2003, 04:22 AM   #5
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
Cool! Thanks everyone for the help. While it turns out that I didn't need to reinstall, I really wanted to put Slackware on this system (since it's my "server" and all). So, I repartitioned hda (and left /home on hdb) and put Slack 9.1 on the box, using the entirety of the 10GB drive for /, /boot, /swap, /usr, and /var. / and /usr got a lot bigger.

As it turns out, it only took me about three hours (this time did include cuddle-time with the kids, dinner, "The Cat in the Hat", and about an hour's worth of network TV) so you can see it was not a huge investment. I'm informed that it will have great returns. Reports on that later.

g
 
  


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
To reinstall or not to reinstall...that's the question.. minike Slackware 3 09-17-2005 06:24 PM
reinstall mare Linux - Hardware 2 05-13-2005 04:58 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Reinstall Xp Help!!! suseuser Linux - Software 2 07-13-2004 09:38 AM
Reinstall of XP with 9.1 lex0429 Mandriva 3 10-16-2003 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration