QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1505|回复: 13

debian找不到硬盘了怎么办?

[复制链接]
发表于 2004-10-6 19:29:33 | 显示全部楼层 |阅读模式
从网上下了一个7M多的mini.iso,结果到分区那一步的时候就提示找不到硬盘
可奇怪的是我以前的时候就可以,为什么啊?
 楼主| 发表于 2004-10-6 21:13:09 | 显示全部楼层
刚才又看了一下,它在探测硬件那一步说无法加载和ide有关的几个模块,跳过去了,
我进入shell想手动加载modprob ide-mod又说module not found,我该怎么办?
回复

使用道具 举报

发表于 2004-10-7 16:35:48 | 显示全部楼层
有虚拟机的话可以先在上面测试一下,你的不是sata的硬盘的吧,可以的话,给个下载那个iso的链接。
回复

使用道具 举报

 楼主| 发表于 2004-10-7 19:16:26 | 显示全部楼层
我有两块硬盘,不是sata的,那个iso在:
http://ftp.jp.debian.org/debian/dists/unstable/main/installer-i386/current/images/netboot/mini.iso
回复

使用道具 举报

发表于 2004-10-7 20:43:10 | 显示全部楼层
是netboot的??
回复

使用道具 举报

发表于 2004-10-7 21:03:25 | 显示全部楼层
难怪,它可能只负责引导,不负责安装吧,所以当找不到安装映像时,就会是找不到硬盘的。
回复

使用道具 举报

 楼主| 发表于 2004-10-7 21:54:18 | 显示全部楼层
可它没提示找不到安装映像啊,而且以前是可以安装上的
回复

使用道具 举报

发表于 2004-10-7 22:24:33 | 显示全部楼层
我觉的你上面的那张iso是放在netboot下面的,这点比较可疑,以前装上的时候你有几块硬盘?
回复

使用道具 举报

 楼主| 发表于 2004-10-8 11:25:48 | 显示全部楼层
也是两块啊

上哪可以下有比较新的内核的安装镜像?我想网络安装,也不想重编内核.
回复

使用道具 举报

发表于 2004-10-8 16:56:55 | 显示全部楼层
如果你上面有win的的话试试这个,有linux的话看一下官方的手册,还可以用chroot的方法
免光软的Debian最简硬盘安装法(BF2.4)


先下载这些文件:
http://debian.cn99.com/debian/dists/Debian3.0r2/main/disks-i386/current/images-1.44/bf2.4/rescue.bin
http://debian.cn99.com/debian/dists/Debian3.0r2/main/disks-i386/current/images-1.44/bf2.4/root.bin
http://debian.cn99.com/debian/dists/Debian3.0r2/main/disks-i386/current/images-1.44/bf2.4/kernel-config
http://debian.cn99.com/debian/dists/Debian3.0r2/main/disks-i386/current/bf2.4/linux.bin
http://debian.cn99.com/debian/dists/Debian3.0r2/main/disks-i386/current/bf2.4/drivers.tgz
http://linuxcn.org/soft/others/loadlin.exe
然后把这些文件按照这样的目录形式摆放好:(假设我们放在c:\debian)
c:\debian\images-1.44\bf2.4\kernel-config
c:\debian\images-1.44\bf2.4\rescue.bin
c:\debian\images-1.44\bf2.4\root.bin
c:\debian\loadlin.exe
c:\debian\bf2.4\linux.bin
c:\debian\bf2.4\drivers.tgz

再建立一个install.bat文件,放在c:\debian\下,内容如下:
loadlin bf2.4/linux.bin root=/dev/ram initrd=images-1.44/bf2.4/root.bin disksize=1.44 flavor=bf2.4

如果基本系统不想用网络安装,那么还要下载
http://debian.cn99.com/debian/dists/stable/main/disks-i386/base-images-current/basedebs.tar
放置为:c:\debian\basedebs.tar


包做好了,要安装,进入DOS方式,进入c:\debian目录,执行install就可以了
回复

使用道具 举报

发表于 2004-10-8 17:02:12 | 显示全部楼层
3.7. Installing Debian GNU/Linux from a Unix/Linux System
---------------------------------------------------------

     This section explains how to install Debian GNU/Linux from an existing
     Unix or Linux system, without using the ncurses-based, menu-driven
     installer as explained in the rest of the manual.  This
     "cross-install" HOWTO has been requested by users switching to Debian
     GNU/Linux from Redhat, Mandrake, and SUSE.  In this section some
     familiarity with entering *nix commands and navigating the file system
     is assumed.  In this section, `$' symbolizes a command to be entered
     in the user's current system, while `#' refers to a command entered in
     the Debian chroot.

     Once you've got the new Debian system configured to your preference,
     you can migrate your existing user data (if any) to it, and keep on
     rolling.  This is therefore a "zero downtime" Debian GNU/Linux
     install.  It's also a clever way for dealing with hardware that
     otherwise doesn't play friendly with various boot or installation
     media.

