Wat gaat er fout, Debian, Win2k (LILO)

Pagina: 1
Acties:

  • Bram
  • Registratie: Oktober 1999
  • Niet online

Bram

..........

Topicstarter
Ik weet even niet meer hoe ik het volgende oplos, heb gezocht in de search maar de oplossingen daar bleken bij mij niet te helpen. Misschien dat iemand mij kan helpen


Ik heb Debian lopen en had nog een hdd met data over, die heb ik in mijn comp gestopt en via een floppy heb ik Win2k in een dir gezet.(Win2k hdd) Daarna ben ik begonnen met het installatie proces, toen moest ik opnieuw opstarten ivm installatie. Maar nu kan ik niet meer de Win2k hdd opstarten om het installatie proces te voltooien. Ik heb lilo.config aangepast, en daarna lilo gedraaid, hij zegt dat dat het is geadd. maar ik kan niet opstarten van die hdd met win2k.

Het volgende: 2 hdd's 1 hdd voor Debian en 1 voor Win2k
debian:~# cat /proc/partitions
major minor #blocks name

3 0 8901720 hda
3 1 4096574 hda1
3 2 1 hda2
3 5 3590496 hda5
3 6 1212876 hda6
22 0 60051600 hdc
22 1 1 hdc1
22 5 46082421 hdc5
22 6 13960453 hdc6
debian:~# mount
/dev/hda1 on / type ext2 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /data1 type ext2 (rw)


En hier mijn lilo.conf, ik heb ook al hdc1 en gewoon hdc geprobeerd, maar dat had geen resultaat.


debian:~# cat /etc/lilo.conf
# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# | !! Reminder !! |
# | |
# | Don't forget to run `lilo' after you make changes to this |
# | conffile, `/boot/bootmess.txt', or install a new kernel. The |
# | computer will most likely fail to boot if a kernel-image |
# | post-install script or you don't remember to run `lilo'. |
# | |
# +---------------------------------------------------------------+

# Support LBA for large hard disks.
#
lba32

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
# bios=0x81

#disk=/dev/sda
# bios=0x80

# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hda1

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=120

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
# prompt
# single-key
# delay=100
# timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=normal

# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
other=/dev/hdc5
# table=/dev/hdc1
label=win2k


#
# other=/dev/hda4
debian:~# cat /etc/lilo.conf
# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# | !! Reminder !! |
# | |
# | Don't forget to run `lilo' after you make changes to this |
# | conffile, `/boot/bootmess.txt', or install a new kernel. The |
# | computer will most likely fail to boot if a kernel-image |
# | post-install script or you don't remember to run `lilo'. |
# | |
# +---------------------------------------------------------------+

# Support LBA for large hard disks.
#
lba32

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
# bios=0x81

#disk=/dev/sda
# bios=0x80

# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hda1

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=120

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
# prompt
# single-key
# delay=100
# timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=normal

# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
other=/dev/hdc5
# table=/dev/hdc1
label=win2k


#
# other=/dev/hda4
# label=HURD
# restricted
# alias=3# label=HURD
# restricted
# alias=3

[ Voor 8% gewijzigd door Bram op 01-02-2005 11:55 ]


  • Cyphax
  • Registratie: November 2000
  • Laatst online: 21:09

Cyphax

Moderator LNX
Die 2e HD, die je nu hebt staan als hdc, kun je die wel gewoon mounten?
Waarom is het niet hdb?
Kun je vertellen hoe die 2e HD is ingedeeld? (hdc1 zou betekenen 1e primaire partitie maar hdc5 is volgens mij de eerste in een extended partitie)

[ Voor 51% gewijzigd door Cyphax op 01-02-2005 11:58 ]

Saved by the buoyancy of citrus


  • Bram
  • Registratie: Oktober 1999
  • Niet online

Bram

..........

Topicstarter
Cyphax schreef op dinsdag 01 februari 2005 @ 11:56:
Die 2e HD, die je nu hebt staan als hdc, kun je die wel gewoon mounten?
Waarom is het niet hdb?
Nee die is niet gemount, ik las ergens dat dat niet noodzakelijk is. Of moet ik die wel mounten?

Ik heb geen idee waarom de hdd hdc is, hij zit gewoon in mijn 2e ide controller.

Als ik weer even opstart met floppy en fdisk draai onder dos, heb ik de volgende partitie gegevens:

Hij zegt als ik ' Display Partition Information' doe:

Type
EXT DOS

Extended dos partition contains logical dos drives.
c:\ 45000 MB FAT32
d:\ 13000 MB FAT32

(deze hdd zat gewoon in een windows systeem, en diende als data schijf FAT32)

[ Voor 32% gewijzigd door Bram op 01-02-2005 12:05 ]


  • Flydude
  • Registratie: Mei 2003
  • Laatst online: 14-02 16:20

Flydude

Mighty pirate

Bram schreef op dinsdag 01 februari 2005 @ 11:58:
[...]


Ik heb geen idee waarom de hdd hdc is, hij zit gewoon in mijn 2e ide controller.
En dus is het hdc!

hda = master, eerste IDE
hdb = slave, eerste IDE
hdc = master, tweede IDE

Maar dat zal het probleem niet zijn. Kan je die hdc uberhaupt wel mounten vanuit Debian?

I am rubber, you are glue


  • Bram
  • Registratie: Oktober 1999
  • Niet online

Bram

..........

Topicstarter
Ik kan hdc5 gewoon mounten. Hieronder nog wat fdisk info

debian:~# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 1108 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 510 4096574+ 83 Linux
/dev/hda2 511 1108 4803435 f Win95 Ext'd (LBA)
/dev/hda5 511 957 3590496 83 Linux
/dev/hda6 958 1108 1212876 82 Linux swap

Disk /dev/hdc: 255 heads, 63 sectors, 7476 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 2 7476 60042937+ f Win95 Ext'd (LBA)
/dev/hdc5 2 5738 46082421 b Win95 FAT32
/dev/hdc6 5739 7476 13960453+ b Win95 FAT32

[ Voor 3% gewijzigd door Bram op 01-02-2005 12:15 ]


  • Flydude
  • Registratie: Mei 2003
  • Laatst online: 14-02 16:20

Flydude

Mighty pirate

Als mijn Windows-kennis mij niet volledig verlaten heeft, zou ik zeggen dat een bootable windows-partitie niet in een extended parititie mag zitten...

Ik weet het niet meer zeker, maar volgens mij zit daar je probleem.

Geeft Lilo nog wat foutmeldingen?

I am rubber, you are glue


  • Cyphax
  • Registratie: November 2000
  • Laatst online: 21:09

Cyphax

Moderator LNX
Dat was het. :)
Denkfoutje.
Flydude schreef op dinsdag 01 februari 2005 @ 12:18:
Als mijn Windows-kennis mij niet volledig verlaten heeft, zou ik zeggen dat een bootable windows-partitie niet in een extended parititie mag zitten...
Ik weet het niet meer zeker, maar volgens mij zit daar je probleem.
Geeft Lilo nog wat foutmeldingen?
En staat de partitie gemarkeerd als bootable? Dat kan cfdisk je geloof ik wel vertellen (weet niet zeker of dat geldt voor fat32 of ntfs partities hoor maar nakijken kan ook geen kwaad). :)

Saved by the buoyancy of citrus


  • Bram
  • Registratie: Oktober 1999
  • Niet online

Bram

..........

Topicstarter
Hier de info van cfdisk voor hda en hdc Bij hdc staat dus geen Boot flag, dat zou wel moeten zeker?

Name flags part/type FS type Size

hda1 BOOT, NC Primary Linux ext2
hda5 -------- Logical Linux ext2
hda6 --------- Logical Linux Swap


----- -------- Pri/Log Free space
hdc5 ------ Logical Win95 FAT32
hdc6 ------ Logical WIn95 FAT32

[ Voor 7% gewijzigd door Bram op 01-02-2005 12:38 ]


  • Bananenplant
  • Registratie: Januari 2001
  • Laatst online: 21:45
2 logical partities en geen primary 8)7

Daar zou ik het idd zoeken, volgens mij kan er in een logical drive geen boot record staan :) .

❤️‍🩹 Bezuinigen op armen en zieken 🤕 ? Welnee, Zucmantaks, nu 💰 !


  • Bram
  • Registratie: Oktober 1999
  • Niet online

Bram

..........

