Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I disklabel my second hard drive?

disklabel
0
Posted

How do I disklabel my second hard drive?

0

The obvious answer is to use ‘disklabel -w -r /dev/rwd1d’. Unfortunately, this does not always put a real disklabel on the drive. The symptom is that the drive labels and can be used until the system is reset, at which point the system tries to read the label from the disk. It was never actually written to the disk, so the operation fails. There are also reports that the /usr/mdec files are corrupted in some of the distributions. If you have tried everything else, you can either load the files from one of the many archive sites that keep the /usr/mdec files around, or you can recompile them yourself. Instead of specifying the entire device path name (i.e. /dev/rsd0c), only specify the two letters of the device type and the unit number (i.e. “sd0”). Disklabel figures out the rest, and it works. For instance, the following line works for me: disklabel -w -r sd0 &ltdrive-type&gt assuming of course that the boot block files are in /usr/mdec/ and the &ltdrive-type&gt is in the /etc/disktab.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123