I just ran fdisk on a sata drive (sda), deleted the partition (sda1), and recreated it (new, primary, 1, write changes). However, when I try mkfs, it fails. Here's what I get.
Code:
#end of fdisk
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
#mkfs.ext3 /dev/sda1
mke2fs 1.38 (30-Jun-2005)
/dev/sda1 is apparently in use by the system; will not make a filesystem here!
Here's df:
Code:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 9920624 2905028 6503528 31% /
/dev/hda1 101086 12916 82951 14% /boot
#tmpfs is swap. I don't know why it's labelled like that.
tmpfs 1037884 0 1037884 0% /dev/shm
/dev/hda5 226391152 181170744 33534732 85% /home
192.168.0.1:/backup 17503584 846240 15768192 6% /backup
Fuser /dev/sda1 and lsof /dev/sda1 both return nothing. Here's the end of /var/log/messages:
Code:
Oct 12 10:05:21 kaoru kernel: sda: Write Protect is off
Oct 12 10:05:21 #### kernel: SCSI device sda: drive cache: write back
Oct 12 10:05:21 #### kernel: sda: sda1
Oct 12 10:05:23 #### kernel: SCSI device sda: 781422768 512-byte hdwr sectors (400088 MB)
No change on reboot, either. Any suggestions?