DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default Tricky Partition Issues

Hi everyone
I have a system that dual boots with Gentoo.

This is my current fdisk partition table:
device____start__end___system
/dev/sda1_1_____5_____Linux
/dev/sda2_6_____515___Linus Swap
/dev/sda3_516___5614__Linux
/dev/sda4_5615__13262_FreeBSD

Now my tricky question is:
I have already partition 4 primary partitions on my harddisk.
I still have 400 GB or empty unpartitioned sp ace left.
How can I partition that into ext2? I have tried using sysinstall but somehow sysinstall cannot perform the operation that I wanted. (Check the post below)

How do I add an extended partition without deleting anything?
Reply With Quote
  #2   (View Single Post)  
Old 6th July 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

First, stop using sysinstall after the OS is installed.

Second, you will have to delete one of your primary partitions and replace it with an extended partition that covers all the free space. Then you can create logical partitions inside that extended partition.

To do this without losing data (or doing a proper backup & reinstall) will require using partitioning tools like parted/gparted/qtparted, Partition Magic, and so on.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3   (View Single Post)  
Old 6th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

There is not gparted in FreeBSD
What would you recommend then?
Reply With Quote
  #4   (View Single Post)  
Old 7th July 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

The gparted LiveCD perhaps? Or the Ultimate Boot CD? Any KDE LiveCD? Pretty much any Ubuntu or OpenSuSE LiveCD? A google search for free partitioning tools? Backup all files to another disk/CD/DVD/whatever, and re-install with a better partitioning scheme?
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #5   (View Single Post)  
Old 7th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

So do I delete my Linux swap partition first, then create an extended partition for the remaining 400 gb of space and then recreate a linux swap partition? Will the labelling of my partitions be the same? Will this cause my gentoo to be unable to mount to the new swap partition?
Reply With Quote
  #6   (View Single Post)  
Old 7th July 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

The simple method:
  1. delete the Linux swap partition
  2. create an extended partition in the 400 GB of free space
  3. create a logical partition for Linux swap
  4. create a logical partition for data using up the rest of the free space
This will leave a hole where your swap partition used to be. You can extend your first Linux partition to use up that space, though, so long as you are using ext3 or XFS on that partition.

Your partitions will be renamed/renumbered, so you will have to edit your /etc/fstab in both Linux and FreeBSD. In Linux, it will show as:
  • /dev/sda1 Linux
  • /dev/sda2 Linux
  • /dev/sda3 FreeBSD
  • /dev/sda5 Linux swap
  • /dev/sda6 data

In FreeBSD, it will be something like:
  • /dev/sd0s1 Linux
  • /dev/sd0s2 Linux
  • /dev/sd0s3 FreeBSD
  • /dev/sd0s5 Linux swap
  • /dev/sd0s6 data
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #7   (View Single Post)  
Old 7th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

Hi
Since the fdisk "tutorial" provided in the handbook is really useless, it would be very helpful if you could actually guide me through this proccess.

1) How exactly do you delete a partition using fdisk?
2) How do you create a new partition and change it to logical or extended?
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I think I just mangled my partition table Mantazz FreeBSD Installation and Upgrading 2 2nd July 2009 09:55 PM
Cannot activate partition in XP. bsdnewbie999 OpenBSD Installation and Upgrading 6 4th May 2009 05:21 PM
Recommended Partition Layout MetalHead OpenBSD Installation and Upgrading 12 30th November 2008 10:08 AM
swap partition lumiwa FreeBSD General 6 11th September 2008 03:57 PM
/etc on a separate partition DarkEnergy FreeBSD Installation and Upgrading 13 20th May 2008 04:24 AM


All times are GMT. The time now is 02:06 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick