데비안 스퀴즈의 SATA 드라이버

데비안 스퀴즈의 SATA 드라이버

ATA 포트의 컴팩트 플래시 카드에 Debian Squeeze가 설치되어 있습니다. 전체 시스템을 SATA 드라이브에 복사했지만 루트 파일 시스템을 마운트할 수 없기 때문에 시스템이 initramfs에 유지됩니다. 내 시스템이 SATA 드라이브를 지원하지 않는다는 것을 알고 있습니다. /dev/sd[abc] 장치가 표시되지 않습니다. SATA 드라이버를 어떻게 설치하나요? iscsi_mod 드라이버가 필요한 것 같은데 설치에 대한 정보를 찾을 수 없습니다.

uname -a
Linux server 2.6.32-2 #1 Thu May 24 10:52:21 CEST 2012 i686 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.10 (squeeze)
Release:    6.0.10
Codename:   squeeze 

-

cat /proc/modules 
tcp_diag 596 0 - Live 0xe0716000
inet_diag 5584 1 tcp_diag, Live 0xe070c000
cls_flow 4642 324 - Live 0xe17c5000
sch_sfq 3810 432 - Live 0xe17ba000
cls_u32 4436 326 - Live 0xe17af000
cls_fw 2611 2 - Live 0xe17a4000
sch_htb 9947 2 - Live 0xe1798000
xt_mark 613 2 - Live 0xe1441000
xt_MARK 617 5 - Live 0xe0e62000
ip_set_nethash 4264 1 - Live 0xe0e46000
ipt_set 920 6 - Live 0xe0e20000
ip_set_macipmap 2375 1 - Live 0xe0d88000
xt_IMQ 827 2 - Live 0xe0d3c000
ipt_LOG 3510 1 - Live 0xe0cdb000
xt_limit 1064 1 - Live 0xe0cd1000
xt_multiport 1771 2 - Live 0xe0cc4000
xt_state 919 6 - Live 0xe0c5a000
xt_tcpudp 1727 46 - Live 0xe0c48000
ip_set 8786 5 ip_set_nethash,ipt_set,ip_set_macipmap, Live 0xe0bfc000
iptable_raw 1467 0 - Live 0xe0bce000
iptable_filter 1786 1 - Live 0xe0bbb000
iptable_nat 3499 1 - Live 0xe0ba8000
iptable_mangle 2333 1 - Live 0xe0b94000
ip_tables 7187 4 iptable_raw,iptable_filter,iptable_nat,iptable_mangle,                   Live 0xe0b89000
x_tables 8181 11     xt_mark,xt_MARK,ipt_set,xt_IMQ,ipt_LOG,xt_limit,xt_multiport,xt_state,xt_tcpu    dp,iptable_nat,ip_tables, Live 0xe0b7b000
imq 2481 0 - Live 0xe0b6d000
ext2 43919 1 - Live 0xe0b50000
nf_nat_ftp 1427 0 - Live 0xe0b36000
nf_nat 10236 2 iptable_nat,nf_nat_ftp, Live 0xe0b29000
nf_conntrack_ipv4 7417 9 iptable_nat,nf_nat, Live 0xe0b19000
nf_defrag_ipv4 759 1 nf_conntrack_ipv4, Live 0xe0b0c000
nf_conntrack_ftp 4120 1 nf_nat_ftp, Live 0xe0b02000
nf_conntrack 36092 6         xt_state,iptable_nat,nf_nat_ftp,nf_nat,nf_conntrack_ipv4,nf_conntrack_ftp,     Live 0xe0ae9000
loop 9449 0 - Live 0xe0acb000
uhci_hcd 15082 0 - Live 0xe0a90000
ehci_hcd 24437 0 - Live 0xe0a7b000
e100 21469 0 - Live 0xe0a3a000
mii 2702 1 e100, Live 0xe0a1c000
evdev 5338 2 - Live 0xe0a0b000
shpchp 21040 0 - Live 0xe09f9000
parport_pc 15541 0 - Live 0xe09c9000
parport 21997 1 parport_pc, Live 0xe09a4000
rtc_cmos 6063 0 - Live 0xe0990000
floppy 38956 0 - Live 0xe0978000
usbcore 92562 3 uhci_hcd,ehci_hcd, Live 0xe093f000
psmouse 31992 0 - Live 0xe0906000
pcspkr 1175 0 - Live 0xe08f1000
nls_base 4433 1 usbcore, Live 0xe08d8000
rng_core 2214 0 - Live 0xe08cd000
processor 17905 0 - Live 0xe08be000
button 3546 0 - Live 0xe08ad000
pci_hotplug 18035 1 shpchp, Live 0xe089c000
ext3 89927 1 - Live 0xe0870000
jbd 26599 1 ext3, Live 0xe083d000
mbcache 3488 2 ext2,ext3, Live 0xe0828000
ide_cd_mod 20776 0 - Live 0xe0817000
ide_gd_mod 16615 4 - Live 0xe0801000
cdrom 25921 1 ide_cd_mod, Live 0xe07ea000
ata_generic 2007 0 - Live 0xe07d8000
ata_piix 16941 0 - Live 0xe07c8000
libata 102152 2 ata_generic,ata_piix, Live 0xe0793000
piix 3540 3 - Live 0xe075f000
thermal 9183 0 - Live 0xe0751000
ide_core 57412 3 ide_cd_mod,ide_gd_mod,piix, Live 0xe072d000
thermal_sys 8391 2 processor,thermal, Live 0xe0707000

답변1

Sata 드라이버는 기본적으로 debian squeeze의 커널 이미지와 함께 제공됩니다. 단, initramfs를 빌드할 때 필요한 드라이버만 포함하도록 지시했고 시스템에 SATA 하드웨어가 없는 경우는 예외입니다. OS를 처음 설치할 때 자주 묻는 질문입니다. 대부분의 모듈을 포함하지 않고 더 작은 initramfs를 선택한 경우 sata 드라이버가 포함되지 않았을 수 있습니다.

가장 쉬운 해결책은 복구 모드에서 CDROM 등의 시스템을 부팅한 다음 플래시 카드의 OS 커널에 대한 initramfs를 다시 빌드하는 것입니다. 커널 패키지 이름이 linux-image-2.6.32-5-amd64라고 가정하고 커널을 다시 설치할 수 있습니다.

apt-get --reinstall install linux-image-2.6.32-5-amd64

기본적으로 대부분의 모듈이 내장되도록 하려면 다음 옵션을 변경하십시오./etc/initramfs-tools/initramfs.conf:

MODULES=most

당신은 실행할 수 있습니다업데이트-initramfs그러한 변경 사항이 적용되려면 복구 모드인 경우 OS로 chroot한 후 실행하세요. 구조 모드에는 이에 대한 메뉴 옵션이 있습니다.

관련 정보