LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   adding new partitions? (https://www.linuxquestions.org/questions/slackware-14/adding-new-partitions-88106/)

RIgimp75 09-01-2003 03:44 PM

adding new partitions?
 
i installed slack 9 w/ /swap and /. i used cfdisk after to create partitions for /usr and /home. how do i set up the directories and /mnt them if i'm asking this right?

acid_kewpie 09-01-2003 03:53 PM

the quick way is.... assuming we're moving /usr onto /dev/hdb1 in the example:
create the file system, ext3 in this example
Code:

mke2fs -j /dev/hdb1
then move stuff onto it
Code:

mkdir /mnt/usr
mount /dev/hdb1 /mnt/usr
find /usr -xdev | cpio -pvd /mnt
umount /dev/hdb1

and then create an fstab entry:
Code:

/dev/hdb1    /usr    ext3  defaults 1 1
you should then be able to mount your new /usr partition.

NB, your old usr data will not be touched at any point, so as and when you are happy with the sytem, delete the old /usr data...
Code:

init 1
umount /usr
rm -rf /usr/*
mount /usr
init 5


RIgimp75 09-01-2003 06:21 PM

ok so what do i use to make reiserfs FS?

RIgimp75 09-02-2003 06:19 PM

up


All times are GMT -5. The time now is 07:20 AM.