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

Re: resize partition



 --- Bob McClure Jr <robertmcclure earthlink net>
escribió: > On Sat, Jan 17, 2004 at 09:15:46PM +0100,
Manuel
> Aróstegui Ramirez wrote:
> > I have Linux (RH9.0) in /dev/hda2, Windows in
> > /dev/hda1 and then i've got 8 GB of free space, I
> > would like to know how to add that free space to
> my
> > Linux parition (/dev/hda2) using parted or
> something
> > like that.
> > I've tried to maximize my /dev/hda2, which is a
> > Primary Partition, but cfdisk told me that it
> cannot
> > maximize that partition.
> > 
> > Any suggestion?
> > 
> > Thanks
> > 
> > =====
> > --
> > 
> > Manuel Aróstegui Linux user 200896
> 
> Depends on where you need the space.  If you can use
> the extra space
> for /home, I'd
> 
> - Use fdisk (or cfdisk if you prefer) to turn the
> that 8 GB into
>   another partition, let's say it's /dev/hda5
> 
> - Make a filesystem on it,
> 
>   mke2fs /dev/hda5
> 
> - Mount it somewhere temporary, say
> 
>   mkdir /mnt/newdisk
>   mount /dev/hda5 /mnt/newdisk
> 
> - Copy the contents of the /home directory to it
> 
>   cd /home
>   find . -depth | cpio -pdmv /mnt/newdisk
> 
> - Try it out (you haven't removed the contents of
> /home, yet.)
> 
>   umount /dev/hda5
>   mount /dev/hda5 /home
> 
> - If everything looks ok, reboot to single user
> 
>
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-grub-runlevels.html
> 
> - Remove the contents of /home
> 
>   cd /home
>   pwd # make very certain that you made it to /home
>   rm -fr *
> 
> - Use the editor of your choice (vi, emacs, pico) to
> add an entry for
>   the new partition
> 
>   <editor> /etc/fstab
> 
>   The line you add will look something like this:
> 
> /dev/hda5         /home              ext2   
> defaults        1 2
> 
>   To make it an ext3 filesystem, see
> 
> http://www.rhil.net/docs/ext2-to-ext3.html
> 
> - Then mount it and see that thinks are ok
> 
>   mount /home
> 
> - Reboot to your normal runlevel.
> 
> There.  Now wasn't that easy? :-)
> 
> If that plan wasn't to your liking, post the results
> of
> 
>   df
> 
> and
> 
>   fdisk -l # that's "ell" as in listing

I've done it, it's running perfectily, (i used my free
space in /usr/)
Thanks Bob

> 
> Cheers,
> -- 
> Bob McClure, Jr.             Bobcat Open Systems,
> Inc.
> robertmcclure earthlink net  http://www.bobcatos.com
> Life is fragile - handle with prayer.
> 
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
>
https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request redhat com
> Subject: unsubscribe 

=====
--

Manuel Aróstegui Linux user 200896

___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es




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