LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-25-2004, 01:52 AM   #1
slyman
Member
 
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

Rep: Reputation: 15
Moving and resizing partitions


Hi all,

This is not directly related to LFS, but I am only doing this because of LFS (and the fact that LFS guys are generally more knowledgeable and may well have had a similar scenario.

At the moment I have a 40Gb HDD and the following partition scheme which is a legacy from having a W2K only box once apon a time:

hda1 - 10gb - Win2K NTFS
hda2 - 10gb - Core Linux Reiserfs (/)
hda3 - 1gb - swap
hda4 - 18gb - Windows 95 Extended
hda5 - 18gb - Reiserfs (/home)

I am currently building LFS 5.11 on a loopback device with the file residing on hda5. Clearly I need to get LFS onto it's own partition eventually and would also like have it as my main OS (well that's the plan) so what I would like to end up with is:

hda1 - 3gb - Win2K FAT32
hda2 - 5gb - LFS Reiserfs ( / for LFS, whatever for Core)
hda3 - Extended
- hda5 - 5gb - Core Linux Reiserfs ( / for Core, whatever for LFS)
- hda6 - 25gb - Reiserfs (/home)
hda4 - 1gb - swap

I would eventually remove Core as well.

A few questions though...

Is it possible to boot into a logical drive in an extended partition? I would think so, but I have not found any documentation that says either way.

Are there any tools to 'slide' partitions around? I would rather not blow away my whole drive (blowing away the Win2K partition is ok) So, say I

1) remove Win2K partition and create a new one in the same position but
only 3gb.
2) slide hda2 back by the 7gb now free and shrink it to 5gb
3) remove the swap partition
4) slide hda4 back to the end of hda2 (would this then become hda3?)
5) slide hda5 back to the end of hda4 (or hda3? - would this now become hda4?) and expand it....

etc etc etc

Can I do that?

Sorry if I sound ignorant, but I know very little about playing around with partitions other than creating them from scratch with fdisk (either DOS or linux) and I can't seem to find answers in any documentation only maybes (and I don't like maybes when it comes to partitions).

Thanks in advance...

Si.

Last edited by slyman; 06-25-2004 at 01:54 AM.
 
Old 06-25-2004, 09:43 PM   #2
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
I watched a friend of mine change partitions around like that (he only did one, though) and as long as you keep the partition cylinder boundaries constant, I think you should be fine (Big disclaimer: I haven't done this. Make sure you have backups that work. No, really. Make backups. I was nervous just watching my friend do this). Someone please correct me on this if I'm wrong.

I tried working out a list of commands on paper and ran into a (potential) problem: how full is your /home (hda5)? If it's more than 6GB I don't think you have enough space to move the partitions around -- you'd have to delete more than just the windows hda1 partition. Let me know about /home and I'll finish off the list.

--mascdman
 
Old 07-04-2004, 08:02 PM   #3
slyman
Member
 
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

Original Poster
Rep: Reputation: 15
Thanks...

I tried using qparted and either it (probably not) or me (probably) messed it up ;o(. I think I forgot to reboot after one operation. Took forever to move all the partitions so I would have probably been quicker just backing up, trashing the whole drive and starting from scratch.

However, I am up and running again. Thankfully I was a good little boy and backed up beforehand.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing and moving partitions linmix Linux - Software 16 04-09-2005 09:08 AM
resizing and moving partitions DAChristen29 Linux - Newbie 4 10-18-2004 09:48 PM
Moving and resizing partitions to install Windows IBBoard Linux - General 11 08-03-2004 09:50 AM
Moving & Resizing partitions...? Nu-Bee Linux - General 2 01-02-2003 10:38 AM
Moving And Resizing Partitions For Another Distro darkmage Linux - General 3 08-13-2002 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:22 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