Okay just tried to install a large hard drive in the server mentioned in post above.
It is a few years old and I am having an issue. IT seems part of the drive is bad. What I am wondering here is if I can partion it off and use the large majority that is in good shape.
Here is the error message I get, is there anyway around this, or is the drive dead?
___________________________________________________________
umount: /export/Disk-2: No such file or directory
Checking that no-one is using this disk right now ...
OK
Disk /dev/ide/host0/bus0/target1/lun0/disc: 30515 cylinders, 255 heads, 63 secto
rs/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/ide/host0/bus0/target1/lun0/part1 0+ 30514 30515- 245111737 8
3 Linux
/dev/ide/host0/bus0/target1/lun0/part2 0 - 0 0
0 Empty
/dev/ide/host0/bus0/target1/lun0/part3 0 - 0 0
0 Empty
/dev/ide/host0/bus0/target1/lun0/part4 0 - 0 0
0 Empty
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/ide/host0/bus0/target1/lun0/part1 0+ 30514 30515- 245111737 8
3 Linux
/dev/ide/host0/bus0/target1/lun0/part2 0 - 0 0
0 Empty
/dev/ide/host0/bus0/target1/lun0/part3 0 - 0 0
0 Empty
/dev/ide/host0/bus0/target1/lun0/part4 0 - 0 0
0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
mke2fs 1.27 (8-Mar-2002)
Filesystem label=NAS_Disk-2
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
30654464 inodes, 61277934 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
1871 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Checking for bad blocks (read-only test): done
Block 0 in primary superblock/group descriptor area bad. Blocks 0 through 16 must be good in order to build a filesystem. Aborting....
___________________________________________________________
As you can see the error at the end. I was trying to prepare this drive through telnet and above is the session recorded from the client side.
Any ideas anyone. I looked through the long log file the server makes and it appears only a small handful of the sectors are bad and hate to get rid of this disk. IT is a 250gig drive so you can imagine why I am reluctant to replace it right away.
Well thanks to anyone that can help me use this drive.
|