3.7.1. Getting Started
----------------------

     With your current *nix partitioning tools, repartition the hard drive
     as needed, creating at least one filesystem plus swap.  You need at
     least 150MB of space available for a console only install, or at least
     300MB if you plan to install X.

     To create file systems on your partitions.  For example, to create an
     ext3 file system on partition `/dev/hda6' (that's our example root
     partition):

           $ mke2fs -j /dev/hda6

     To create an ext2 file system instead, omit `-j'.

     Initialize and activate swap (substitute the partition number for your
     intended Debian swap partition):

           $ mkswap /dev/hda5
           $ sync; sync; sync
           $ swapon /dev/hda5

     Mount one partition as `/mnt/debinst' (the installation point, to be
     the root (`/') filesystem on your new system).  The mount point name
     is strictly arbitrary, it is referenced later below.

           $ mkdir /mnt/debinst
           $ mount /dev/hda6 /mnt/debinst

3.7.2. Install `debootstrap'
----------------------------

     The tool that the Debian installer uses, which is recognized as the
     official way to install a Debian base system, is `debootstrap'.  It
     uses `wget', but otherwise depends only on `glibc'.  Install `wget' if
     it isn't already on your current system, then download and install
     `debootstrap'.

     If you have an rpm-based system, you can use alien to convert the .deb
     into .rpm, or download an rpm-ized version at
     http://people.debian.org/~blade/install/debootstrap

     Or, you can use the following procedure to install it manually.  Make
     a work folder for extracting the .deb into:

           $ mkdir work
           $ cd work

     The `debootstrap' binary is located in the Debian archive (be sure to
     select the proper file for your architecture).  Download the
     `debootstrap' .deb from the pool
     (http://ftp.debian.org/debian/pool/main/d/debootstrap/), copy the
     package to the work folder, and extract the binary files from it.  You
     will need to have root privileges to install the binaries.

           $ ar -xf debootstrap_0.X.X_arch.deb
           $ cd /
           $ zcat < /full-path-to-work/work/data.tar.gz | tar xv

     The current version of `debootstrap', at least for i386, has been
     compiled with glibc 2.3.  Therefore if you are upgrading from Redhat
     6.0, you will need to obtain the source files and re-compile.

3.7.3. Run `debootstrap' (Network-connected)
--------------------------------------------

     `debootstrap' can download the needed files directly from the archive
     when you run it.  You can substitute any Debian archive mirror for
     `http.us.debian.org/debian' in the command example below, preferably a
     mirror close to you network-wise.  Mirrors are listed at
     http://www.debian.org/misc/README.mirrors.

     When running `debootstrap', the PATH needs to include `/usr/sbin' and
     `/sbin' for subsidiary program calls.

     If you have a woody version Debian GNU/Linux CD mounted at /cdrom, you
     could substitute a file URL instead of the http URL:
     `file:/cdrom/debian/'

     Substitute one of the following for `ARCH' in the `debootstrap'
     command: `alpha', `arm', `hppa', `i386', `ia64', `m68k', `mips',
     `mipsel', `powerpc', `s390', or `sparc'.

           $ /usr/sbin/debootstrap --arch ARCH woody \
               /mnt/debinst http://http.us.debian.org/debian

3.7.4. Run `debootstrap' (Using `basedebs.tar')
-----------------------------------------------

     `debootstrap' can use the `basedebs.tar' file, if you have already
     downloaded it ahead of time.  The `basedebs.tar' file is generated
     only every once in a while, so you'll get the latest version of the
     base system by pointing `debootstrap' directly to a Debian archive as
     shown in the previous section.

     The `basedebs.tar' file is found in the `base-images-current'
     directory of the Debian archive for your architecture, for example:
     http://http.us.debian.org/debian/dists/woody/main/disks-i386/base-images-current/basedebs.tar

     Substitute one of the following for `ARCH' in the `debootstrap'
     command: `alpha', `arm', `hppa', `i386', `ia64', `m68k', `mips',
     `mipsel', `powerpc', `s390', or `sparc'.

          $ /usr/sbin/debootstrap --arch ARCH --unpack-tarball \
              /path-to-downloaded/basedebs.tar woody /mnt/debinst

3.7.5. Configure The Base System
--------------------------------

     Now you've got a real Debian system, though rather lean, on disk.
     `Chroot' into it:

           $ chroot /mnt/debinst /bin/bash

3.7.5.1. Mount Partitions
-------------------------

     You need to create `/etc/fstab'.

           # editor /etc/fstab

     Here is a sample you can modify to suit:

# /etc/fstab: static file system information.
#
# file system    mount point   type    options                  dump pass
/dev/XXX         /             ext2    defaults                 0    0
/dev/XXX         /boot         ext2    ro,nosuid,nodev          0    2

