Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Ubuntu tietokoneissa => Aiheen aloitti: Tonde - 23.08.06 - klo:23.02
-
yritin lahestya ongelmaa foorumin ohjeiden mukaan, mutta yksikaan ei nayttanyt soveltuvan minulle.
Yritin ensin kaynnistaa asennusta ja ohittaa levynhallintavaiheen formatoimatta mitaan osiota. Asennus kaatui...
Yritin asentaa mounttaamalla kiintolevyn hda1 ja tehda sille grubin uudelleenasennuksen. Koneen hda1 osiol on ntfs osio, jolle asentelin windows vistan. Grub pitaisi siis saada talle osiolle.
nain tein:
levyn mounttaus:
ubuntu@ubuntu:/media$ sudo mkdir hda1
ubuntu@ubuntu:/media$ sudo mount -t ntfs /dev/hda1 /media/hda1/
varmistetaan tuliko mountattua:
ubuntu@ubuntu:/media$ mount
unionfs on / type unionfs (rw)
proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
varrun on /var/run type tmpfs (rw)
varlock on /var/lock type tmpfs (rw)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
devshm on /dev/shm type tmpfs (rw)
lrm on /lib/modules/2.6.15-23-386/volatile type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/dev/hda1 on /media/hda1 type ntfs (rw)
yritetaan grubin uudelleenasennusta:
ubuntu@ubuntu:/media$ sudo grub-install /media/hda1
Probing devices to guess BIOS drives. This may take a long time.
Format of install_device not recognized.
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.
-h, --help print this message and exit
-v, --version print the version information and exit
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-shell=FILE use FILE as the grub shell
--no-floppy do not probe any floppy drive
--force-lba force GRUB to use LBA mode even for a buggy
BIOS
--recheck probe a device map even if it already exists
INSTALL_DEVICE can be a GRUB device name or a system device filename.
grub-install copies GRUB images into the DIR/boot directory specfied by
--root-directory, and uses the grub shell to install grub into the boot
sector.
Report bugs to <bug-grub@gnu.org>.
Mika on vialla ???
-
Yritin asentaa mounttaamalla kiintolevyn hda1 ja tehda sille grubin uudelleenasennuksen. Koneen hda1 osiol on ntfs osio, jolle asentelin windows vistan. Grub pitaisi siis saada talle osiolle.
Jos halutaan kone käynnistymään grubin avulla kovalevyltä, se asennetaan käynnistyvän levyn mbr:ään (Master Boot Record).
Oletuksena se IDE-väyläisissä laitteissa on /dev/hda (tuo /dev/hda1 on levyn ensimmäinen osio - ei siis MBR).
man grub-install (man grub).
grub-install /dev/hda tms.
-
Eipa toiminut tamakaan.. Laite on ide-vaylainen, koneessa on yksi kiintolevy.
ubuntu@ubuntu:~$ sudo grub-install /dev/hda
Could not find device for /boot: Not found or not a block device.
[ylläpito on poistanut liitteen]
-
http://easylinux.info/wiki/Ubuntu_dapper#How_to_restore_GRUB_menu_after_Windows_installation
-
hmm?
Luepas tuo, ja erityisesti posti numero 14:
https://ubuntu.wordpress.com/2005/10/20/backing-up-the-mbr/
-
hmm?
Luepas tuo, ja erityisesti posti numero 14:
https://ubuntu.wordpress.com/2005/10/20/backing-up-the-mbr/
Tässähän oli paljon hyvää asiaa.
Testaankin ensin tätä:
Actually, there is a way to do this with the standard Ubuntu CD:
1) Go through the installer as normal. However, when it gets to the screen asking for options for partitioning, STOP. Don’t go any further or you are likely to screw Ubuntu (at least).
2) Press ALT+F2. It’ll bring up a command line, press Enter to activate it if it asks.
3) Make sure you are in the root of the filesystem.
# cd /
4) Make a directory to mount your hard drive in.
# mkdir target
5) Mount your Ubuntu partition to the directory.
# mount /dev/hdax /target
where hdax is your Ubuntu partition (hda1 for those that run Ubuntu only, likely hda2 for those of us that dual-boot, possibly sdax for SATA/SCSI/RAID/etc.)
6) Change the root directory to your hard drive.
# chroot /target
7) Reinstall grub.
# grub-install /dev/hdax
8) Reboot. If everything goes well, you should be good to go.
-
Päädyin lopulta tähän ohjeeseen:
http://ubuntuguide.org/wiki/Dapper#How_to_restore_GRUB_menu_after_Windows_installation
Täällä neuvotaan käyttämään super grub disk nimistä bootti CD:tä, joka osaa luoda sekä grubin, ja muistaakseni myös windowsin mbr:n
Super Grub Diskin sivu
(http://adrian15.raulete.net/grub/tiki-index.php)