Re: Moving paritions around



On 30 Mar 2007 02:50:31 -0000 John Levine <johnl@xxxxxxxx> wrote:

I set up my laptop to dual boot between W1nd@ws and FreeBSD. When I
first set it up I made the partitions the same size, but since then I
found I do a lot more with FreeBSD so I'd rather give it more space.

So the last time I had to reinstall Windows from scratch, I made its
partition smaller. Now there's a big chunk of free space between
the two partitions. Should I expect the following to work?

(back everything up, duh)

Boot from a CD, change the partition table to make the FreeBSD partition
start right after the Windows partition

Use dd to move down the existing FreeBSD partition data so it starts
at the beginning of the new partition

Use growfs to give the extra space to my /usr filesystem, which is at
the end of the existing partition

That all sounds a bit scary, and I don't know if it might work.

Or should I just back it all up to a USB disk, reformat, and restore it,
which will take considerably longer?

You could, or you could do as Garrett suggested, but what I'd likely do
(have done) in the same situation is to make a new FreeBSD slice with
fdisk, occupying the area you've freed above the 'doze slice, and mount
it on, say, /data. Or you could mount it on say /usr/data, whatever.

One caveat: if you use sysinstall to setup the fdisk/newfs/labeling of a
new slice that's _before_ your boot slice, be sure to write your changes
and bail out of sysinstall before it thinks you want to install there :)

Cheers, Ian

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: some issues about partitions and boot manager in dual boot cases with Windows
    ... freeBSD edition. ... The first is installing on a disk that is completely given to FreeBSD ... master, Windows 2000 or XP, and on the other, on the first partition, the ... It requires its own slice. ...
    (freebsd-questions)
  • Re: I dont see anything to answer my q
    ... The ones that come with FreeBSD will handle fat and fat32 ... successfully a number of times is Partition Magic. ... What the BSD UNIX world calls a disk slice, ... clear while using the terms slice and primary partition. ...
    (freebsd-questions)
  • Re: Downloads
    ... There was one unused partition. ... (used unconsistently with the rest of FreeBSD). ... division of the disk is called a slice. ...
    (freebsd-questions)
  • Help with lost MBR on USB HDD
    ... I have a dual boot system going with WinXP and FreeBSD on my laptop. ... Just before I installed FreeBSD I bought a USB HDD to plug in so I could ... I decided I needed a native UFS2 slice instead of a FAT32 one and set to ... from existing in the logical partition to ...
    (freebsd-questions)
  • releng_6 sysinstall creating labels
    ... While having a (SCSI) disk outage yesterday night, ... After labeling it by using sysinstall, ... After that I found that sysinstall created a partition which exceeded ... past the end of the slice, but my memories might be wrong. ...
    (freebsd-stable)