PDA

Επιστροφή στο Forum : Ubuntu, XP, lilo και προβλήματα



Φανερός Πράκτωρ
22-09-05, 00:02
Λοιπόν παιδιά χρειάζομαι την βοήθειά σας διότι έχω αρχίσει να χάνω την υπομονή μου. Έχω ένα σύστημα που έχει έναν σκληρό 80 Gb. Τον έχω χωρίσει σε 4 τμήματα. Το πρώτο περιέχει τα win xp, τα άλλα 2 είναι ntfs για αποθήκευση δεδομένων και στο τελευταίο είπα να βάλω το ubuntu. Όλα καλά μέχρι εδώ. Το ζήτημα είναι ότι κατά την πλήρη εγκατάσταση του ubuntu προέκυψε πρόβλημα με τον lilo. Το πρόβλημα είναι ότι δεν είδε τα win (ή μάλλον τα είδε μερικώς) που ήταν το μόνο bootable σύστημα πριν από αυτό. Το αποτέλεσμα είναι να κάνει boot κατευθείαν σε linux μια που έχω βάλει τον lilo στο MBR (που να φανταστώ ότι θα έκανε τέτοια δουλειά).
Το ζήτημα είναι ότι πάω System -> Administration -> Boot για να ρυθμίσω τον lilo άλλα ότι και να κάνω εκεί δεν έχει ιδιαίτερο αποτέλεσμα. Επειδή πειραματίστηκα λίγο με το αρχείο του lilo (/etc/lilo.conf) παρατήρησα ότι όταν πάω να εκτελέσω ως root την εντολή lilo για να καταλάβει τις αλλαγές τότε παίρνω το εξής “όμορφο μήνυμα” :
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/dm-0' -> '/dev/dm'
device-mapper ioctl cmd 12 failed: No such device or address
Fatal: device-mapper: dm_task_run(DM_DEVICE_TABLE) failed
Βοήθεια!!!! :(

Φανερός Πράκτωρ
22-09-05, 00:08
Επιπλέον πληροφορίες για τα partitions

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 9729 67906755 f W95 Ext'd (LBA)
/dev/hda5 1276 5099 30716248+ 7 HPFS/NTFS
/dev/hda6 5100 8668 28667961 7 HPFS/NTFS
/dev/hda7 8669 9729 8522451 8e Linux LVM

και έβαλα το Ubuntu 5.10 "Breezy Badger" - Preview i386

aeolist
22-09-05, 02:31
γιατί έβαλες lilo;

grab grub.... χλα-χλα

sandman
22-09-05, 02:46
Δώσε μας τα περιεχόμενα το lilo.conf και ίσως κάτι βρούμε. Αλλά καλύτερα βάλε grub αν είναι εύκολο

Φανερός Πράκτωρ
22-09-05, 09:17
Και εγώ grub ήθελα να βάλω (νομίζω αυτόν είχα και στο suse μου) αλλά όταν ήρθε η κρίσιμη ώρα της εγκατάστασης του bootloader ανέφερε μόνο τον lilo (ενώ πριν έλεγε και για εγκατάσταση grub). Μπορώ να εγκαταστήσω τον grub, μια που το έκανα χθες αλλά θα χρειαστώ λίγη βοήθεια για το πως θα τον βάλω στο MBR. Το προσπάθησα και αυτό χθές (αλλαγή του lilo με grub) αλλά είχα ένα πρόβλημα με τις ρυθμίσεις του και δεν το έψαξα πολύ. Λοιπόν το 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' (if you have created it), 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'. |
# | |
# +---------------------------------------------------------------+

# 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/mapper/Ubuntu-root

# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only

# 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: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
#install=menu

# 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=40

# 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
# delay=100
# timeout=100

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


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

# If you used a serial console to install Ubuntu, this option should be
# enabled by default.
# serial=

#
# Boot up Linux by default.
#
default=Windows
timeout = 40
prompt

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

initrd=/initrd.img

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

initrd=/initrd.img.old


# 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/hda4
# label=HURD

Και όπως βλέπετε αναφορά για εγγραφή σε windows δε γίνεται πέρα από το ότι θα είναι η default επιλογή


default=Windows
timeout = 40
prompt

Το πιο ωραίο είναι ότι πριν από μερικά boot υπήρχε και label με windows έγγραφη...
Πάω στο System->Administration->Boot και βάζω ξανά τα windows στο boot menu και τώρα το 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' (if you have created it), 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'. |
# | |
# +---------------------------------------------------------------+

# 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/mapper/Ubuntu-root

# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only

# 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: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
#install=menu

# 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=30

# 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
# delay=100
# timeout=100

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


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

# If you used a serial console to install Ubuntu, this option should be
# enabled by default.
# serial=

#
# Boot up Linux by default.
#
default=Linux
timeout = 30
prompt

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

initrd=/initrd.img

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

initrd=/initrd.img.old


# 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/hda4
other = /dev/hda1
label = Windows

πάω να τρέξω το lilo για να καταλάβει τις αλλαγές και όπως σας είπα:


sudo lilo
Password:
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/dm-0' -> '/dev/dm'
device-mapper ioctl cmd 12 failed: No such device or address
Fatal: device-mapper: dm_task_run(DM_DEVICE_TABLE) failed

κοιτάζω το partitions


cat /proc/partitions
major minor #blocks name

3 0 78150744 hda
3 1 10241406 hda1
3 2 1 hda2
3 5 30716248 hda5
3 6 28667961 hda6
3 7 8522451 hda7
254 0 8134656 dm-0
254 1 385024 dm-1
254 2 10241406 dm-2
254 3 30716248 dm-3
254 4 28667961 dm-4
254 5 8522451 dm-5
254 6 8134656 dm-6
254 7 385024 dm-7

και βλέπω ότι έχει δίκιο...Στο /dev υπάρχουν τα εξής:

ls /dev/dm*
/dev/dm /dev/dmmidi

Τι κάνω από εδώ και πέρα;

Από ότι είδα το 5.10 είναι preview. Αυτό σημαίνει μάλλον ότι είναι ακόμα σε πειραματικό στάδιο... Εγώ χρειάζομαι ένα σταθερό σύστημα για να κάνω την δουλειά μου και όχι να πειραματίζομαι (ειδικά με το MBR – που νόμιζα ότι ήξερα τι έκανα). Μήπως να βάλω το Ubuntu 5.04 "The Hoary Hedgehog" τώρα που δεν είναι κανένας ιδιαίτερος κόπος;

Φανερός Πράκτωρ
22-09-05, 16:00
Γεια σας παιδιά! Λοιπόν, έβαλα τελικα το Ubuntu Linux 5.04 και όλα πήγαν μια χαρά. Έγκατέστησε τον Grub και τώρα δουλεύουν όλα ρολόι. Ευχαριστώ για το ενδιαφέρον!

@ ADSLgr.com All rights reserved.