Passing extra parameters when booting the live medium

Questions about the installation of FreeBSD
Post Reply
giorgiob
Posts: 2
Joined: Sat May 07, 2016 3:51 pm

Passing extra parameters when booting the live medium

Post by giorgiob »

I have successfully installed FreeBSD on my computer, but I had a problem with my hard disk, which I solved as documented in this question: http://unix.stackexchange.com/questions ... llation-cd

The solution was to set the variable

hw.ata.ata_dma=0

during boot. After the installation was completed, I added the line

hw.ata.ata_dma=0

to /boot/loader.conf and everything worked fine from then on.

Now I have the same problem when starting the GhostBSD from the iso image. I tried adding the line

set hw.ata.ata_dma=0

at the end of the boot options, but the problem still persists.
After reporting the error a few times, the boot continue and I can get to the desktop and start the installer.
However, when the installer tries to format the disk, the error appears again and the installation is aborted.

So, how can I set the parameter

hw.ata.ata_dma=0

when booting from the installation iso image?
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Passing extra parameters when booting the live medium

Post by ASX »

press SHIFT while booting from cd/dvd and then edit the grub menu entry:

add:

Code: Select all

set kFreeBSD.hw.ata.ata_dma=0
in /boot/grub/grub.cfg in the entry marked 'FreeBSD', around this line:
kfreebsd /ROOT/initial/@/boot/kernel/kernel

the difference is because loader.conf is evaluated from FreeBSD boot loader, but not from grub boot loader, which is the bootloader used from GhostBSD DVD/USB.
giorgiob
Posts: 2
Joined: Sat May 07, 2016 3:51 pm

Re: Passing extra parameters when booting the live medium

Post by giorgiob »

Worked like a charm! Thanks a lot!
Post Reply