Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Repartitioning drive [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kramer2718
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2006
Posts: 78

PostPosted: Tue Aug 01, 2006 10:42 pm    Post subject: Repartitioning drive [solved] Reply with quote

Hi, all.

I'm running Gentoo on a drive that's overly partitioned. I was going to dual boot Windows on one partition of that drive, but for some strange reason, Windows refused to be installed there (thw Windows CD won't detect my hardware when that drive is attached).

Anyway, long story short, I have Windows on a different drive now and would like to repartition the drive where Gentoo lives.

My question is, what's the best way to go about doing this?

I was just going to create one directory for each partition in said second drive and copy each partition to its directory, do the repartitioning and then boot the LiveCD to copy the files back. Is there any reason that this won't work? Would it be better to create isos on my other drive? Is there anything that I should be careful of?

Thanks.
_________________
God save us from His followers.


Last edited by kramer2718 on Sat Aug 05, 2006 9:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54850
Location: 56N 3W

PostPosted: Tue Aug 01, 2006 11:08 pm    Post subject: Reply with quote

kramer2718,

Be careful of the pesudo filesystems, /dev/ /proc and /sys - don't copy them
Be sure to preserve permissions. cp -a should do that as will tar with the -p option.

Perhaps you should just distrubute Gentoo around the partitions you have ?
Having /home seperate is useful. All your user data goes there
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Frodg
l33t
l33t


Joined: 11 Feb 2004
Posts: 761

PostPosted: Tue Aug 01, 2006 11:37 pm    Post subject: Reply with quote

NeddySeagoon wrote:
kramer2718,

Perhaps you should just distrubute Gentoo around the partitions you have ?
Having /home seperate is useful. All your user data goes there


Much easier to do this than repartition and do all the copying
I have
/usr
/home
/media
on separate partitions.
_________________
Aerosolo ergo sum - I spray therefore I am

Gentoo - Registered Linux User # 361400
Back to top
View user's profile Send private message
kramer2718
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2006
Posts: 78

PostPosted: Wed Aug 02, 2006 12:03 am    Post subject: Reply with quote

Frodg wrote:
NeddySeagoon wrote:
kramer2718,

Perhaps you should just distrubute Gentoo around the partitions you have ?
Having /home seperate is useful. All your user data goes there


Much easier to do this than repartition and do all the copying
I have
/usr
/home
/media
on separate partitions.


Hmm. Maybe so. I do already have a seperate partition for /home and /boot. The two hard drives where Gentoo doesn't live already house media. I guess that I could use a seperate partition for /var/tmp, and I had two partitions reserved for Windows on the drive where Gentoo lives. I'll think about it. Even if I don't do the repartitioning, my system is working pretty nice now so I think that I'll back up my partitions using tar as suggested.
_________________
God save us from His followers.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed Aug 02, 2006 12:15 am    Post subject: Reply with quote

When you go to actually create your backup, I suggest using the mkstage4 script. I've used it to backup and restore multiple times.

https://forums.gentoo.org/viewtopic-t-312817-highlight-howto+stage4.html
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
kramer2718
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2006
Posts: 78

PostPosted: Sat Aug 05, 2006 9:58 pm    Post subject: Reply with quote

Thanks. Yeah mkstage4 is pretty nice. I modified it so that it tells me what files are going into the backup. I'll not repartition, but I'm going to have to think about my scheme.
_________________
God save us from His followers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum