LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-18-2003, 01:40 AM   #1
JunLitsu
Member
 
Registered: Apr 2002
Distribution: Gentoo
Posts: 95

Rep: Reputation: 15
help with repartitioning


I plan on repartitioning because when I first installed linux, I didn't allocate enough space for linux, now that I have freed up some space from windows I hope to repartition. So here is my current state of my hard drive:
30gb (windows part)
20gb (linux part, I mount "/" here)
2gb (fat32 part for transfers)
1gb (swap part)
24gb (unpartitioned space freed up from windows)
What I am hoping to achieve (with linux intact) is:
(?gb) /boot
(?gb) /
(rest of space) /home
1gb swap
2gb fat32
10gb windows part

The question is, is it a simple matter of mounting /home on to the partitioned space or do I need to copy it over to the new partition and then change fstab? Also if you would be so kind please give me suggested values for the spaces marked? I plan on reinstalling windows after partitioning. Also how would I format in ext3, looking at the info for fdisk, it doesn't seem to give any info on selecting the type of filesystem. Or do I format with fdisk the make a filesystem on it afterwards?
Thanks for any help you can give, I would appreciate it.
 
Old 06-18-2003, 10:58 PM   #2
JunLitsu
Member
 
Registered: Apr 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
I would really appreciate it if someone responded with any information or any pointers
 
Old 06-19-2003, 04:45 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok then...

/boot = 50mb
/ = well.. whatever really, if that's going to include /usr then maybe up to 8gb.

if you're after moving the data from your existing /home directory to it's own partition you'd need to do something like this:
Code:
mke2fs -j /dev/hda5
mkdir /mnt/home
mount /dev/hda5 /mnt/home
find -xdev /home | cpio -pvd /mnt
that will clone the existing home onto the new partition exactly (hopefully)

the -j option in mke2fs creates a journal, which means it is actually ext3 not ext2. also fdisk doesn't do any formating at all. it's a partitioning tool only.
 
Old 06-19-2003, 08:53 PM   #4
JunLitsu
Member
 
Registered: Apr 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
thanks a lot!
 
Old 06-22-2003, 10:48 PM   #5
JunLitsu
Member
 
Registered: Apr 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
Sorry to bother you again but a few more questions arose:
When I typed in find -xdev /home | cpio -pvd /mnt it popped out with
find: paths must preced expression
Usage: find [path...] [expression]
0 blocks
is the -xdev suppose to represent something else?
My plan now is to copy everything to a second hard drive wipe the first and restore. The thing is I'm not sure how to do so.

Do I boot into linux on the second hard drive, partition and then copy my files back to the first? If so how?

Provided that everything is copied into the right partitions and everything how will I boot into linux now that my root partition has changed, do I simply change the grub entry? If so I still need to boot into linux to perform a grub-install.. right?

Second of all, how am I able to mount my /home and /boot directories looking at my fstab I only have one linux partition (aside from swap) to compare it to:
LABEL=/ / ext3 1 1
do I do it like this?
LABEL=/home /home ext3 1 1
LABEL=/boot /boot ext3 1 1
If so do I need to label something? Or is it done like this?:
/dev/hda1 /boot /ext3 1 1
/dev/hda5 / ext3 1 1

I apologize if these questions have already been answered if so point me to the right thread. Thanks for replying.

Sincerely,
Really really confused

Last edited by JunLitsu; 06-23-2003 at 03:57 AM.
 
Old 06-23-2003, 02:39 PM   #6
JunLitsu
Member
 
Registered: Apr 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
bump?
 
Old 06-24-2003, 05:10 PM   #7
JunLitsu
Member
 
Registered: Apr 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
anyone please?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
repartitioning reiserfs? Mr. New Linux - Newbie 4 01-08-2005 05:07 PM
Repartitioning fearofcarpet Fedora 3 09-05-2004 02:16 PM
Repartitioning King4lex Linux - Newbie 4 09-02-2004 06:15 PM
RePartitioning on Mandrake 9.1 FastFeet Mandriva 1 12-16-2003 08:45 PM
Repartitioning Lazlo Linux - General 3 12-11-2001 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 PM.

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