LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-21-2005, 02:20 AM   #1
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Rep: Reputation: 30
Resizing Partition / Tar-ing Linux


I wish to change the size of a ReiserFS partition, not necessarily while the OS is active on the partition. I've been advised that archiving everything into a tar file, copying it to another, and then putting it back on there after the modifications.

I've used the command tar -cjfp / /gentoo.tar.bz2, and have excluded /proc. Are there any other things I should do before swithing to another OS to resize?

If this isn't the best way to perform the partition resizing, what is?
 
Old 08-21-2005, 07:47 PM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Have you heard of qtparted?
It's a GUI version of parted. It may be able to resize it, although I'm not sure if it will do reiserfs (it does NTFS - so i would think so!

If this is a regular problem for you, or you anticipate that it might be, you should consider using LVM for your disks. This will allow you to resize your volumes and disks on the fly from the command line.
 
Old 08-22-2005, 12:12 AM   #3
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
Does anyone know if the Parted version that comes with Debian 3.1 supports resizing ReiserFS?
 
Old 08-22-2005, 07:58 PM   #4
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
I used Parted to resize it, and now Gentoo can't mount its main filesystem. How do I fix it?

EDIT: Also, Parted had a segmentation fault when attempting to resize it.

Last edited by Kenji Miyamoto; 08-22-2005 at 08:09 PM.
 
Old 08-22-2005, 09:41 PM   #5
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Boot the live CD, and fsck that drive.
 
Old 08-22-2005, 10:22 PM   #6
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
Okay, a reiserfsck --rebuild-tree deleted my inittab. Now how will I boot Gentoo?

Last edited by Kenji Miyamoto; 08-22-2005 at 11:03 PM.
 
Old 08-22-2005, 11:23 PM   #7
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Boot live CD
Mount root drive.
Copy inittab to /etc/
Or, use this one:
Edit it accordingly :)

Code:
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.  
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:5:once:/etc/X11/prefdm -nodaemon

Last edited by PenguinPwrdBox; 08-22-2005 at 11:26 PM.
 
Old 08-23-2005, 04:29 PM   #8
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
I decided to go for a compete reinstall. Some other important programs may have been corrupt and missing, and I don't mind reinstalling.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 12:42 PM
Partition resizing for Linux LavaDevil94 Linux - Software 5 11-14-2004 10:01 PM
Resizing linux partition saiz66 Linux - Newbie 1 09-16-2004 08:05 PM
resizing the linux partition tzvik Linux - Newbie 3 04-30-2003 02:25 AM
Resizing linux partition tanchu Linux - Hardware 1 03-16-2003 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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