Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2009-12-12 13:41:32

  korbol - Członek DUG

korbol
Członek DUG
Zarejestrowany: 2005-04-29

Latwe odzyskanie gruba po intsalacji windy.

Bede przeinstalowywał winde i chciałem miec gruba na dyskietce wraz z menu.lst (kiedyś chyba mi sięto udało)
Takie sposoby nie działają:

Zaloguj się jako root

   1. mke2fs /dev/fd0
   2. mount -t ext2 /dev/fd0 /mnt/floppy
   3. mkdir /mnt/floppy/boot
   4. cp -R /boot/grub /mnt/floppy/boot
   5. umount /mnt/floppy
   6. odpal interfejs linii komend GRUBa i wykonaj: root (fd0)

Wychodzi brak miejsca na dysku.

Natomiast przy tym:

1. mke2fs /dev/fd0 (utworzenie systemu plików ext2 na dyskietce)
   2. mount -t ext2 /dev/fd0 /mnt/floppy (zamontowanie dyskietki na /mnt/floppy)
   3. grub-install --root-directory=/mnt/floppy fd0 (instalacja GRUBa i utworzenia katalogu /boot/grub na dyskietce)
   4. cp /boot/grub/menu.lst /mnt/floppy/boot/grub/ (skopiowanie menu.lst)
   5. umount /mnt/floppy (dyskietka jest gotowa, zdemontowanie ją)

wywala się na  (3) poleceniu tkaim bledem:

Kod:

# grub-install --root-directory=/media/floppy fd0
/usr/sbin/grub-probe: error: Cannot stat `fd0'
Invalid device `fd0'.
Try ``/usr/sbin/grub-setup --help'' for more information.

Ja to montowałem w /media/floppy stąd odmienne ścieżki.

Grub na dyskietce z menu.lst mnie najbardziej satysfacjonuje aby się nie plątac z komendami.
Da się coś z tym zrobić?


Pozdrawiam

Offline

 

#2  2009-12-12 14:10:26

  raven18 - Użytkownik

raven18
Użytkownik
Skąd: /home
Zarejestrowany: 2009-01-30

Re: Latwe odzyskanie gruba po intsalacji windy.


Windows 8.1

Offline

 

#3  2009-12-12 14:44:45

  korbol - Członek DUG

korbol
Członek DUG
Zarejestrowany: 2005-04-29

Re: Latwe odzyskanie gruba po intsalacji windy.

Nie wchodzi mi ta strona bo od dluzszego czasu niemam odstepu do roznych stron z powodu awarii rutera albo neta.
Czy jest ajkis sposob dyskietkowy?
Przez przypadek zainstaloalem sobie nowego gruba i o zgrozo nie działają standardowe schematy polecen z lini polecen gruba wystartowanego z dyskietki.


Pozdrawiam

Offline

 

#4  2009-12-12 15:31:32

  korbol - Członek DUG

korbol
Członek DUG
Zarejestrowany: 2005-04-29

Re: Latwe odzyskanie gruba po intsalacji windy.

słuchajcie już mi ręce opadają nie mogę uporac się z tym od rana, a musze ta winde pilnie przeinstalwoac.
Prosiłbym aby ktoś napisał jak nagrac tego gruba już w jakikolwiek sposobnawet bez menu.lst, niech bedzie ta linia poleceń.
Dodatkowo jak wystartowac debiana z  tej dyskietki z grubem. Mój grub to wersja 1.97 jajko ktore chce wystartować to 2.6.25-2.486
Debian jest na /dev/sda6 oto menu.lst:

Kod:

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout        5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title        Windows 95/98/NT/2000
# root        (hd0,0)
# makeactive
# chainloader    +1
#
# title        Linux
# root        (hd0,1)
# kernel    /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda6 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title        Chainload into GRUB 2
root        (hd0,5)
kernel        /boot/grub/core.img

title        ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
root
        
title        When you have verified GRUB 2 works, you can use this command to
root

title        complete the upgrade:  upgrade-from-grub-legacy
root

title        ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
root

title        Debian GNU/Linux, kernel 2.6.25-2-486
root        (hd0,5)
kernel        /boot/vmlinuz-2.6.25-2-486 root=/dev/sda6 ro 
initrd        /boot/initrd.img-2.6.25-2-486

title        Debian GNU/Linux, kernel 2.6.25-2-486 (single-user mode)
root        (hd0,5)
kernel        /boot/vmlinuz-2.6.25-2-486 root=/dev/sda6 ro single
initrd        /boot/initrd.img-2.6.25-2-486

title        Debian GNU/Linux, kernel 2.6.18-4-486
root        (hd0,5)
kernel        /boot/vmlinuz-2.6.18-4-486 root=/dev/sda6 ro 
initrd        /boot/initrd.img-2.6.18-4-486

title        Debian GNU/Linux, kernel 2.6.18-4-486 (single-user mode)
root        (hd0,5)
kernel        /boot/vmlinuz-2.6.18-4-486 root=/dev/sda6 ro single
initrd        /boot/initrd.img-2.6.18-4-486

### END DEBIAN AUTOMAGIC KERNELS LIST

a to grub.cfg:

Kod:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set ddcf0220-372b-44a6-95e6-41e20e7ee14f
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
set locale_dir=/boot/grub/locale
set lang=pl
insmod gettext 
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.25-2-486" {
    insmod ext2
    set root=(hd0,6)
    search --no-floppy --fs-uuid --set ddcf0220-372b-44a6-95e6-41e20e7ee14f
    linux    /boot/vmlinuz-2.6.25-2-486 root=UUID=ddcf0220-372b-44a6-95e6-41e20e7ee14f ro  quiet
    initrd    /boot/initrd.img-2.6.25-2-486
}
menuentry "Debian GNU/Linux, with Linux 2.6.25-2-486 (recovery mode)" {
    insmod ext2
    set root=(hd0,6)
    search --no-floppy --fs-uuid --set ddcf0220-372b-44a6-95e6-41e20e7ee14f
    linux    /boot/vmlinuz-2.6.25-2-486 root=UUID=ddcf0220-372b-44a6-95e6-41e20e7ee14f ro single 
    initrd    /boot/initrd.img-2.6.25-2-486
}
menuentry "Debian GNU/Linux, with Linux 2.6.18-4-486" {
    insmod ext2
    set root=(hd0,6)
    search --no-floppy --fs-uuid --set ddcf0220-372b-44a6-95e6-41e20e7ee14f
    linux    /boot/vmlinuz-2.6.18-4-486 root=UUID=ddcf0220-372b-44a6-95e6-41e20e7ee14f ro  quiet
    initrd    /boot/initrd.img-2.6.18-4-486
}
menuentry "Debian GNU/Linux, with Linux 2.6.18-4-486 (recovery mode)" {
    insmod ext2
    set root=(hd0,6)
    search --no-floppy --fs-uuid --set ddcf0220-372b-44a6-95e6-41e20e7ee14f
    linux    /boot/vmlinuz-2.6.18-4-486 root=UUID=ddcf0220-372b-44a6-95e6-41e20e7ee14f ro single 
    initrd    /boot/initrd.img-2.6.18-4-486
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
    insmod fat
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set b44a-9f44
    drivemap -s (hd0) ${root}
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Po zainstalowaniu gruba w jakiś dziwaczny sposob na dyskietce robiłem bo zbootowaniu gruba z dyskietki:
root (hd0,5) [enter]
kernel /boot/vmlinuz-2.6.25-2-486 root=/dev/sda6 ro [enter]
i wywala kernel panic,a jestem rpawie pewien ze kiedys probowalem tego sposobu n apoprzedni grubie i on działał :/

W katalogu /boo/ siedzi mi rowniez initdr.img-2.6.25-2-486.

Pozdrawiam.



Edit:

wymysliłem! zadziałało  kernel /boot/grub/core.img i wczytuje liste z systemami, aleeeee namieszane!!!!! tylko dlaczego mi normlanie nie chcialo zrobic tak jak to opisałem u góry?

Ostatnio edytowany przez korbol (2009-12-12 15:38:46)


Pozdrawiam

Offline

 

#5  2009-12-12 15:50:46

  Bodzio - Ojciec Założyciel

Bodzio
Ojciec Założyciel
Skąd: Gorlice
Zarejestrowany: 2004-04-17
Serwis

Re: Latwe odzyskanie gruba po intsalacji windy.

Matko Boska, czemu sobie życie utrudniasz. Musi być dyskietka ? - się uparłeś a nowe kompy są już bez stacji dyskietek.
Ściągnij knoppixa lub jakiekolwiek live i ......
http://stary.dug.net.pl/faq/index.php


Debian jest lepszy niż wszystkie klony
Linux register users: #359018
http://www.freebsd.org/gifs/powerlogo.gif
Beskid Niski

Offline

 

#6  2009-12-12 16:30:21

  marg1 - Gentoowy Głupek

marg1
Gentoowy Głupek
Skąd: Bytom
Zarejestrowany: 2009-05-15

Re: Latwe odzyskanie gruba po intsalacji windy.

Też tak myślałem, ale nie chciałem już nic mówić, może nie o to chodziło. Nie dawno przywracałem gruba2 na dugu jest o tym art.


marg1@jid.dug.net.pl
Linux User Registration Number: #488674
CISCO CCNA Alumni :)

Offline

 

#7  2009-12-12 19:32:00

  korbol - Członek DUG

korbol
Członek DUG
Zarejestrowany: 2005-04-29

Re: Latwe odzyskanie gruba po intsalacji windy.

A bo jak se coś ubzduram to sie zawsze w cos wpakuje :]
Pozdrawiam.


Pozdrawiam

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)