Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] Spostare partizione di Root gentoo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Tue Oct 03, 2017 11:59 pm    Post subject: [Risolto] Spostare partizione di Root gentoo Reply with quote

Ciao ragazzi, visto che tutte le discussioni che ho trovato sono vecchie, oppure parlano di installazione apro questo thread.
Io ho gentoo, in precedenza avevo anche arch in dualboot, con un ssd ed un hdd.
La mia situazione era: sdb1 /Arch, sdb /gentoo su ssd, poi su hdd ho sda1 efi, sda6 swap ed sda7 /home condivisa tra gentoo ed arch.
Ora, ho eliminato arch, quindi uso solo gentoo, ma la sua root è la partizione di destra e come ben sapete non si può ridimensionare verso sinistra.
C'è un qualche sistema per spostare la Root verso sinistra, senza rischio di perdita dati? Chiaramente poi dovrei sistemare grub ed fstab


Last edited by zar Marco on Mon Oct 09, 2017 9:10 am; edited 1 time in total
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Wed Oct 04, 2017 6:50 am    Post subject: Reply with quote

Hai provato con una live, tipo SystemRescueCd , e spostare con gparted?

io una volta cosi ho ridimensionato la root creando uno spazio Libero e che poi ho usato per allargare la partzione di boot...al riavvio é partito tutto normalmente...

non so se fa al tuo caso...meglio un backup prima...
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Wed Oct 04, 2017 10:43 am    Post subject: Reply with quote

se la tua partizione da spostare è l'ultima , la devi spostare verso sinistra passando tra le altre partizioni finchè non la posizioni dove ti interessa per il ridimensonamento.
ho fatto di recente la stessa cosa con dello spazio libero che avevo per la partizione di backup che si stava riempendo.

Ovviamente devi avere almeno qualche bytes di spazio libero e le partizioni devono essere smontate.

si raccomanda :

- Backup dati e/o cloning dello stato attuale del disco
- Tutte le partizioni interessate devono essere smontate
- Gparted per comodità
- SystemrescueCD che ha tuitto il necessario ed è basata su Gentoo...
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Wed Oct 04, 2017 11:09 am    Post subject: Reply with quote

Tra poco posto l'esatto componimento del mio fdisk. Comunque devo spostarlo verso sinistra in un ssd diviso in due sole partizioni, una libera tra poco
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Wed Oct 04, 2017 12:36 pm    Post subject: Reply with quote

Ciao, allora questo è l'esatto componimento dell'ssd con la root di gentoo
Code:
Disk /dev/sdb: 223,6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x565613c9

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1            2048 146802687 146800640    70G 83 Linux
/dev/sdb2  *    251660288 468860927 217200640 103,6G 83 Linux


sdb1 è una partizione che posso/devo eliminare, quindi in fine devo solo spostare. Ma è una procedura lunga e/o problematica?
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Wed Oct 04, 2017 1:21 pm    Post subject: Reply with quote

Secondo me, tenendo conto delle raccomandazioni di sabayonino, la puoi tranquillamente spostare con gparted avviando con SytemrescueCd.
Chiaramente diventerá sdb1 e ti dovrai assicura che mantenga il flag a boot


Per i tempi dipende da quanto é piena sdb2
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Wed Oct 04, 2017 1:26 pm    Post subject: Reply with quote

Ma soprattutto
sabayonino wrote:
- Backup dati e/o cloning dello stato attuale del disco

:D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Thu Oct 05, 2017 3:41 am    Post subject: Reply with quote

Quindi, in pratica, faccio un backup (posso farlo direttamente da systemrescue?) poi con gparted clono?
Clonandolo dovrebbe spostarsi anche il flag boot no?
Ultima cosa, dovrò reinstallare anche grub immagino giusto?

Code:
 cloning dello stato attuale del disco

Questa parte non mi è chiarissima
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Thu Oct 05, 2017 6:50 am    Post subject: Reply with quote

Presumo sia fare una Copia dll´intero Disco compresa la struttue
chiaramente ti serve un altro HD per la Copia del buckup almeno della stessa dimensione

lo puoi fare anche con dd da un terminale da Systemrescue, dai un occhio qua:
https://wiki.archlinux.org/index.php/disk_cloning

opp redoBackup
http://redobackup.org/



non penso ci sia bisogno di reistallare grumb...

Comunq io per evitare sorprese farei una Cosa maccheronica:

ridimensionerei sdb1 di 500mb tipo...e mi sposterei e ridimensionerei sdb2

Per il flag (*) boot te ne assicuri con fdisk...se non é presente
Code:
fdisk /dev/sdb
a
Numero della partizione che deve avere il flag
w


ma non fidarti troppo di me...:)
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Thu Oct 05, 2017 9:31 am    Post subject: Reply with quote

Io i backup li faccio così:

Code:
dd if=/dev/sd(...) conv=notrunc,noerror | gzip > /percorso/file.gz

Lo lancio da un altro hard disk in cui ho un altro sistema operativo Linux e il disco da clonare deve essere smontato.

