Pagina 1 di 1
["risolto"...]Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 14:04
da Dario84
Salve ragazzi, ho un problema piuttosto grave...
allora, avevo il disco così diviso, una partizione windows, una per root e una per la cartella home. Ho voluto provare mandriva per curiosità, per cui ho creato una nuova partizioncina ridimensionando quella dedicata alla home. Ho installato la root di mandriva nella partizione nuova ed ho appoggiato la cartella home nella partizione per la home.
Ora ubuntu non mi si avvia più!!! (dice che non trova un file)
Come faccio per tornare indietro, senza dover incasinare tutto? (mandriva lo posso anche eliminare)
ps. a questo si aggiunge il fatto che la live di ubuntu non mi riconosce le varie partizioni, non so perchè...
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 14:22
da steff
Tranquillo, puoi tenere e avviare tutti e due. Posta:
e
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 14:45
da Dario84
ecco:
Codice: Seleziona tutto
dario@localhost:~$ cat /boot/grub/menu.lst
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,5)/boot/gfxmenu
default 0
title linux
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=e3510fde-bc8a-4b64-8026-2cb738b3e525 resume=UUID=6b0a31ba-d4f0-47e7-94c6-f082822b0382 splash=silent vga=788
initrd (hd0,5)/boot/initrd.img
title linux-nonfb
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=e3510fde-bc8a-4b64-8026-2cb738b3e525 resume=UUID=6b0a31ba-d4f0-47e7-94c6-f082822b0382
initrd (hd0,5)/boot/initrd.img
title failsafe
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=e3510fde-bc8a-4b64-8026-2cb738b3e525 failsafe
initrd (hd0,5)/boot/initrd.img
title windows
root (hd0,0)
makeactive
chainloader +1
title Ubuntu 8.10
root (hd0,2)
configfile /boot/grub/menu.lst
Codice: Seleziona tutto
dario@localhost:~$ mount
/dev/sda6 on / type ext3 (rw,commit=600)
none on /proc type proc (rw)
/dev/sda2 on /home type ext3 (rw,commit=600)
/dev/sda1 on /media/hd type fuseblk (rw,allow_other,blksize=4096)
/dev/sda3 on /media/hd2 type ext3 (rw,commit=600)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
dario@localhost:~$ cat /dev/disk/by
by-id/ by-path/ by-uuid/
sull'ultimo comando sei sicuro?
Codice: Seleziona tutto
dario@localhost:~$ cat /dev/disk/by-uuid/
cat: /dev/disk/by-uuid/: Is a directory
il contenuto eccolo:
Codice: Seleziona tutto
dario@localhost:/dev/disk/by-uuid$ ls
14ec4871-e884-4841-a26c-60ae04d01edc 6b0a31ba-d4f0-47e7-94c6-f082822b0382 e3510fde-bc8a-4b64-8026-2cb738b3e525
48B82F2CB82F17C8 771106cc-274d-4bdc-bfea-6ccf041b2909
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 16:15
da steff
scusa, ero imbranato, il terzo comando è:
non cat...
E posta anche
In quel file (se non ho sbagliato il percorso) trovi la voce funzionante per sostituire la voce attuale di grub che non funziona:
title Ubuntu 8.10
root (hd0,2)
configfile /boot/grub/menu.lst
se coincidono gli uuid però.
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 17:55
da Dario84
steff ha scritto:
scusa, ero imbranato, il terzo comando è:
non cat...
ecco
Codice: Seleziona tutto
dario@localhost:~$ ls -la /dev/disk/by-uuid/
totale 0
drwxr-xr-x 2 root root 140 2009-03-24 18:47 .
drwxr-xr-x 5 root root 100 2009-03-24 18:47 ..
lrwxrwxrwx 1 root root 10 2009-03-24 18:47 14ec4871-e884-4841-a26c-60ae04d01edc -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-03-24 18:47 48B82F2CB82F17C8 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-03-24 18:47 6b0a31ba-d4f0-47e7-94c6-f082822b0382 -> ../../sda5
lrwxrwxrwx 1 root root 10 2009-03-24 18:47 771106cc-274d-4bdc-bfea-6ccf041b2909 -> ../../sda3
lrwxrwxrwx 1 root root 10 2009-03-24 18:47 e3510fde-bc8a-4b64-8026-2cb738b3e525 -> ../../sda6
forse volevi dire /media/
hd2/boot/grub/menu.lst?
Codice: Seleziona tutto
dario@localhost:/$ cat /media/hd2/boot/grub/menu.lst
# 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 use 'savedefault' 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 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# 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=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=771106cc-274d-4bdc-bfea-6ccf041b2909
## 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=quiet splash
## 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=(recovery) single
# altoptions=(recovery 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 Ubuntu 8.10, kernel 2.6.27-11-generic
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 18:14
da steff
Apri il menu.lst con
e inserisci o in fondo al posto di Ubuntu o dopo windows o anche incima dopo
default 0 queste voci:
Codice: Seleziona tutto
title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=771106cc-274d-4bdc-bfea-6ccf041b2909 ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid 771106cc-274d-4bdc-bfea-6ccf041b2909
kernel /boot/memtest86+.bin
quiet
La uuid di sda3 (ubuntu) sembra essere rimasta uguale:
lrwxrwxrwx 1 root root 10 2009-03-24 18:47
771106cc-274d-4bdc-bfea-6ccf041b2909 -> ../../sda3
Se ha ancora problemi è forse perché ha cambiato quella della home
14ec4871-e884-4841-a26c-60ae04d01edc
controlla magari prima dell'avvio se in /media/hd2/etc/fstab la riga per sda2 /home contiene questa, se è diverso devi sostituirla se no non ti trova la /home.
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 18:52
da Dario84
adesso per qualche strano motivo mandriva si blocca durante l'avvio (mentre carica gnome)..., e non posso usare i comandi che mi hai detto dalla live perchè non ho i permessi.
dato che non tenevo nulla di importante sono anche disposto a reinstallare ubuntu formattando tutto, solo che la live di ubuntu non mi riconosce le partizioni! (quella di mandriva si)
come faccio?
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 19:03
da steff
I problemi vengono sempre insieme

dalla live dai
poi con ctrl+O dovrebbe aprire tutto.
In alternativa puoi provare di reinstallare grub scegliendo root (hd0,2) e setup (hd0), ti carica poi ubuntu con il vecchio menu di grub
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 19:05
da Dario84
steff ha scritto:
In alternativa puoi provare di reinstallare grub scegliendo root (hd0,2) e setup (hd0), ti carica poi ubuntu con il vecchio menu di grub
scusa la niubbagine, ma come si fa?
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 21:34
da steff
Non è giornata neanche per me... scusa che mi sono scordato di incollare il link :-[
http://wiki.ubuntu-it.org/Amministrazio ... Ripristino
Re: Ho incasinato le partizioni!
Inviato: martedì 24 marzo 2009, 23:04
da Dario84
vabbè fa nulla, tanto mi sono innervosito ed ho risolto a modo mio... Piallando tutto...

grazie per l'aiuto, gentilissimo

Re: ["risolto"...]Ho incasinato le partizioni!
Inviato: mercoledì 25 marzo 2009, 7:01
da steff
Quando non ti s'apre lo sportello butti via la macchina? Peccato...
Re: ["risolto"...]Ho incasinato le partizioni!
Inviato: mercoledì 25 marzo 2009, 17:08
da Dario84
steff ha scritto:
Quando non ti s'apre lo sportello butti via la macchina? Peccato...
lo so, ma mi serviva urgentemente, non potevo permettermi di aspettare un giorno o 2 per risolverlo...