Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sony Memory stick

0 views
Skip to first unread message

joeyd

unread,
Nov 7, 2002, 12:45:48 AM11/7/02
to
Went to 'apexdesignsllc.com' and followed the directions to the letter.
I do not have a /dev/sda1...5 nor /dev/sdb1...5.
The dir /dev does not show any 'sd' devices.
How does one create /dev/sda1?

Don

Dances With Crows

unread,
Nov 7, 2002, 8:35:30 PM11/7/02
to

Which distro and which kernel version are you using? (Always post that
information when asking a question.)

/dev/sd[a-z] refer to SCSI disks. Unless you're using devfs, when the
SCSI disks are under /dev/scsi/hostX/busY/idZ/lunW/ . There should be
compatability links present in /dev from /dev/sda[0-9] to the
appropriate parts of /dev/scsi. If you don't know whether you're using
devfs or not, Mandrake and Gentoo are the only distros that use devfs by
default... and *all* distros should have created /dev/sd[ab][0-9] on
install, no matter what.

If you're not using devfs, you create device nodes (special files that
refer to hardware devices) with the "mknod" command or the /dev/MAKEDEV
script. If /dev/MAKEDEV is present, you can create a device by doing:

MAKEDEV /dev/sda /dev/sda1

If not, use mknod like so:

mknod /dev/sda 8 0 b
for I in 1 2 3 4 5 6 7 8 9; do
mknod /dev/sda$I 8 $I b
done

If the appropriate device files exist, and trying to access them results
in "no such device", something else is wrong--post the output of lsmod.

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL

joeyd

unread,
Nov 7, 2002, 12:49:23 PM11/7/02
to
Dances With Crows wrote:

Below is the reults:

[root@downstairs dev]# MAKEDEV /dev/sda /dev/sda1
don't know how to make device "/dev/sda"
don't know how to make device "/dev/sda1"

With ':'
[root@downstairs dev]# mknod /dev/sda 8 0 b for l in 1 2 3 4 5 6 7 8 9: do
mknod: too many arguments

With ';' as suggested
[root@downstairs dev]# mknod /dev/sda 8 0 b for l in 1 2 3 4 5 6 7 8 9; do
bash: syntax error near unexpected token `do'

[root@downstairs dev]# lsmod
Module Size Used by Tainted: P
ide-scsi 8032 0 (autoclean)
isofs 25792 0 (autoclean)
inflate_fs 19328 0 (autoclean) [isofs]
ppp_deflate 42240 0 (autoclean)
bsd_comp 4544 0 (autoclean)
ppp_async 6560 1 (autoclean)
ppp_generic 19880 3 (autoclean) [ppp_deflate bsd_comp
ppp_async]
slhc 5056 1 (autoclean) [ppp_generic]
r128 87640 1
agpgart 31552 3 (autoclean)
sr_mod 15160 0 (autoclean)
snd 34272 0
soundcore 4068 0 [snd]
lp 6464 0
parport_pc 22088 1
parport 23968 1 [lp parport_pc]
af_packet 12488 0 (autoclean)
usb-storage 52236 0
usb-ohci 19072 0 (unused)
usbcore 59072 1 [usb-storage usb-ohci]
sis900 12676 0 (autoclean)
nls_iso8859-1 2816 1 (autoclean)
nls_cp850 3584 1 (autoclean)
vfat 9788 1 (autoclean)
fat 31384 0 (autoclean) [vfat]
supermount 62180 3 (autoclean)
sd_mod 11644 0 (autoclean) (unused)
scsi_mod 92488 4 [ide-scsi sr_mod usb-storage sd_mod]
rtc 5912 0 (autoclean)

joeyd

unread,
Nov 7, 2002, 12:55:11 PM11/7/02
to
joeyd wrote:


Sorry, I forgot MDK 8.2 2.4.18-6mdk

Dances With Crows

unread,
Nov 7, 2002, 11:35:40 PM11/7/02
to
On Thu, 07 Nov 2002 09:55:11 -0800, joeyd staggered into the Black Sun
and said:
> joeyd wrote:
>> Dances With Crows wrote:
[summary: joeyd is having problems with his Mandrake 8.2 installation;
it looks like the compatability links that should be present are not
there.]

> Sorry, I forgot MDK 8.2 2.4.18-6mdk
>> [root@downstairs dev]# MAKEDEV /dev/sda /dev/sda1
>> don't know how to make device "/dev/sda"

Of course not; you're using devfs and the links should already be
present. devfs creates devices automatically based on whether they're
present or not; if you have no SCSI or pseudo-SCSI devices on your
system, /dev/scsi/ will be empty. What does /dev/scsi contain? What
does /dev/discs/ contain?

>> [root@dev]# mknod /dev/sda 8 0 b for l in 1 2 3 4 5 6 7 8 9:

Syntax error. The : is incorrect here.

>> [root@dev]# mknod /dev/sda 8 0 b for l in 1 2 3 4 5 6 7 8 9; do


>> bash: syntax error near unexpected token `do'

? I wrote a a capital I, not a lowercase L; and a ;, not a :. If you
can't easily distinguish the 2 letters, you're using the wrong font. If
you can't easily distinguish ; and :, you're using the wrong font or
your font is too small. That may sound like fussy nitpicking, but
details count when you're messing around with these low-level things,
and getting these details wrong will cause you unnecessary pain.

mknod /dev/sda 8 0 b ; for I in 1 2 3 4 5 6 7 8 9 ; do

^
You can use a ; to separate multiple commands in
bash on one line. Leaving the ; out will cause an
error. Like so:

echo "hello" ; echo "world"

>> ide-scsi 8032 0 (autoclean)
>> isofs 25792 0 (autoclean)

>> sr_mod 15160 0 (autoclean)


>> usb-storage 52236 0
>> usb-ohci 19072 0 (unused)
>> usbcore 59072 1 [usb-storage usb-ohci]

>> sd_mod 11644 0 (autoclean) (unused)
>> scsi_mod 92488 4 [ide-scsi sr_mod usb-storage sd_mod]

All the appropriate modules are loaded. What'd "dmesg" say immediately
after you plugged the USB memory stick reader in?

joeyd

unread,
Nov 7, 2002, 4:22:49 PM11/7/02
to
Dances With Crows wrote:

> On Thu, 07 Nov 2002 09:55:11 -0800, joeyd staggered into the Black Sun
> and said:
>> joeyd wrote:
>>> Dances With Crows wrote:
> [summary: joeyd is having problems with his Mandrake 8.2 installation;
> it looks like the compatability links that should be present are not
> there.]
>> Sorry, I forgot MDK 8.2 2.4.18-6mdk
>>> [root@downstairs dev]# MAKEDEV /dev/sda /dev/sda1
>>> don't know how to make device "/dev/sda"
>
> Of course not; you're using devfs and the links should already be
> present. devfs creates devices automatically based on whether they're
> present or not; if you have no SCSI or pseudo-SCSI devices on your
> system, /dev/scsi/ will be empty. What does /dev/scsi contain? What
> does /dev/discs/ contain?

/dev/scsi contains /dev/scsi/host0/bus0/target0/lun0/cd
/dev/discs contains /dev/discs/disc0, disc1
/disc0 contains /disc, /disc1
/disc1 contains /disc, /part1, part2, part5

I do not know. That was a few days ago.
Here is the latest dmesg.

Linux version 2.4.18-6mdk (quin...@bi.mandrakesoft.com) (gcc version 2.96
20000731 (Mandrake Linux 8.2 2.96-0.76mdk)) #1 Fri Mar 15 02:59:08 CET 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff8000 (ACPI data)
BIOS-e820: 000000001fff8000 - 0000000020000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffee0000 - 00000000fff00000 (reserved)
BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
hm, page 1fff0000 reserved twice.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=linux ro root=345 devfs=mount hdc=ide-scsi
quiet
ide_setup: hdc=ide-scsi
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 1194.918 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 2385.51 BogoMIPS
Memory: 513484k/524224k available (1170k kernel code, 10352k reserved, 332k
data, 260k init, 0k highmem)
Dentry-cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 0383fbff c1c3fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU: After vendor init, caps: 0383fbff c1c3fbff 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU: AMD Duron(tm) Processor stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgo...@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfdb01, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router SIS [1039/0008] at 00:02.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
devfs: v1.10 (20020120) Richard Gooch (rgo...@atnf.csiro.au)
devfs: boot_options: 0x1
vesafb: framebuffer at 0xc8000000, mapped to 0xe0800000, size 16384k
vesafb: mode is 800x600x16, linelength=1600, pages=16
vesafb: protected mode interface info at c000:6b89
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Looking for splash picture.... found (800x600, 53754 bytes).
Console: switching to colour frame buffer device 80x16
fb0: VESA VGA frame buffer device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT
SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller on PCI bus 00 dev 15
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SiS735
ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
hda: QUANTUM FIREBALLP AS30.0, ATA DISK drive
hdb: Maxtor 91531U3, ATA DISK drive
hdc: Memorex 40MAXX 1248AJ, ATAPI CD/DVD-ROM drive
hdd: CREATIVE CD5233E-N, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 58633344 sectors (30020 MB) w/1902KiB Cache, CHS=3649/255/63, UDMA(33)
hdb: 30015216 sectors (15368 MB) w/512KiB Cache, CHS=1868/255/63, UDMA(33)
hdd: ATAPI 52X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1
/dev/ide/host0/bus0/target1/lun0: p1 p2 < p5 >
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Uncompressing....done.
Freeing initrd memory: 73k freed
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 260k freed
Real Time Clock Driver v1.10e
Adding Swap: 546168k swap-space (priority -1)
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: Memorex Model: 40MAXX 1248AJ Rev: ZWS1
Type: CD-ROM ANSI SCSI revision: 02
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
sis900.c: v1.08.02 11/30/2001
PCI: Assigned IRQ 11 for device 00:03.0
eth0: Realtek RTL8201 PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xd400, IRQ 11, 00:07:95:45:99:7f.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
SiS router pirq escape (99)
SiS router pirq escape (99)
usb-ohci.c: USB OHCI at membase 0xe19a6000, IRQ 11
usb-ohci.c: usb-00:02.3, Silicon Integrated Systems [SiS] 7001 (#2)
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 3 ports detected
PCI: Found IRQ 11 for device 00:02.2
usb-ohci.c: USB OHCI at membase 0xe19a8000, IRQ 11
usb-ohci.c: usb-00:02.2, Silicon Integrated Systems [SiS] 7001
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
hub.c: USB new device connect on bus2/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x4ce/0x2) is not claimed by any active
driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
eth0: Media Link On 10mbps half-duplex
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
lp0: using parport0 (polling).
lp0: compatibility mode
snd: Intel ICH soundcard not found or device busy
Splash status on console 0 changed to off
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 148x/48x writer cd/rw xa/form2 cdda tray
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected SiS 735 chipset
agpgart: AGP aperture is 64M @ 0xd0000000
[drm] AGP 0.99 on SiS @ 0xd0000000 64MB
[drm] Initialized r128 2.2.0 20010917 on minor 0
end_request: I/O error, dev 02:00 (floppy), sector 0
cdrom: open failed.
cdrom: open failed.
end_request: I/O error, dev 02:00 (floppy), sector 0
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
scsi : 1 host left.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: Memorex Model: 40MAXX 1248AJ Rev: ZWS1
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 148x/48x writer cd/rw xa/form2 cdda tray
cdrom: open failed.
scsi : 1 host left.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: Memorex Model: 40MAXX 1248AJ Rev: ZWS1
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 148x/48x writer cd/rw xa/form2 cdda tray
cdrom: open failed.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.1
PPP BSD Compression module registered
PPP Deflate Compression module registered

0 new messages