FreeBSD 9 and Windows XP

Ralf Mardorf ralf.mardorf at rocketmail.com
Mon Mar 11 16:40:14 UTC 2013


On Mon, 2013-03-11 at 09:05 -0700, Carl Johnson wrote:
> It is my understanding that FreeBSD doesn't allow using part of a disk,
> but grabs the entire disk.  That means that VirtualBox can't use
> partitions on a disk that any other partitions are being used by
> anything else, including FreeBSD itself.  Am I wrong about this?  I use
> VirtualBox using vdmk for an entire disk, but I have never been able to
> share with anything else.

No, this is a misunderstanding. The primary below [1] is the ufs
including my FreeBSD, it's just that Linux's parted doesn't show it
(gparted does show) and I can't access BSD by my Linux installs. And no,
the ntfs isn't Windows.

FWIW my old drives have only one primary and a extended + tons of
logical partitions, but I started to partition new drives with 3 primary
and one extended including as much logical partitions as needed [2].

To have one partition that can be accessed by the BIOS I format one with
fat32, since it can't access ntfs partitions. Most Linux use ext4 by
default, I've got ext3 and ext4, because FreeBSD can share ext3
partitions without issues with Linux.

I'm using GRUB2 from Linux to boot FreeBSD [3], it's sharing a drive
with several Linux installs, more installs anybody does need ;). I'm not
maintaining all installs.

Regards,
Ralf

[1]
[rocketmouse at archlinux ~]$ sudo parted /dev/sda print
Model: ATA SAMSUNG HD321KJ (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system     Flags
 1      32.3kB  62.1GB  62.1GB  primary                   boot
 2      62.1GB  320GB   258GB   extended
 5      62.1GB  94.1GB  32.0GB  logical   ntfs
 6      94.1GB  126GB   32.1GB  logical   ext3
 7      126GB   158GB   32.2GB  logical   ext3
 8      158GB   185GB   27.0GB  logical   ext3
 9      185GB   223GB   37.7GB  logical   ext3
10      223GB   225GB   2328MB  logical   linux-swap(v1)
11      225GB   288GB   62.3GB  logical   ext3
12      288GB   291GB   3759MB  logical   ext3
13      291GB   315GB   23.7GB  logical   ext3
14      315GB   320GB   4927MB  logical   ext3

[2]
[rocketmouse at archlinux ~]$ sudo parted /dev/sdc print
Model: WD Ext HDD 1021 (scsi)
Disk /dev/sdc: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  68.0GB  68.0GB  primary   ext3
 2      68.0GB  138GB   69.6GB  primary   ext4
 3      138GB   413GB   276GB   primary   ext4
 4      413GB   2000GB  1587GB  extended
 [snip]

[3]
[rocketmouse at archlinux ~]$
cat /run/media/rocketmouse/q/boot/grub/grub.cfg
set timeout=8
set default='0'; if [ x"$default" = xsaved ]; then load_env; set
default="$saved_entry"; fi
set color_normal='light-blue/black'; set
color_highlight='light-cyan/blue'

menuentry "FreeBSD"{
    set root=(hd0,msdos1)
    chainloader +1
}

menuentry 'Ubuntu Quantal,        kernel 3.6.5-rt14' {
  set root='(hd1,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.6.5-rt14' '/boot/vmlinuz-3.6.5-rt14'
'root=/dev/sdb9' 'ro' 'quiet' ''
  legacy_initrd '/boot/initrd.img-3.6.5-rt14'
'/boot/initrd.img-3.6.5-rt14'
  
}

menuentry 'Ubuntu Quantal,        kernel 3.5.0-18-lowlatency
threadirqs' {
  set root='(hd1,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.5.0-18-lowlatency'
'/boot/vmlinuz-3.5.0-18-lowlatency' 'root=/dev/sdb9' 'ro' 'quiet'
'threadirqs'
  legacy_initrd '/boot/initrd.img-3.5.0-18-lowlatency'
'/boot/initrd.img-3.5.0-18-lowlatency'
  
}

menuentry 'Ubuntu Quantal,        kernel 3.5.0-18-lowlatency (recovery
mode)' {
  set root='(hd1,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.5.0-18-lowlatency'
'/boot/vmlinuz-3.5.0-18-lowlatency' 'root=/dev/sdb9' 'ro' 'single'
  legacy_initrd '/boot/initrd.img-3.5.0-18-lowlatency'
'/boot/initrd.img-3.5.0-18-lowlatency'
  
}

menuentry 'Ubuntu Studio Quantal, Kernel 3.6.5-rt14' {
  set root='(hd1,13)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.6.5-rt14' '/boot/vmlinuz-3.6.5-rt14'
'root=/dev/sdb13' 'ro' 'quiet'
  legacy_initrd '/boot/initrd.img-3.6.5-rt14'
'/boot/initrd.img-3.6.5-rt14'
  
}

