[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: apologies for my ignorance

From: Albannach
Subject: Re: apologies for my ignorance
Date: Tue, 1 Oct 2002 19:09:20 +0100

On Monday 30 September 2002 23:58, David Leuser II wrote\n%s:

Some random thoughts on your problems.
I've not used parted much, but have used Linux
for several years as both user and admin, and
other *nixes as a user.

> Hi
> I am desperate to resize a partition on my new rh7.2 server, and know
> almost nothing about partitioning. (familiar with deleting/creating DOS
> partitions in FDISK, but that's the extent of it)...
> I would REALLY REALLY appreciate it if any wise linux gurus could take me
> under your wing...
> I want to grow /home (Minor #2) by 4.5 gb.  I was thinking I would resize
> /usr (minor #5) to be smaller (change the end from 10260 to 5760) to get
> the space to do this.  That's when i rebooted and got nasty errors i
> didn't understand, 
What are these errors?
> resized it back, and breathed a sigh of relief at my
> good luck that fixed it... 
Did you make /dev/sda5 too small? if this is /var or /tmp
you need a fair about of free space or you can get out-of-space
errors for the temporary files.

> But now I don't know what to do? Whilst trying
> to resize, partent was spitting scary warnings at me like 'failed to
> cleanly unmount' or something to that effect.

'Failed to cleanly unmount' ?
Parted needs the partitiions you are working to me unmounted.
Andrew - does Parted check for this ?

Use  'umount /dev/sda5'  to unmount minor 5, or boot using the
parted root disk (This is needed to if you wish to work on /, unless you have 
a spare partion which can be made / [Linux/BSD dual boot systems can be like 

It may be possible that minor numbers changed, if this happend, edit your 
/etc/fstab to refelect the new minor numbers.

If you run parted within 'script', and post the entire session here, we can 
give more help on whats going wrong.

Possible instructions - take these with 1 Mol NaCl - they are of the top of 
my head. They will fail if there isn't enough free space on /dev/sda5

#First unmount the affected partions - 3 needs to be moved, 4 (an exteneded 
partion, containing 5 to 9) needs resized
#as the free space from 5 needs to moved to the end of 2
umount /dev/sda2 /dev/sda3  /dev/sda5

parted /dev/sda

#Half the size of  /dev/sda5
resize 5 1106 6106
#Move it to the end
move 5  6106 10260

#resize 4 (it contains 5 to 9)
resize 4 10260 17343

#move 3
move 3 1082 6082

#resize 2
resize 2 1106 6082


#inspect fdisk -p and /etc/stab  to make sure that
#the minor drives haven't changed numbers/

#remount 2, 3, 5
mount /dev/sda2 /dev/sda3 /dev/sda5

> Thanks for any help you can offer...  Oh yeah, it's a hardware raid
> mirror, but since the raid is at the hardware level that should be
> invisible to parted right???
> *** Print Statement from parted ***
> Using /dev/sda
> Information: The operating system thinks the geometry on /dev/sda is
> 2212/255/63.  Therefore, cylinder 1024 ends at 8032.499M.
> (parted) print
> Disk geometry for /dev/sda: 0.000-17355.750 megabytes
> Disk label type: msdos
> Minor    Start       End     Type      Filesystem  Flags
> 1          0.031     54.909  primary   fat16
> 2         54.910   1082.504  primary   ext3
> 3       1082.505   1106.037  primary   ext3        boot
> 4       1106.038  17351.455  extended              lba
> 5       1106.068  10260.263  logical   ext3
> 6      10260.294  15743.386  logical   ext3
> 7      15743.417  16770.981  logical   linux-swap
> 8      16771.012  17280.856  logical   ext3
> 9      17280.888  17343.610  logical   ext3
> (parted)
> *** ***
> ________________________________________
> David M. Leuser, II
> Assistant Network Administrator
As a sysadmin, what would you say to a luser
who came to and said.
'Emacs died saying "$Some vaguely remebered error" ' ?

> New Hampton School
> (603) 744-3182 x121
> address@hidden
> ________________________________________
> "Picture the root account as a magic hat that gives you lots of power,
> with which you can, by waving your hands, create or destroy entire cities.
> Because it is easy to wave your hands in a destructive manner, it is not a
> good idea to wear the magic hat when it is not needed, despite the
> wonderful feeling. " -- Gnome User's Guide
> _______________________________________________
> Bug-parted mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-parted

Humankind does not own the Earth, we are merely custodians for the future 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]