Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2000 12:03:52 PST
From:      Marc Frajola <marc@enginet.com>
To:        freebsd-hackers@freebsd.org
Subject:   How to fdisk/disklabel whole disk for FreeBSD from command line?
Message-ID:  <200002262003.MAA13658@enginet.com>

next in thread | raw e-mail | index | archive | help
Hi...

    I have spent a bit of time messing around with the command-line
fdisk and disklabel commands, and have been unable to setup a proper
fdisk and FreeBSD partition label solely from the command line.

    When I do 'fdisk -e /dev/rda1' or 'fdisk -u ...', that seems to
write an fdisk label, but I get 'No space left on device' or some such
message when I try to do 'disklabel -r -w da1 auto'.

    Basically, I want to be able to automate an install, and can't
figure out how to get a shell script to completely initialize a proper
fdisk label AND FreeBSD disk label + boot blocks.

    I know that I can use sysinstall to do this properly, but I really
need to do this from a shell script in an automated fashion. I have
tried using slice partitions with disklabel, and that doesn't work
either.

    I have consulted the FreeBSD FAQ, and haven't been able to find the
answer there. I also sent this to freebsd-questions, and didn't get any
reply. Can anybody point me in the right direction?

...Marc...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002262003.MAA13658>