LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-19-2006, 11:37 PM   #1
the_low
LQ Newbie
 
Registered: Aug 2005
Location: Germany, NRW
Distribution: Debian/Sarge
Posts: 6

Rep: Reputation: 1
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?
 
Old 11-20-2006, 08:10 AM   #2
the_low
LQ Newbie
 
Registered: Aug 2005
Location: Germany, NRW
Distribution: Debian/Sarge
Posts: 6

Original Poster
Rep: Reputation: 1
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.
 
1 members found this post helpful.
  


Reply

Tags
debian, sarge, sata



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount: /dev/sdb1 is not a valid block device zaltar Linux - General 8 07-13-2005 02:07 AM
mkfs.vfat /dev/hdb ERRORS! fatrandy13 Linux - Hardware 1 05-31-2005 08:36 PM
USB key /dev/sdb1 permissions problem... zparihar Linux - Hardware 6 02-03-2005 05:22 PM
External USB HDD"Mounting local filesystems: /dev/sdb1 is not a valid block device" manudath Linux - Hardware 3 12-13-2004 09:59 PM
mount: wrong fs type, bad option, bad superblock on /dev/sdb1 pmoreira Linux - Hardware 5 02-26-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration