On Tue, 4 Dec 2007 21:58:33 +0100
Leonard <piper28a@gmail.invalid> wrote:
> dmesg giver en masse linier Connection attempt (PRIV): IN=eth0 ...
> det ligner noget netværk for mig og jeg kan ikke se harddiske nogen
> steder.
>
Det sikreste er, hvis du kikker i listen over blokenheder, som kernen
har fundet under opstart:
ll /sys/block
Alle kataloger startende med fd (floppy), hd (PATA) og sd (SCSI eller
SATA) er identificeret som tilsluttede blokenheder.
Hver katalog har så en oversigt over bl.a. partitioner. Et eksempel
$ ll /sys/block
total 0
drwxr-xr-x 5 root root 0 2007-12-03 15:23 fd0
drwxr-xr-x 8 root root 0 2007-12-04 22:18 hda
drwxr-xr-x 5 root root 0 2007-12-03 15:22 hdc
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram0
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram1
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram10
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram11
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram12
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram13
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram14
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram15
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram2
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram3
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram4
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram5
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram6
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram7
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram8
drwxr-xr-x 4 root root 0 2007-12-03 15:22 ram9
$ ll /sys/block/hda/
total 0
-r--r--r-- 1 root root 4096 2007-12-04 22:18 capability
-r--r--r-- 1 root root 4096 2007-12-04 22:18 dev
lrwxrwxrwx 1 root root 0 2007-12-04 22:18 device
-> ../../devices/pci0000:00/0000:00:1f.1/ide0/0.0
drwxr-xr-x 3 root root 0 2007-12-04 22:18 hda1
drwxr-xr-x 3 root root 0 2007-12-04 22:18 hda2
drwxr-xr-x 3 root root 0 2007-12-04 22:18 hda5
drwxr-xr-x 2 root root 0 2007-12-03 15:22 holders
drwxr-xr-x 3 root root 0 2007-12-03 15:22 queue
-r--r--r-- 1 root root 4096 2007-12-04 22:18 range
-r--r--r-- 1 root root 4096 2007-12-04 22:18 removable
-r--r--r-- 1 root root 4096 2007-12-04 22:18 size
drwxr-xr-x 2 root root 0 2007-12-03 15:22 slaves
-r--r--r-- 1 root root 4096 2007-12-04 22:18 stat
lrwxrwxrwx 1 root root 0 2007-12-04 22:18 subsystem -> ../../block
--w------- 1 root root 4096 2007-12-04 22:18 uevent
Ovenstående fortæller altså, at der er fundet 1 floppy enhed (fd0) samt
2 blok enheder (hda, hdc).
Hvis vi lister /sys/block/hda, får vi at vide, at disken indeholder 3
partitioner (hda1,hda2,hda5).
--
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917
A computer is like air conditioning: it becomes useless when you open
windows.