LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mkfs => Could not stat /dev/sdb1, although partition exists (https://www.linuxquestions.org/questions/linux-hardware-18/mkfs-%3D-could-not-stat-dev-sdb1-although-partition-exists-503156/)

the_low 11-19-2006 11:37 PM

mkfs => Could not stat /dev/sdb1, although partition exists
 
Hello forum :)

I'm stuck with a problem here, that had me go "umm.wtf?" about 2 hrs yesterday. After doing some (unsuccessful) googling on it, I've decided, that if I don't get an answer here, there is none ;)

I am running Debian Sarge (Linux version 2.6.14-2-k7-smp (Debian 2.6.14-2bpo1) ) on a machine with a SiS 182 SATA controller. It has two identical disks hooked up to it. sata_sis is compiled statically into the kernel and recognizes the disks as follows:

Code:

sata_sis: Detected SiS 182 chipset
ata1: SATA max UDMA/133 cmd 0x1CB0 ctl 0x1CA6 bmdma 0x1C90 irq 9
ata2: SATA max UDMA/133 cmd 0x1CA8 ctl 0x1CA2 bmdma 0x1C98 irq 9
input: AT Translated Set 2 keyboard on isa0060/serio0
ata1: dev 0 cfg 49:2f00 82:746b 83:7f01 84:4023 85:7469 86:be01 87:4023 88:40ff
ata1: dev 0 ATA, max UDMA7, 156301488 sectors: lba48
ata1: dev 0 configured for UDMA/133
scsi0 : sata_sis
ata2: dev 0 cfg 49:2f00 82:746b 83:7f01 84:4023 85:7469 86:be01 87:4023 88:40ff
ata2: dev 0 ATA, max UDMA7, 156301488 sectors: lba48
ata2: dev 0 configured for UDMA/133
scsi1 : sata_sis
  Vendor: ATA      Model: SAMSUNG HD080HJ  Rev: ZH10
  Type:  Direct-Access                      ANSI SCSI revision: 05
  Vendor: ATA      Model: SAMSUNG HD080HJ  Rev: ZH10
  Type:  Direct-Access                      ANSI SCSI revision: 05
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sdb: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sdb: drive cache: write back
SCSI device sdb: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sdb: drive cache: write back
 sdb: sdb1
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0

fine so far. when I list the partitions on /dev/sdb using fdisk /dev/sdb, it looks like this:

Code:

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1        9729    78148161  83  Linux

fine so far. After all, I've partitioned that myself.

NOW... when I try a mkfs.ext3 /dev/sdb1, mkfs returns:

Code:

golf612:~# mkfs.ext3 /dev/sdb1
mke2fs 1.37 (21-Mar-2005)
Could not stat /dev/sdb1 --- Datei oder Verzeichnis nicht gefunden (transl.: file or directory not found)

Das Gerät scheint nicht zu existieren, haben Sie es richtig angegeben? (transl.: The device doesn't seem to exist - did you type it correctly?)

Now, that's where I started to be like "wtf?". Writing raw content (dd if=/dev/zero of=/dev/sdb) onto the drive works. hdparm -t -T /dev/sdb works. I just can't create a filesystem on it. Help?

the_low 11-20-2006 08:10 AM

Problem solved with a little help from my friends over at deviantaudio.com

Code:

:~# cat /proc/partitions
major minor  #blocks  name

  8    17  78148161 sdb1

Code:

:~# mknod /dev/sdb1 b 8 17
works.


All times are GMT -5. The time now is 06:30 PM.