Reply
 
Thread Tools Display Modes
  #1  
Old 08-05-2013, 08:13 PM
pollux pollux is offline
Junior Member
 
Join Date: Aug 2013
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Installing PC-BSD across multiple slices/disks
Hello all !

I'm trying to install PC-BSD across multiples slices (I'm using the FreeBSD terminology). I have 2 HDDs ada0 and ada1. 1 slice has been created on every slice : ada0s1 and ada1s1.

My goal is to install all partitions but /usr on ada0s1 and to install /usr on ada1s1. I guess the only to do this is to use the CLI manual mode as Basic and Advanced modes do not allow multiples disks/slices selection.

In the terminal, I cannot figure out how to pass the disk configuration created by sysinstall to PC-Sysinstall. As soon as I exit sysinstall and return to the terminal, I'm unable to mount the filesystems to /mnt as the mount command is unknown !

Here is what I'm doing :
  1. In the terminal, type sysinstall
  2. In Sysinstall, go to Configure then Fdisk
  3. Change slice type of ada0s1 to 165 (slice was formerly unformated and reported as FAT)
  4. Change slice type of ada1s1 to 165 (slice was formerly unformated and reported as FAT)
  5. In Sysinstall, go to Configure then Label
  6. Create ada0s1a as /, ada0s1b as swap, ada0s1d as /var, ada0s1e as /tmp and ada1s1d as /usr
  7. After exiting Configure and Sysinstall and returning to the terminal, the mount command returns mount: Command not found (as other commands).

Could you please tell me what I am doing wrong ? Thanks.
Reply With Quote
  #2  
Old 08-31-2013, 11:25 AM
pollux pollux is offline
Junior Member
 
Join Date: Aug 2013
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default
Ok, it's a shame pc-sysinstall basic and advanced modes do not allow it but I eventually did it ! My goal was to dual boot Windows 7 and PCBSD on a SSD (ada0) and to move home directories and swap for both to an HDD (ada1). Here are the steps :

I Create MBR partitioning scheme using the Windows diskpart utility
For my needs, the following will create 3 partitions (2GB, 60GB and remaining) on the SSD (disk0/ada0) and 2 partitions (60GB and 60GB) on the HDD (disk1/ada1). Do not use the crappy GUI as it will create a 100 MB extra partition.
  1. Boot the computer on the Windows 7 DVD
  2. On the welcome screen, hit SHIFT and F10 to launch the command prompt
  3. type diskpart
  4. type select disk 0
  5. type create partition primary size=2048 align=1024
  6. type create partition primary size=61440 align=1024
  7. type create partition primary align=1024
  8. type select part 3
  9. type active
  10. type format fs=ntfs quick
  11. type select part 2
  12. type format fs=ntfs quick
  13. type select part 1
  14. type format fs=ntfs quick
  15. type select disk 1
  16. type create partition primary size=30720 align=1024
  17. type create partition primary size=30720 align=1024
  18. type select part 2
  19. type format fs=ntfs quick
  20. type select part 1
  21. type format fs=ntfs quick
  22. type exit twice

II Install PCBSD on the third partition of the SSD using ZFS
  1. Reboot computer on the PCBSD DVD
  2. Install PCBSD and select ada0 then ada0s3 using the disk utility

III Move SWAP and /usr/home to the second partition of the HDD
A ZFS pool named tank0 has been created by pc-sysinstall.
  1. After installation, log on PCBSD and launch terminal
  2. type su - and root password
  3. type gpart create -s bsd ada1s2
  4. type gpart add -t freebsd-zfs ada1s2
  5. type zpool create tank1 /dev/ada1s2
  6. type zfs create -V4G tank1/swap
  7. type zfs set org.freebsd:swap=on tank1/swap
  8. type zfs set checksum=off tank1/swap
  9. type zfs destroy tank0/swap
  10. type zfs create tank1/home
  11. type rsync -ax -s /usr/home/ /tank1/home/
  12. type zfs set mountpoint=/usr/home tank1/home
  13. type zfs destroy tank0/usr/home/pollux
  14. type zfs destroy tank0/usr/home

IV Install Windows 7 on the second partition of the SSD and configure the location of ProgramData and Users directories on the first partition of the HDD
I will not provide details here but C: will be my boot partition on the SSD, D: will be my system partition on the SSD and E: will be my user profiles partition on the HDD.
  1. Use WAIK to create an autounattend.xml file (drive letters have to be assigned using the windowsPE pass and the ProgramData and Users directories location have to be set using the oobeSystem pass).
  2. Copy autounattend.xml to the root of an USB key and plug it.
  3. Boot the computer on the Windows 7 DVD
  4. On the welcome screen, hit SHIFT and F10 to launch the command prompt
  5. type diskpart
  6. type select disk 0
  7. type select part 1
  8. type active
  9. type exit twice and install Windows to the second partition of the SSD
  10. Eventually move the pagefile.sys file to the first partition of the HDD

V Configure the Windows boot manager
  1. Boot Windows and install EasyBCD
  2. Set it to add a BCD entry for PCBSD

And voila ! The following web pages were a great source of inspiration for me :

http://forums.freebsd.org/showthread.php?t=31861
http://forums.pcbsd.org/showthread.php?t=20417
http://www.boyans.net/DualBootWindow...nuxOrUnix.html
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


All times are GMT. The time now is 04:23 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.