Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

How do I resize the root partition (reiser)

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Portent
n00b
n00b
Posts: 10
Joined: Wed Mar 19, 2003 5:24 am

How do I resize the root partition (reiser)

  • Quote

Post by Portent » Wed Mar 26, 2003 8:53 pm

I just installed Gentoo about a week ago, and I'm running out of space on the root partition. I was recompiling X and it quit because 800 megs of free space wasn't enough. Anyway, the situation is that I've got my root partition /dev/hda7 (reiser) and just after it I have a vfat storage partition. Using Windows, I made some free space between the two of them, which I now want to add to the end of hda7.

So far it looks like I have to use parted with reiserfs support. So in Gentoo, I installed all that was needed. Anyway, I guess parted won't touch a partition that's mounted (which is always the case since it's the root partition that's in question). So my question is: is there a way to unmount / while linux is still running? Alternatively, is there a way to force/trick parted into working on a mounted partition? And failing all that, is there another way to do this?

I considered boot disks, but couldn't find anything with parted and reiserfs support. I went to the trouble of burning a knoppix cd, but it turns out that they don't include reiserfs support for parted.

I'm not really concerned with how dangerous a maneuver I have to do because this system is brand new, and if it comes to it, I guess I could wipe it and start over. But I'd rather not.

Thanks,

Eddy Cooper
Top
Ian Goldby
Guru
Guru
User avatar
Posts: 539
Joined: Sat May 18, 2002 8:47 pm
Location: (Inactive member)
Contact:
Contact Ian Goldby
Website

  • Quote

Post by Ian Goldby » Thu Mar 27, 2003 11:29 pm

The only way is to boot from another disk with both ReiserFs support and your partition resizer program. Or perhaps you could boot from the Gentoo Install CD and have the resizer on floppy?

Another way would be to create a new partition in the disk area you've freed up and mount it as /var/tmp - as I remember this is where the compiler needs the space. You may even find a load of cruft in /var/tmp that you can delete to make enough space.
Top
vikwiz
n00b
n00b
User avatar
Posts: 50
Joined: Sat Mar 01, 2003 12:42 am
Location: Budapest
Contact:
Contact vikwiz
Website

Re: How do I resize the root partition (reiser)

  • Quote

Post by vikwiz » Fri Mar 28, 2003 2:01 am

It's a great fun to play with mounted partitions with sensitive data 8)
Be warned, that you can loose everything (althoug I did). Better to have a backup of your data.

You didn't tell me how your partition situation is, if you use LVM or EVMS. If you do, it's easier. If not, harder.

Use 'sfdisk -d' to see the partition table, save output to a file. Then if after the mentioned reiserfs partition there is an unused partition, you can delete the unused partition line, renumber the rest, and rearrange the sector numbers (size) of the reiserfs part. Then feed it back to sfdisk < parttable. He will say better to reboot, do it if you want, I never do it, but maybe it's bad habit.

If your disk is still readable ;) then you can resize_reiserfs /dev/hdax (the reiserfs partition) even if it's mounted.

Good luck!
Top
Post Reply

3 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic