Originally Posted by
davidmenges
My 12.04 Server suddenly doesn't want to mount one of my internal drives. Upon boot it says "The disk drive for /media/hd2 is not ready yet or not present.
The strange thing is I can cd into /media/hd2, and I see everything - files and folders. However, ls -l /dev/sdb1 says "no such file or directory".
My /etc/fstab looks good, but my /etc/mtab doesn't have a line for /dev/sdb1. When I add it manually (every time I boot), df then has an entry for /media/hd2 but /dev/sdb1 still doesn't exist.
Hints? I'll buy you a six pack...
The files in /dev define the various devices. The partition sda1 is a block device. It holds data in blocks. The command ls will list the device as such
Code:
brw-rw---- 1 root disk 8, 1 Jan 16 10:31 /dev/sda1
Note the b on the far left. This connotes that this is a block device. The user can't see any information like you would see in a directory. See a directory listing here
Code:
drwxr-xr-x 2 bab bab 4096 Jan 15 20:29 Desktop
drwxr-xr-x 5 bab bab 4096 Nov 11 14:20 Documents
Note the d at the far left. This connotes a directory that holds data the can be seen by the user.
In short /dev files are for OS interface with devices, not for the user to use directly.
Bookmarks