OVH Community, your new community space.

Bad file descriptor


aymanghost
24.11.11, 20:40
Hallo,

ich habe das Problem das fast jeden Tag der Superblock von /dev/sda (USB Stick) abschmiert. Das FS switcht auf read only und ich bekomme nur noch die message Bad file descriptor.

Den USB Stick habe ich mit 2 Partitionen versehen, einmal das Wurzelverzeichnis / und das Verzeichnis /boot.

Jetzt frage ich mich ob der USB Stick defekt ist , oder ob ich mit meinen Einstellungen in /etc/rc.local den Fehler selbst verursache:
Code:
blockdev --setra 16384 /dev/sda
blockdev --setra 32768 /dev/sdb
blockdev --setra 32768 /dev/sdc
In der /etc/sysfs.conf habe ich auch noch folgendes stehen:
Code:
block/sda/queue/scheduler = noop
block/sdb/queue/scheduler = noop
block/sdc/queue/scheduler = noop
fdisk -l gibt folgendes aus:
Code:
fdisk -l

Disk /dev/sda: 31.8 GB, 31822184448 bytes
64 heads, 32 sectors/track, 30348 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001f804

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           2        1907     1951744   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2            1908       30347    29122560   83  Linux
Partition 2 does not end on cylinder boundary.

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00052243

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      243202  1953513473    5  Extended
/dev/sdb5               1      243202  1953513472   83  Linux

Disk /dev/sdc: 238.0 GB, 237999489024 bytes
255 heads, 63 sectors/track, 28935 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000739f2

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          16      123904   82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sdc2              16       28935   232294401    5  Extended
/dev/sdc5              16        2910    23240704   83  Linux
/dev/sdc6            2910        5803    23240704   83  Linux
/dev/sdc7            5803        8696    23240704   83  Linux
/dev/sdc8            8697       11602    23339008   83  Linux
/dev/sdc9           11602       13049    11620352   83  Linux
/dev/sdc10          13049       28935   127607808   83  Linux
und mount -l:
Code:
/dev/sda2 on / type ext4 (rw,grpquota,usrquota) [/]
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,size=12670156800)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /boot type ext4 (rw,noatime) [/boot]
/dev/sdb5 on /home type ext4 (rw,noatime,grpquota,usrquota) [/home]
/dev/sdc5 on /opt type ext4 (rw,noatime,grpquota,usrquota) [/opt]
/dev/sdc6 on /srv type ext4 (rw,noatime) [/srv]
/dev/sdc7 on /tmp type ext4 (rw,noatime,grpquota,usrquota) [/tmp]
/dev/sdc8 on /usr type ext4 (rw,noatime,grpquota,usrquota) [/usr]
/dev/sdc9 on /usr/local type ext4 (rw,noatime,grpquota,usrquota) [/usr/local]
/dev/sdc10 on /var type ext4 (rw,noatime,grpquota,usrquota) [/var]

mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
       It's possible that information reported by mount(8) is not
       up to date. For actual information about system mount points
       check the /proc/mounts file.
Ich kann zwar den Fehler dank dem Rescue mode mit fsck beheben, aber morgen habe ich wieder das selbe problem.