Re: mknod on /dev/hda when it's already a directory - ??
On Mon, 8 Jan 2007 01:31:09 +0100, Matej Kovac wrote:
> On Sun, Jan 07, 2007 at 05:43:43PM -0600, mark david mcCreary wrote:
>> I've got an old Debian Woody machine that is running fine, but somehow
>> /dev/hda has become a directory.
>>
> [...]
>
> cat /proc/partitions
major minor #blocks name
3 0 29316672 hda
3 1 96358 hda1
3 2 979965 hda2
3 3 1951897 hda3
3 4 1 hda4
3 5 979933 hda5
3 6 730926 hda6
3 7 995998 hda7
> cat /proc/mounts
/dev/root / ext2 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/hda2 /usr ext2 rw 0 0
/dev/hda3 /home ext2 rw 0 0
/dev/hda5 /var ext2 rw 0 0
/dev/hda6 /backup ext2 rw 0 0
> mount
/dev/hda1 on / type ext2 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda2 on /usr type ext2 (rw)
/dev/hda3 on /home type ext2 (rw)
/dev/hda5 on /var type ext2 (rw)
/dev/hda6 on /backup type ext2 (rw)
> stat /dev/hda /dev/hda/. /dev/hda/..
Don't have stat installed and apt-get install is currently failing on
the woody archive. I did a apt-get update first.
I will try to get that program installed again tomorrow.
> find /dev/hda -exec stat \{\} \;
> df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 93309 34092 54400 39% /
/dev/hda2 964532 288132 627404 32% /usr
/dev/hda3 1921188 1399004 424592 77% /home
/dev/hda5 964500 691864 223640 76% /var
/dev/hda6 719420 331036 351840 49% /backup
>
> is there a process in state D? anything in kernel logs? (look in past,
> where past is all rotated history & grep out known-good lines)
>
>
>
No current process in the D state.
Nothing interesting in 2 most current kern.logs. Most current one is
blank and second one shows a couple of lines of ISO extensions.
3rd most recent kern.log shows bootup on November 26, 2006 and looks
normal. That would correspond to uptime of 42 days.
Thanks for the debugging questions. Things look normal to my eye, so
if you have any more ideas, let me know.
mark
Reply to: