LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-15-2003, 05:56 PM   #1
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Question Resizing partitions - just check me on this one


Ok, my current second harddrive is as follows:

hdb 19Gb
hdb1 / ext3 4.5Gb 24%used says Konqueror.
hdb5 swap swap 666Mb never used says Gkrellm.
hdb6 /usr ext3 14Gb 16%used says Konqueror.

I wish to install Mandrake9.1 on the same harddrive. Can I cut hdb1 and hdb6 in two halves, the first of each pair remaining for Mandrake9.0 and the second ones for 9.1? I can resuse the swap partition right?

How do I have two / and /usr partitions, and how would Mdk9.0 know which were the correct ones to carry on working with?
 
Old 04-15-2003, 06:08 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
You should be able to cut them in half, and yes you can use the same swap between distros.

As for how MDK knows which to use, your bootloader tells the system which kernel to use, and which root partition to mount, and the rest of the partitions are specified in /etc/fstab as usual. You can even share the same /boot partition for both if you want....
 
Old 04-15-2003, 06:23 PM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Original Poster
Rep: Reputation: 116Reputation: 116
bulliver, long time no see.

So I dont need to defrag the partitions right? And I wont damage the journels either? I know I cant move the starts of the partitions because of that, but using the end halfs should be fine.

Can I have two partitions named / and /usr? Is that ok because they're really hdb1, hdb6 etc?
What will the new ones default to?
 
Old 04-15-2003, 06:35 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I don't even know if you can defrag, but as long as you chop it a safe distance from how much actual data you have on the partition you should be allright.

Quote:
Can I have two partitions named / and /usr? Is that ok because they're really hdb1, hdb6 etc?
What will the new ones default to?
This is what i'm saying, it doesn't matter. I'll give you an example from my own machine:
hda1=/boot (shared)
hda2=/ (redhat)
hda3=/home (redhat)
hda4=swap (shared)
hda5=/ (arch linux)
hda6=/home (arch linux)

So: When I boot the grub screen comes up I can choose between kernels (all in /boot ie: hda1) and grub.conf states which partition to mount as root depending on which distro I want to boot. I assume lilo can do the same if you use that.
So if I boot redhat then hda2 gets mounted as root, and if I boot archlinux then hda5 gets mounted, then it just reads fstab to see which other partitions to mount when starting up. (ie: your 2 different /usr partitions....)

You can even share home partitions if you want, so you don't have to copy personal files and settings between two partitions.
 
Old 04-15-2003, 06:43 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
I wish to install Mandrake9.1 on the same harddrive. Can I cut hdb1 and hdb6 in two halves, the first of each pair remaining for Mandrake9.0 and the second ones for 9.1? I can resuse the swap partition right?
If I were you I'd copy the contents from hdb6 to a subdirectory
on hdb1, modify fstab and be done with ;), then install 9.1
on hdb6 rather than trying to split it up further...

What's your lilo(grun?) set-up like?

Cheers,
Tink
 
Old 04-15-2003, 06:47 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Original Poster
Rep: Reputation: 116Reputation: 116
Cool, ok, now I just have to work out how to safely cut the partitions.
I think these Lilo options let me change the root partition.

Edit: Hmm, Tinkster, Mr Guru sir, that risks me screwing up my 9.0 install more doesnt it? Not that I've actually changed much from the default setup.

Might it be best to copy any vital files to my primary windows harddrive and then clear the secondary. What would be the ideal setup for 9.0 and 9.1 on 1 harddrive?

Last edited by Proud; 04-15-2003 at 06:54 PM.
 
Old 04-16-2003, 01:53 PM   #7
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Original Poster
Rep: Reputation: 116Reputation: 116
Anyone? The best setup for two distros on a 19gig hd? Or is seperating the current partitons recommended?
 
Old 04-16-2003, 02:36 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Well, you have a lot of space on hdb6. I think I agree with Tinkster. 16% of 14GB is around 2 GB, so why not just chop 5GB off, leave that as your /usr partition for MDK 9, then use the remaining 9GB to install MDK 9.1 as you wish...
 
Old 04-16-2003, 02:41 PM   #9
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Original Poster
Rep: Reputation: 116Reputation: 116
Is cutting my current / in two too risky? I could easily get another / partition out of it at the current usage.
 
Old 04-16-2003, 02:44 PM   #10
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Dunno, never done it while trying to preserve data. Like you mentioned, you may want to tar.gz everything important up and move it to a partition that won't be touched to be safe.
 
Old 04-16-2003, 03:27 PM   #11
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Original Poster
Rep: Reputation: 116Reputation: 116
Well I'm not really that worried as I can always just re-install, nothing much to loose
I dont think anything would have been saved past the 50% mark if it's only at 24% now. Likewise with the /usr partition.
 
Old 04-16-2003, 03:28 PM   #12
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Let us know how it goes....

I assume you just want to give 9.1 a try before upgrading, right?
 
Old 04-16-2003, 03:35 PM   #13
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Original Poster
Rep: Reputation: 116Reputation: 116
Well I think I've slightly stuffed my 9.0 install wrt GTK+2 and QT libraries, so I'm more inclined to set up a fresh install rather than upgrade and risk any problems carrying over.
Plus having two installs means I have more to learn and mess with

I take it when I configure Lilo to add my new distro, I specify something other than image=/boot/vmlinuz which links to the 9.0 kernel image? Or cant I have a long or complicated (containing periods) image= arguement?
 
Old 04-16-2003, 03:42 PM   #14
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Yup, you would change the name of your new kernel to whatever you want ie: image=/boot/best_kernel_in_the_world

Run rdev on your new kernel and make sure it points to the right "/" partition.
 
Old 04-16-2003, 04:29 PM   #15
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Original Poster
Rep: Reputation: 116Reputation: 116
Ok, I think I'll repartition the drive and check 9.0 works fine still.
Then install 9.1 without installing a bootloader.
Check 9.0 works
Mess with Lilo to enable the dormant 9.1 install.
Check 9.0 again
 
  


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 Partitions dokunut Linux - Newbie 2 06-18-2005 08:56 PM
Resizing partitions jaakkop Fedora 2 09-30-2004 08:33 AM
resizing partitions jayakrishnan Linux - General 5 05-06-2002 01:32 AM
Resizing partitions..can it be done? dj_relentless Linux - General 5 01-27-2002 05:16 PM
resizing partitions suselinux Linux - General 7 09-07-2001 07:28 AM

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

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

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