Linux Today: Linux News On Internet Time.

Linux Gazette: Using Sfdisk and Perl to fdisk a hard drive

Oct 10, 1999, 16:25 (0 Talkback[s])
(Other stories by Mark Nielsen)

"The purpose of the article is to explain how to automate the fdisking of a hard drive by primarily using Sfdisk and the Perl Expect module. Why would you want to do this? Well, it can be one way of many ways to solve the problem where you need to have your bootable files for Linux before the 1024th cylinder. There are other ways to solve the boot problem, but we will stick to the cylinder method for this article. It also can be used to automatically partition new hard drives."

"Sfdisk is a tool that allows you to change the partitioning of your hard disks through scripts. It also lets you get information about your hard drives. Although it is a pretty cool program, it does have limitations. It works and it has most of the necessary powers of fdisk, but not all of it."

Complete Story

Related Stories: