Subject: Re: fdisk from a scripts
To: Wolfgang Rupprecht <wolfgang+gnus20020828T110430@wsrcc.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 08/28/2002 12:30:53
On 28 Aug 2002, Wolfgang Rupprecht wrote:
> fdisk -0 -s 169 /dev/${to}
>
> The above seems to do nothing...
I think you need "-s 169/start/size" (where start and size are in
sectors).
You may be able to figure it out by first using "fsck -S" to see what
size (like DLSIZE) is okay.
> The goal of this is to do automated backups by making a fully-bootable
> and runnable snapshot from cron. The price of tape drives and tapes
> is insane, while disks are getting cheaper all the time.
Recently, I did the same thing under Linux using sfdisk (then mkfs, lilo,
cpio).
Jeremy C. Reed
http://bsd.reedmedia.net/