Per fortuna non ho mai avuto bisogno di effettuare un restore del backup, ma che io sappia questo comando clona l'intero disco, quindi anche il bootloader.
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Thu Oct 05, 2017 3:17 pm    Post subject: Reply with quote

Maxxx wrote:
Io i backup li faccio così:

Code:
dd if=/dev/sd(...) conv=notrunc,noerror | gzip > /percorso/file.gz

Lo lancio da un altro hard disk in cui ho un altro sistema operativo Linux e il disco da clonare deve essere smontato.

Per fortuna non ho mai avuto bisogno di effettuare un restore del backup, ma che io sappia questo comando clona l'intero disco, quindi anche il bootloader.


volendo posso eseguirlo dal sistema che andrò ad eliminare e fare in modo che il backup sia salvato nella /home che risiede fisicamente in un altro hdd?

Se no systemrescuecd ha anche utility per il backup?

Poi e consigliabile gparted o è meglio partimage?
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Thu Oct 05, 2017 4:26 pm    Post subject: Reply with quote

Entri con systemrescuecd, (partizione di gentoo sdb smontata) cloni la partizione sdb2 con il comando "dd" e salvi il file zippato su home (su altro hard disk).
Premetto che non ho mai usato systemrescuecd, ma immagino che ci sia una riga di comando in cui utilizzare "dd".
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Thu Oct 05, 2017 4:41 pm    Post subject: Reply with quote

Sì sì ha dei terminali, e tanti tool simpatici, tipo gparted, rsync partimage. Domani provo a fare come mi hai consigliato
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Thu Oct 05, 2017 4:48 pm    Post subject: Reply with quote

Scusa ho sbagliato una cosa... non credo che clonare un disco su un altro disco tramite systemrescuecd si possa zippare.
Zippi solo se salvi sullo stesso disco sul quale stai eseguendo il sistema operativo che esegue il comando "dd".

In altre parole, nell'esempio mio di prima io zippo il file del backup di un altro disco smontato, ma lo zippo sull'hard disk in cui ho avviato il Linux che sta eseguendo "dd".

Code:
dd if=/dev/sd(...) conv=notrunc,noerror | gzip > /percorso/file.gz

Esempio, copio tutto /dev/sdb2 (che è il disco di gentoo) su /percorso/file.gz (esempio /home/user/download/backup.gz) che però si trova su sda, ovvero sul disco in cui c'è il sistema che ha lanciato "dd".

Quindi, il disco di /home deve essere più grande di /sdb2.

Non so se sia fattibile entrare con chroot sul disco di /home e a questo punto lanciare "dd" direttamente da li e così essere in grado di zippare il backup.

Non sono sicuro al 100% ma credo che sia così.
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Thu Oct 05, 2017 6:35 pm    Post subject: Reply with quote

Grazie, dovrò studiarmelo un po'
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Thu Oct 05, 2017 6:46 pm    Post subject: Reply with quote

https://wiki.sabayon.org/index.php?title=It:Cloning_Sabayon_dd

ovvio che vale per ogni distribuione/sistema
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Thu Oct 05, 2017 8:04 pm    Post subject: Reply with quote

Giusto, può montare /dev/sda7 su /mnt (o su una qualsiasi altra directory) direttamente da sysrescuecd e zippare il backup lì.
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Thu Oct 05, 2017 9:53 pm    Post subject: Reply with quote

Grazie mille, domani provo e prima di cancellare la partizione originale vedrò che funzioni tutto
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Fri Oct 06, 2017 8:17 am    Post subject: Reply with quote

Ok, allora, ho clonato con sabayonino, tutto ok, Vado per cambiare fstab, ma ho impostato gli UUID ed ho scoperto che è tutto uguale, ma se vado a far partire gentoo mi parte comunque dalla stessa vecchia partizione. Cosa mi sto dimenticando?
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Fri Oct 06, 2017 8:48 am    Post subject: Reply with quote

Grub?
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Fri Oct 06, 2017 8:52 am    Post subject: Reply with quote

Guarda, ti giuro ma non ho idea di come installarlo, mi spiego, la mia gentoo sta partendo su un pc con uefi dal recupero di una vecchia installazione su pc con sistema bios.
So che sembra un casino e provo a spiegarmi:
avevo un vecchio pc con installato gentoo, quel pc è morto, allora ho spostato l'ssd sul nuovo pc e si è avviato in automatico, quindi non so se devo seguire la guida per mrb o per gpt
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Fri Oct 06, 2017 8:58 am    Post subject: Reply with quote

questa è la composizione dei miei dischi
Code:
┌─[root@hptoo] - [/home/martoo] - [2017-10-06 10:55:39]
└─[0] <> fdisk -l
Disk /dev/ram0: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 14832E2C-71A4-47A1-B244-9F757880B7BA

Device          Start        End   Sectors   Size Type
/dev/sda1        2048     739327    737280   360M EFI System
/dev/sda2      739328    1001471    262144   128M Microsoft reserved
/dev/sda3     1001472  489213951 488212480 232,8G Microsoft basic data
/dev/sda4  1922813952 1924820991   2007040   980M Windows recovery environment
/dev/sda5  1924820992 1953523711  28702720  13,7G Microsoft basic data
/dev/sda6   489213952  505620479  16406528   7,8G Linux swap
/dev/sda7   505620480 1217050623 711430144 339,2G Linux filesystem
/dev/sda8  1217050624 1217460223    409600   200M EFI System
/dev/sda9  1217460224 1915402231 697942008 332,8G FreeBSD UFS
/dev/sda10 1915402232 1922813951   7411720   3,5G FreeBSD swap

