Rescue, dyski IDE jako sdX

Paweł Kośka pawel w artfan.net
Wto, 3 Kwi 2007, 12:49:06 CEST


Witam,

Instaluje PLD z nowego RescueCD, pewnie wiadome jest że na tym rescue dyski 
IDE są widoczne jako /dev/sdX Tak więc idąc za ciosem chciałem zrobić by 
właśnie w systemie było tak widoczne. Prawie dobrze, ale nie potrafię tego 
zrobić.

Na rescueCD mam takie moduły załadowane:

[root w rescue ~]# lsmod
Module                  Size  Used by
ipv6                  245932  12
3c59x                  40488  0
mii                     5120  1 3c59x
uhci_hcd               21900  0
usbcore               127108  2 uhci_hcd
ide_cd                 39684  0
cdrom                  40608  1 ide_cd
ide_disk               15104  0
piix                    9604  0 [permanent]
ide_core              122488  3 ide_cd,ide_disk,piix
sd_mod                 18704  0
ata_piix               13192  0
libata                 97300  1 ata_piix
scsi_mod               96268  2 sd_mod,libata

dmesg w załączniku.

Do chroota skopiowałem /etc/modprobe.conf z rescueCD które wygląda tak:
[root w rescue /]# cat /etc/modprobe.conf
# alias scsi_hostadapter aic7xxx
alias eth0 3c59x
alias scsi_hostadapter ata_piix

alias usb-controller uhci-hcd


initrd się generuje:
[root w rescue /]# geninitrd /boot/initrd-2.6.16.45-1.gz 2.6.16.45-1 -v -f
Using /dev/sda1 as device for rootfs
Using modules:  kernel/drivers/scsi/scsi_mod.ko.gz 
kernel/drivers/scsi/libata.ko.gz kernel/drivers/scsi/ata_piix.ko.gz 
kernel/drivers/scsi/sd_mod.ko.gz kernel/fs/jbd/jbd.ko.gz 
kernel/fs/mbcache.ko.gz kernel/fs/ext3/ext3.ko.gz
/bin/initrd-busybox -> /tmp/initrd.LhUmwO/bin/initrd-busybox
Loading module [scsi_mod] without options.
Loading module [libata] without options.
Loading module [ata_piix] without options.
Loading module [sd_mod] without options.
Loading module [jbd] without options.
Loading module [mbcache] without options.
Loading module [ext3] without options.
Setting up udev...
/sbin/initrd-udevd -> /tmp/initrd.LhUmwO/sbin/udevd
/etc/udev/udev.conf -> /tmp/initrd.LhUmwO/etc/udev/udev.conf
Adding rootfs finding based on root= option support.


Ale system nie startuje. Z ostatnich rzeczy to mam tak:
# more /etc/fstab
/dev/sda1       /                       ext3    defaults                0 0
/dev/sda2       swap                    swap    defaults                0 0
/dev/sda3       /var                    ext3    defaults                0 0
/dev/sda4       /home                   ext3    defaults                0 0

# more /boot/grub/menu.lst
# For booting Linux
title  Linux
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1
initrd /boot/initrd


Ale nie startuje maszyna. Jak coś to spróbuję wyciągnąć z konsoli przy starcie 
maszyny....
Ale jak ładuje moduł ata_piix, to nie znajduje dysków.

Pomocy ;)

-- 
Pozdrawiam,
Paweł
-------------- następna część ---------
 [root w rescue /]# dmesg
Linux version 2.6.19.2-0.1 (areq w pracus) (gcc version 3.3.6 (PLD Linux)) #1 Sat Jan 13 16:14:50 UTC 2007
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000008000000 (usable)
 BIOS-e820: 00000000ffe00000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
128MB LOWMEM available.
Entering add_active_range(0, 0, 32768) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->    32768
  HighMem     32768 ->    32768
early_node_map[1] active PFN ranges
    0:        0 ->    32768
On node 0 totalpages: 32768
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 224 pages used for memmap
  Normal zone: 28448 pages, LIFO batch:7
  HighMem zone: 0 pages used for memmap
DMI 2.2 present.
ACPI: RSDP (v000 DELL                                  ) @ 0x000fdf50
  >>> ERROR: Invalid checksum
Allocating PCI resources starting at 10000000 (gap: 08000000:f7e00000)
Detected 548.652 MHz processor.
Built 1 zonelists.  Total pages: 32512
Kernel command line: initrd=/rescue.cpi,/custom/custom.cpi root=/dev/ram0 CONF="`/dev/fd0:/rescue`;;;;;;;;;;;" BOOT_IMAGE=vmlinuz
Local APIC disabled by BIOS -- you can enable it with "lapic"
mapped APIC to ffffd000 (01101000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 69572k/131072k available (1858k kernel code, 61060k reserved, 799k data, 300k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xfffa9000 - 0xfffff000   ( 344 kB)
    pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
    vmalloc : 0xc8800000 - 0xff7fe000   ( 879 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
      .init : 0xc03ec000 - 0xc0437000   ( 300 kB)
      .data : 0xc02d0aaf - 0xc03989b4   ( 799 kB)
      .text : 0xc0100000 - 0xc02d0aaf   (1858 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 1098.13 BogoMIPS (lpj=2196267)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Compat vDSO mapped to ffffe000.
CPU: Intel Pentium III (Katmai) stepping 03
Checking 'hlt' instruction... OK.
checking if image is initramfs... it is
Overmounted tmpfs
Freeing initrd memory: 56401k freed
NET: Registered protocol family 16
EISA bus registered
PCI: PCI BIOS revision 2.10 entry at 0xfcaee, last bus=1
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00fe2d0
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xe2f4, dseg 0x40
PnPBIOS: 14 nodes reported by PnP BIOS; 14 recorded by driver
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
* Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
* this clock source is slow. Consider trying other clock sources
PCI quirk: region 0800-083f claimed by PIIX4 ACPI
PCI quirk: region 0850-085f claimed by PIIX4 SMB
Boot video device is 0000:01:00.0
PCI: Using IRQ router PIIX/ICH [8086/7110] at 0000:00:07.0
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
pnp: 00:00: ioport range 0x800-0x83f has been reserved
pnp: 00:00: ioport range 0x850-0x85f has been reserved
PCI: Bridge: 0000:00:01.0
  IO window: e000-efff
  MEM window: fc000000-feffffff
  PREFETCH window: f9000000-f9ffffff
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
Machine check exception polling timer started.
audit: initializing netlink socket (disabled)
audit(1175603184.224:1): initialized
Total HugeTLB memory allocated, 0
Squashfs 2.2 LZMA (released 2005/07/03) (C) 2002-2005 Phillip Lougher
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12ac
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:01: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:02: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
pnp: Device 00:05 does not support activation.
i8042 aux: probe of 00:05 failed with error -22
PNP: PS/2 Controller [PNP0303] at 0x60,0x64 irq 1
PNP: PS/2 controller doesn't have AUX irq; using default 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
EISA: Probing bus 0 at eisa.0
EISA: Detected 0 cards.
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
Freeing unused kernel memory: 300k freed
Time: tsc clocksource has been installed.
input: AT Translated Set 2 keyboard as /class/input/input0
SCSI subsystem initialized
libata version 2.00 loaded.
ata_piix 0000:00:07.1: version 2.00ac6
ata1: PATA max UDMA/33 cmd 0x1F0 ctl 0x3F6 bmdma 0xFFA0 irq 14
ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xFFA8 irq 15
scsi0 : ata_piix
ata1.00: ATA-5, max UDMA/66, 29888820 sectors: LBA
ata1.00: ata1: dev 0 multi count 8
ata1.00: configured for UDMA/33
scsi1 : ata_piix
ata2.00: ATAPI, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      Maxtor 51536U3   DA62 PQ: 0 ANSI: 5
scsi 1:0:0:0: CD-ROM            TOSHIBA  CD-ROM XM-1902B  1J21 PQ: 0 ANSI: 5
SCSI device sda: 29888820 512-byte hdwr sectors (15303 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 29888820 512-byte hdwr sectors (15303 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
USB Universal Host Controller Interface driver v3.0
PCI: setting IRQ 11 as level-triggered
PCI: Found IRQ 11 for device 0000:00:07.2
PCI: Sharing IRQ 11 with 0000:00:11.0
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 11, io base 0x0000dce0
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 11 for device 0000:00:11.0
PCI: Sharing IRQ 11 with 0000:00:07.2
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:00:11.0: 3Com PCI 3c905B Cyclone 100baseTx at c8864000.
eth0:  setting full-duplex.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
eth0: no IPv6 routers present
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda4, internal journal
EXT3-fs: mounted filesystem with ordered data mode.



Więcej informacji o liście dyskusyjnej pld-users-pl