[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add and copy a partition
On Fri, 26 May 2000, Ishai Parasol wrote:
> I have ran out of space on my /home/USER partition and I would like to
> erase one of my windows partions and to make it ext2 and to copy the /home
> partition on it (exactly as it is - without the need to make a new user
> and install everything from scratch).
>
> Is it possible ? Can someone show me how to do it ?
assuming you can red HOWTOs and such, here's the skinny:
- fdisk to change the partition type. if changing the size too, you must
reboot if another partition is mounted from that drive. as long as even
ONE partition is mounted from that same disk, the kernel won't re-read
the partition table.
- mke2fs on it
- mount it on /mnt/newhome or somewhere.
- stop mail daemons or anything running. infact maybe do all this at
runlevel 1 (init 1)
- copy the stuff over, I use "cp -a /home/* /mnt/newhome"
- switch around:
mv /home /homeold (umount and remount if a seperate partition)
mkdir /home
umount /mnt/newhome
-- change/add the entry in fstab
mount /home
et voila. have fun, if you have abslutly any more questions, please
don't hesitate not to call me.
--
Ira Abramov ; Penguinophile ; www.linux.org.il
And 1.1.81 is officially BugFree(tm), so if you receive any bug-reports
on it, you know they are just evil lies."
(By Linus Torvalds, Linus.Torvalds@cs.helsinki.fi)
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il