Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
resize / ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 295

PostPosted: Sat Jan 28, 2006 12:02 am    Post subject: resize / ? Reply with quote

Hi,
I need to resize /. It was 3068MB, but only 7% are left after a mere gentoo install, without any window manager (I won't install any btw, it's for a server)
So I thought I could try parted but I'm not sure of what to do. Here's my partition scheme
/dev/sda12048MB swap
/dev/sda2 510MB /boot
/devsda3 3068MB /
/dev/mapper/volume 13GB (LVM)

I have 4 GB of free space

So, what's the idea ? Just resize / with a new END value, or delete LVM, then resize / then recreate LVM ?

BTW, I made a parted boot floppy, but it asks for a second disk whan booting... Where's that one ?

Thx for your help ?
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Sat Jan 28, 2006 12:10 am    Post subject: Reply with quote

Why have LVM and not use it?

Just create an logical volume of say 5 GB and copy all of usr onto it (keep permissions!). Then change fstab and reboot. If it works, you can boot in single user and delete the "/usr" which is still on the root and taking your valuable space.

In short

0) BACKUP your data!

1) lvcreate
2) edit fstab
3) reboot
if boot ok and /usr mounted
4) boot single user or LiveCD
a) unmount /usr
b) rm -rf /usr (root version)
5) reboot

Hope this helps.
I'd read about LVM for the next install.
Ed.
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 295

PostPosted: Sat Jan 28, 2006 12:45 am    Post subject: Reply with quote

Hum,
thanks for the idea, but I created that LVM for another purpose, and I'd prefer not have my /usr in this partition.
So, my question is still : what's the correct way of resizing /, without loosing data as much as possible ?
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2718
Location: Munich, Bavaria

PostPosted: Sat Jan 28, 2006 1:09 am    Post subject: Reply with quote

take a look at /usr/portage/distfiles and /var/tmp/portage. If you have enough bandwith to go in case you want to re-emerge stuff, delete its content

resizing is evil.
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 295

PostPosted: Sat Jan 28, 2006 1:24 am    Post subject: Reply with quote

Thanks for the answer, too.
That's an idea. Sounds good, but what will be going on next time I run 'emerge -uDv system'. Will it be Okay or the will the system re-emerge the portage tree ?
Back to top
View user's profile Send private message
Pse
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 188
Location: by the plate river

PostPosted: Sat Jan 28, 2006 6:44 am    Post subject: Reply with quote

It'll just download the needed packages again. Distfiles is the location where portage stores its "cache" of downloaded packages, the tree is located somewhere else (/usr/portage)...
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1282
Location: Ashford, Kent

PostPosted: Sat Jan 28, 2006 8:22 am    Post subject: Reply with quote

I don't know much about resizing / - the only thing I know is that you can't do it while / is mounted (I have a funny feeling this may actually be from experiance when I may have tried to resize / ages ago - fortunately IIRC I had been a good boy and backed up everything important first) - you'll need to boot from a livecd or similar. The other thing you might consider if you have the disk space is moving /home to a seperate partition.

Allen
_________________
http://gentoo-wiki.com :: http://lug.org.uk :: http://www.linux.org/groups/ :: User Blogs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum