Image

Imagehenman wrote in Imagelinux

Stumped again!

So I bought a new hard drive this evening, so that I can back up my Linux disk before we move.

Got home; opened packaging; put new disk in to removable drive tray; shut down server; inserted drive tray; reboot; BIOS detected new drive; O/S (Red Hat 2.4.20-20.9) starts fine ... and then I couldn't go any further!

It's been a few years since I've done this kind of thing, but I thought the first step for a new drive was to use fdisk to create the partitions, and then to format them?

If I try fdisk /dev/hdb, I get:
You will not be able to write the partition table.
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
The bit about it already having a DOS partition table doesn't surprise me, because a lot of drives these days are pre-formatted - I ought to be able to wipe that.

The message that concerns me is when I try to w(rite) is Unable to write /dev/hdb!?

FYI, the disk is a Maxtor 80Gb / 7200 RPM Ultra ATA/133 drive with 8Mb buffer. The BIOS reports it as Maxtor 6Y080P0. (My primary drive is a Maxtor 5T040H4; the other devices are a ZipCD (CD-RW) and a DVD-ROM.)

I've read the HOWTO on partitioning, Linux Administration Made Easy, and the Hard Disk Upgrade Mini How-To.

{Cross-posted from my personal LJ.}