/dev/XXX         none          swap    sw                       0    0
proc             /proc         proc    defaults                 0    0

/dev/fd0         /mnt/floppy   auto    noauto,rw,sync,user,exec 0    0
/dev/cdrom       /mnt/cdrom    iso9660 noauto,ro,user,exec      0    0

/dev/XXX         /tmp          ext2    rw,nosuid,nodev          0    2
/dev/XXX         /var          ext2    rw,nosuid,nodev          0    2
/dev/XXX         /usr          ext2    rw,nodev                 0    2
/dev/XXX         /home         ext2    rw,nosuid,nodev          0    2

     Use `mount -a' to mount all the file systems you have specified in
     your `/etc/fstab', or to mount file systems individually use:

           # mount /path  # e.g.:  mount /usr

     You can mount the proc file system multiple times and to arbitrary
     locations, though /proc is customary.  If you didn't use `mount -a',
     be sure to mount proc before continuing:

           # mount -t proc proc /proc

     A RedHat user reports that for his system, this should instead be

           # mount -t proc none /proc

3.7.5.2. Configure Keyboard
---------------------------

     To configure your keyboard:

           # dpkg-reconfigure console-data

3.7.5.3. Configure Networking
-----------------------------

     To configure networking, edit `/etc/network/interfaces',
     `/etc/resolv.conf', and `etc/hostname'.

           # editor /etc/network/interfaces

     Here are some simple examples from `/usr/share/doc/ifupdown/examples':

######################################################################
# /etc/network/interfaces -- configuration file for ifup(, ifdown(
# See the interfaces(5) manpage for information on what options are
# available.
######################################################################

# We always want the loopback interface.
#
auto lo
iface lo inet loopback

# To use dhcp:
#
# auto eth0
# iface eth0 inet dhcp

# An example static IP setup: (broadcast and gateway are optional)
#
# auto eth0
# iface eth0 inet static
#     address 192.168.0.42
#     network 192.168.0.0
#     netmask 255.255.255.0
#     broadcast 192.168.0.255
#     gateway 192.168.0.1

     Enter your nameserver(s) and search directives in `/etc/resolv.conf':

           # editor /etc/resolv.conf

     A simple `/etc/resolv.conf':

          # search hqdom.local\000
          # nameserver 10.1.1.36
          # nameserver 192.168.9.100

     Enter your system's host name (2 to 63 characters):

           # echo DebianHostName > /etc/hostname

     If you have multiple network cards, you should arrange the names of
     driver modules in the `/etc/modules' file into the desired order.
     Then during boot, each card will be associated with the interface name
     (eth0, eth1, etc.) that you expect.

3.7.5.4. Configure Timezone, Users, and APT
-------------------------------------------

     Set your timezone, add a normal user, and choose your `apt' sources by
     running

           # /usr/sbin/base-config

3.7.5.5. Configure Locales
--------------------------

     To configure your locale settings to use a language other than
     English, install the locales support package and configure it:

           # apt-get install locales
           # dpkg-reconfigure locales

     NOTE: Apt must be configured before, ie.  during the base-config
     phase.  Before using locales with character sets other than ASCII or
     latin1, please consult the appropriate localisation HOWTO.

3.7.6. Install a Kernel
-----------------------

     If you intend to boot this system, you probably want a Linux kernel
     and a boot loader.  Identify available pre-packaged kernels with

           # apt-cache search kernel-image

     Then install your choice using its package name.

           # apt-get install kernel-image-2.X.X-arch-etc

3.7.7. Set up the Boot Loader
-----------------------------

     To make your Debian GNU/Linux system bootable, set up your boot loader
     to load the installed kernel with your new root partition.

     Check `man lilo.conf' for instructions on setting up the bootloader.
     If you are keeping the system you used to install Debian, just add an
     entry for the Debian install to your existing lilo.conf.  You could
     also copy it to the new system and edit it there.  After you are done
     editing, call lilo (remember it will use lilo.conf relative to the
     system you call it from).

     Here is a basic /etc/lilo.conf as an example:

          boot=/dev/hda6
          root=/dev/hda6
          install=/boot/boot-menu.b
          delay=20
          lba32
          image=/vmlinuz
          label=Debian

这是官方的资料,good luck
回复

使用道具 举报

 楼主| 发表于 2004-10-9 12:35:49 | 显示全部楼层
呵呵,还是找了个heewod debian安上了
回复

使用道具 举报

发表于 2004-10-10 08:18:00 | 显示全部楼层
对,我也出现了这种情况!我以前一直用netboot下的vmlinuz和initrd.gz来引导网络安装,现在到了分区那一步就显示找不到硬盘,我的硬盘是IDE的
回复

使用道具 举报

发表于 2004-12-19 18:01:00 | 显示全部楼层
我用那中 install.bat 的方法,机器老是自动重启
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-5 04:41 , Processed in 0.050630 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表