Topicstarter
Okay ik ben denk ik toch weer een stapje verder maar het lukt nog niet helemaal. Ik heb die hdc hdd opnieuw ingedeeld 1 primary partitie van 15 GB en een extended van 44 GB

Het probleem is nu dat als ik opstart en ik krijg LILO voor mijn neus dan heb ik 2 opties Linux en Win. Linux opstarten gaat goed ,maar win2k opstarten lukt dus nog niet. Wanneer ik die linux hdd van mijn controller afhaal en dan opstart, start Win2k wel gewoon op.

Wie heeft er een top of oplossing??? Zie ik misschien iets over het hoofd, dat moest haast wel :)

De nieuwe informatie: 2 hdd's hdd 1 9 GB Linux, hdd 2 60 GB WIn2k


debian:/# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 1108 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 510 4096574+ 83 Linux
/dev/hda2 ---- 511 1108 4803435 f Win95 Ext'd (LBA)
/dev/hda5 ---- 511 957 3590496 83 Linux
/dev/hda6 ---- 958 1108 1212876 82 Linux swap

Disk /dev/hdc: 255 heads, 63 sectors, 7476 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1913 15366141 c Win95 FAT32 (LBA)
/dev/hdc2 ---- 1914 7476 44684797+ f Win95 Ext'd (LBA)
/dev/hdc5 ---- 1914 7476 44684766 b Win95 FAT32
debian:/# mount
/dev/hda1 on / type ext2 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /data1 type ext2 (rw)
/dev/hdc1 on /win type vfat (rw)


Informatie van cfdisk:


Disk Drive: /dev/hda
Size: 9115361280 bytes
Heads: 255 Sectors per Track: 63 Cylinders: 1108

Name Flags Part Type FS Type [Label] Size (MB)
----------------------------------------------------------------------------------------------
hda1 Boot, NC Primary Linux ext2 4194.90
hda5 Logical Linux ext2 3676.71
hda6 Logical Linux swap 1242.02


Disk Drive: /dev/hdc
Size: 61492838400 bytes
Heads: 255 Sectors per Track: 63 Cylinders: 7476

Name Flags Part Type FS Type [Label] Size (MB)
----------------------------------------------------------------------------------------------
hdc1 Boot Primary Win95 FAT32 (LBA) 15734.97
hdc5 Logical Win95 FAT32 45757.24


Informatie van lilo.conf


# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
other=/dev/hdc1
label=Win

[ Voor 96% gewijzigd door Bram op 02-02-2005 12:46 ]


  • Bram
  • Registratie: Oktober 1999
  • Niet online

Bram

..........

Topicstarter
Ik heb even mijn vorige bericht van gisteren aangepast met nieuwe info, maar zie nu dat ik dan niet boven aan kom.

Dus even een nieuw berichtje , zodat mijn topic weer bovenaan komt. De nieuwe informatie staat hierboven. (btw ik neem aan dat dit mag? )

  • Flydude
  • Registratie: Mei 2003
  • Laatst online: 14-02 16:20

Flydude

Mighty pirate

Sja.. De simpelste oplossing is het verwisselen van de harddisks, zodat je windowsschijf op hda1 komt en je linux schijf op hdc1. Volgens mij doet Windows in dit geval moeilijk omdat-ie z'n bootrecord niet in de MBR van de eerste HDD in het systeem ziet. Ofzo...

In dat geval moet je wel Lilo opnieuw installeren, zodat lilo naar de goede partities blijft kijken.

Maar wellicht kan je ook een MS-certified bootloader op die hdc1 zetten. Deze kan je dan aanroepen met Lilo, zodat je een soort tweetrapsboot naar windows krijgt.

Makkelijk is anders, maar Windows staat er dan ook niet om bekend enorm vriendelijk met andere OS' en om te gaan....

I am rubber, you are glue


  • Bram
  • Registratie: Oktober 1999
  • Niet online

Bram

..........

Topicstarter
Nou ik heb het voor elkaar, heb debian er weer afgegooid. En toen hdd omgewisseld, Win2k op controller 1 en Debian op controller 2. Daarna Debian er opnieuw opgezet.

En toen LILO de boel laten regelen, ik krijg nu LILO en kan daar kiezen voor Debian of Win2k.


Bedankt voor de reacties!!!!!
Pagina: 1