Robert Himmelmann wrote:
Hello,
I have an external HD which I use for backup. It is connected over USB 2.0 and usually but not always (only when it is the first USB-mass-storage device) shows up as /dev/sda. Now I have had some problems as it did not show up in usbview anymore and I could also not mount it. After some time I realized that /dev/sda1 did not exist anymore. "ls /dev/sda1" gives "No such file or directory". I have been playing around with hotplug lately and I sometimes mix up mv and rm. I think it is possible that I deleted it. How can I create a new /dev/sda1?
Happy Hacking, Robert Himmelmann
How do I type "for i in *.dvi do xdvi $i done" in a GUI? -- Discussion in comp.os.linux.misc on the intuitiveness of interfaces
"Murphy's Law, that brash proletarian restatement of G�del's Theorem ..."
-- Thomas Pynchon, "Gravity's Rainbow"
1. ls /dev/sda? On my old compaq server, I get... brw-rw---- 1 root disk 8, 1 Dec 24 18:19 /dev/sda1 brw-rw---- 1 root disk 8, 2 Dec 24 18:19 /dev/sda2 brw-rw---- 1 root disk 8, 3 Dec 24 18:19 /dev/sda3 brw-rw---- 1 root disk 8, 4 Dec 24 18:19 /dev/sda4 brw-rw---- 1 root disk 8, 5 Dec 24 18:19 /dev/sda5 brw-rw---- 1 root disk 8, 6 Dec 24 18:19 /dev/sda6 brw-rw---- 1 root disk 8, 7 Dec 24 18:19 /dev/sda7 brw-rw---- 1 root disk 8, 8 Dec 24 18:19 /dev/sda8 brw-rw---- 1 root disk 8, 9 Dec 24 18:19 /dev/sda9
I hope that you'll get a few sda's back so you can get the correct major device number.
2. mknod /dev/sda1 b 8 1 That's using the values above.
Alternatively, there's usually a script called /dev/MAKEDEV or similar, that'll do it for you.
Alternatively, I think it's usually run on reboot.
hth,
Steve