menuentry 'Ubuntu Studio Quantal, Kernel 3.5.0-18-lowlatency
threadirqs' {
  set root='(hd1,13)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.5.0-18-lowlatency'
'/boot/vmlinuz-3.5.0-18-lowlatency' 'root=/dev/sdb13' 'ro' 'quiet'
'threadirqs'
  legacy_initrd '/boot/initrd.img-3.5.0-18-lowlatency'
'/boot/initrd.img-3.5.0-18-lowlatency'
  
}

menuentry 'Ubuntu Studio Precise, Kernel 3.0.30 threadirqs' {
  set root='(hd1,1)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.0.30' '/boot/vmlinuz-3.0.30'
'root=UUID=338316fb-364e-4a43-8deb-738127f878ce' 'ro' 'quiet'
'threadirqs'
  legacy_initrd '/boot/initrd.img-3.0.30' '/boot/initrd.img-3.0.30'
  
}

menuentry 'Ubuntu Studio Precise, Kernel 3.2.0-23-lowlatency
threadirqs' {
  set root='(hd1,1)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.2.0-23-lowlatency'
'/boot/vmlinuz-3.2.0-23-lowlatency'
'root=UUID=338316fb-364e-4a43-8deb-738127f878ce' 'ro' 'quiet'
'threadirqs'
  legacy_initrd '/boot/initrd.img-3.2.0-23-lowlatency'
'/boot/initrd.img-3.2.0-23-lowlatency'
  
}

menuentry 'AVlinux 5.0.3,         Kernel 3.0.23-rt40' {
  set root='(hd1,11)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.0.23-rt40'
'/boot/vmlinuz-3.0.23-rt40' 'root=/dev/sdb11' 'ro' 'quiet'
  legacy_initrd '/boot/initrd.img-3.0.23-rt40'
'/boot/initrd.img-3.0.23-rt40'
  
}

menuentry 'AVlinux 5.0.3,         Kernel 3.0.23-avl-7-pae threadirqs' {
  set root='(hd1,11)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.0.23-avl-7-pae'
'/boot/vmlinuz-3.0.23-avl-7-pae' 'root=/dev/sdb11' 'ro' 'threadirqs'
'quiet'
  legacy_initrd '/boot/initrd.img-3.0.23-avl-7-pae'
'/boot/initrd.img-3.0.23-avl-7-pae'
  
}

menuentry 'Edubuntu 10.10,        Kernel 2.6.33.9-rt31' {
  set root='(hd1,8)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-2.6.33.9-rt31'
'/boot/vmlinuz-2.6.33.9-rt31'
'root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd' 'ro'
  legacy_initrd '/boot/initrd.img-2.6.33.9-rt31'
'/boot/initrd.img-2.6.33.9-rt31'
  
}

menuentry 'Ubuntu Studio Oz,      Kernel 3.0.0-17-generic' {
  set root='(hd1,6)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.0.0-17-generic'
'/boot/vmlinuz-3.0.0-17-generic'
'root=UUID=0241b2ac-a0ab-44de-8d73-0ed084e152e6'
  legacy_initrd '/boot/initrd.img-3.0.0-17-generic'
'/boot/initrd.img-3.0.0-17-generic'
  
}

menuentry 'Ubuntu Studio Oz,      Kernel 3.0.0-20-generic' {
  set root='(hd1,6)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.0.0-20-generic'
'/boot/vmlinuz-3.0.0-20-generic'
'root=UUID=0241b2ac-a0ab-44de-8d73-0ed084e152e6'
  legacy_initrd '/boot/initrd.img-3.0.0-20-generic'
'/boot/initrd.img-3.0.0-20-generic'
  
}

menuentry 'Arch Linux Rt' {
  set root='(hd0,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-linux-rt' '/boot/vmlinuz-linux-rt'
'root=/dev/sda9' 'ro'
  legacy_initrd '/boot/initramfs-linux-rt.img'
'/boot/initramfs-linux-rt.img'
  
}

menuentry 'Arch Linux' {
  set root='(hd0,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-linux' '/boot/vmlinuz-linux'
'root=/dev/sda9' 'ro'
  legacy_initrd '/boot/initramfs-linux.img' '/boot/initramfs-linux.img'
  
}

menuentry 'Arch Linux Fallback' {
  set root='(hd0,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-linux' '/boot/vmlinuz-linux'
'root=/dev/sda9' 'ro'
  legacy_initrd '/boot/initramfs-linux-fallback.img'
'/boot/initramfs-linux-fallback.img'
  
}

menuentry 'openSUSE 11.2,         Kernel 2.6.31.6-rt19' {
  set root='(hd0,7)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-2.6.31.6-rt19'
'/boot/vmlinuz-2.6.31.6-rt19' 'root=/dev/sda7'
  legacy_initrd '/boot/initrd-2.6.31.6-rt19'
'/boot/initrd-2.6.31.6-rt19'
}



More information about the freebsd-questions mailing list