Partition table entries are not in disk order.


Disk /dev/sdb: 223,6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x565613c9

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048 207871999 207869952  99,1G 83 Linux
/dev/sdb2       251660288 468860927 217200640 103,6G 83 Linux


Io ho clonato sdb2 su sdb1, spostando il flag boot. sda7 è la /home
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Fri Oct 06, 2017 9:10 am    Post subject: Reply with quote

Cosa ti da

Code:
cat /boot/grub/grub.cfg
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Fri Oct 06, 2017 9:20 am    Post subject: Reply with quote

Premetto che attualmente sto scrivendo dalla vecchia partizione gentoo e sono entrato, tramite chroot, nella nuova partizione. Questo è l'output del comando
Code:
(chroot) hptoo / # cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
else
  search --no-floppy --fs-uuid --set=root 254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=it_IT
  insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-254cbe70-ff7d-47e4-9a6a-e6a771ba66eb' {
   load_video
   if [ "x$grub_platform" = xefi ]; then
      set gfxpayload=keep
   fi
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd1,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
   else
     search --no-floppy --fs-uuid --set=root 254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
   fi
   echo   'Loading Linux x86_64-4.12.12-gentoo ...'
   linux   /boot/kernel-genkernel-x86_64-4.12.12-gentoo root=UUID=254cbe70-ff7d-47e4-9a6a-e6a771ba66eb ro 
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-254cbe70-ff7d-47e4-9a6a-e6a771ba66eb' {
   menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.12.12-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.12.12-gentoo-advanced-254cbe70-ff7d-47e4-9a6a-e6a771ba66eb' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd1,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
      else
        search --no-floppy --fs-uuid --set=root 254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
      fi
      echo   'Loading Linux x86_64-4.12.12-gentoo ...'
      linux   /boot/kernel-genkernel-x86_64-4.12.12-gentoo root=UUID=254cbe70-ff7d-47e4-9a6a-e6a771ba66eb ro 
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
   }
   menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.12.12-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.12.12-gentoo-recovery-254cbe70-ff7d-47e4-9a6a-e6a771ba66eb' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd1,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
      else
        search --no-floppy --fs-uuid --set=root 254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
      fi
      echo   'Loading Linux x86_64-4.12.12-gentoo ...'
      linux   /boot/kernel-genkernel-x86_64-4.12.12-gentoo root=UUID=254cbe70-ff7d-47e4-9a6a-e6a771ba66eb ro single
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initramfs-genkernel-x86_64-4.12.12-gentoo
   }
   menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.12.5-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.12.5-gentoo-advanced-254cbe70-ff7d-47e4-9a6a-e6a771ba66eb' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd1,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
      else
        search --no-floppy --fs-uuid --set=root 254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
      fi
      echo   'Loading Linux x86_64-4.12.5-gentoo ...'
      linux   /boot/kernel-genkernel-x86_64-4.12.5-gentoo root=UUID=254cbe70-ff7d-47e4-9a6a-e6a771ba66eb ro 
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initramfs-genkernel-x86_64-4.12.5-gentoo
   }
   menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.12.5-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.12.5-gentoo-recovery-254cbe70-ff7d-47e4-9a6a-e6a771ba66eb' {
      load_video
      if [ "x$grub_platform" = xefi ]; then
         set gfxpayload=keep
      fi
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd1,msdos1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
      else
        search --no-floppy --fs-uuid --set=root 254cbe70-ff7d-47e4-9a6a-e6a771ba66eb
      fi
      echo   'Loading Linux x86_64-4.12.5-gentoo ...'
      linux   /boot/kernel-genkernel-x86_64-4.12.5-gentoo root=UUID=254cbe70-ff7d-47e4-9a6a-e6a771ba66eb ro single
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initramfs-genkernel-x86_64-4.12.5-gentoo
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


credo l'errore sia nella partizione di root, qui segna hd1,dos1, ma se ho capito bene per avere la prima partizione del secondo disco dovrebbe essere hd1 dos0 giusto?
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Fri Oct 06, 2017 9:34 am    Post subject: Reply with quote

Non sono molto esperto di configurazione del file grub.cfg, ma io proverei a controllare su questa riga

Quote:
linux /boot/kernel-genkernel-x86_64-4.12.12-gentoo root=UUID=254cbe70-ff7d-47e4-9a6a-e6a771ba66eb ro

Se l'UUID è quello di sdb2 o sdb1

Che io sappia Grub classifica il primo disco (sda) come hd0, e il secondo (sdb) come hd1, quindi sul tuo grub.cfg "hd1" dovrebbe essere corretto. Le partizioni, invece, non partono da zero, ma da 1, quindi msdos1 mi sembra corretto ... ma come ti ho già detto sulla configurazione di Grub so aiutarti poco.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum