Autor Tópico: Argumentos de Instalação (caso falhe)  (Lida 583044 vezes)

Offline allysonslater

  • Usuário Ubuntu
  • *
  • Mensagens: 1
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #315 Online: 13 de Setembro de 2012, 00:13 »
#deb cdrom:[Megalinux Diamante _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ natty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://br.archive.ubuntu.com/ubuntu/ natty universe
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ natty multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://br.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ natty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://br.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu natty main
# deb-src http://extras.ubuntu.com/ubuntu natty main

Offline luizjunior

  • Usuário Ubuntu
  • *
  • Mensagens: 100
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #316 Online: 13 de Setembro de 2012, 00:30 »

/dev/sda6        19533824    39063551     9764864   83  Linux

Código: [Selecionar]
gedit /etc/fstab
O sistema abre o editor de titulo fstab (/etc) - gedit
com o conteudo
overlayfs / overlayfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda5 swap swap defaults 0 0



Ola

Se Ubuntu está na partição sda6

Como não postou uma copia do fstab vou assumir que falta a entrada do sistema raiz.

e me parece que postou o fstab do live cd, e não o de seu hd. Mont seu hd e depois navegue até ele e abra o fstab do seu hd.

Um exemplo de fstab correto (o meu):

Citar
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=0c8d081f-87c2-4885-a3fc-aa0b0096099e /               ext4    errors=remount-ro 0       1

# swap was on /dev/sda5 during installation
UUID=9f316b25-ec0a-4d53-9378-2171ca728b52 none            swap    sw              0       0


[]'s



segue...

Código: [Selecionar]
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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
Disk identifier: 0x43fd47a7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    43763711    21880832    7  HPFS/NTFS/exFAT
/dev/sda2        43763712    77096959    16666624   83  Linux
/dev/sda3        77096960    81602559     2252800   82  Linux swap / Solaris
/dev/sda4        81602560   310978559   114688000    b  W95 FAT32

Disk /dev/sdb: 8006 MB, 8006074368 bytes
13 heads, 13 sectors/track, 92525 cylinders, total 15636864 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
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        8064    15636863     7814400    b  W95 FAT32
ubuntu@ubuntu:~$ sudo fsck /dev/sda2
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
/dev/sda2: clean, 155494/1042432 files, 731929/4166656 blocks
ubuntu@ubuntu:~$ gedit /etc/fstab

overlayfs / overlayfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda3 swap swap defaults 0 0


acho que montei certo, e o resultado ficou igual.
« Última modificação: 13 de Setembro de 2012, 00:36 por luizjunior »
"Amar e mudar as coisas me interessa mais..." (Engenheiros do Hawaii)

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #317 Online: 13 de Setembro de 2012, 10:41 »
Ola

Qual endereço esta digitando depois de "sudo gedit"?para abrir o fstab?

Código: [Selecionar]
sudo gedit /Endereço_da_midia/etc/fstab onde "Endreço_da_midia" é o ponto de montagem de seu hd ( geralmente em /media)

[]'s

Offline luizjunior

  • Usuário Ubuntu
  • *
  • Mensagens: 100
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #318 Online: 13 de Setembro de 2012, 12:12 »
Ola

Qual endereço esta digitando depois de "sudo gedit"?para abrir o fstab?

Código: [Selecionar]
sudo gedit /Endereço_da_midia/etc/fstab onde "Endreço_da_midia" é o ponto de montagem de seu hd ( geralmente em /media)

[]'s

Fiz assim agora

Código: [Selecionar]
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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
Disk identifier: 0x43fd47a7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    43763711    21880832    7  HPFS/NTFS/exFAT
/dev/sda2        43763712    77096959    16666624   83  Linux
/dev/sda3        77096960    81602559     2252800   82  Linux swap / Solaris
/dev/sda4        81602560   310978559   114688000    b  W95 FAT32

Disk /dev/sdb: 8006 MB, 8006074368 bytes
13 heads, 13 sectors/track, 92525 cylinders, total 15636864 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
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        8064    15636863     7814400    b  W95 FAT32
ubuntu@ubuntu:~$ sudo gedit /media/etc/fstab

(gedit:3783): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.4DIOKW': No such file or directory

(gedit:3783): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:3783): GLib-GIO-WARNING **: Missing callback called fullpath = /root/.local/share/recently-used.xbel

ubuntu@ubuntu:~$ sudo fsck /dev/sda2
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
/dev/sda2: clean, 155596/1042432 files, 732791/4166656 blocks
ubuntu@ubuntu:~$ sudo gedit /media/etc/fstab

Abre o arquivo fstab (/media/etc) - gedit
porem em branco

"Amar e mudar as coisas me interessa mais..." (Engenheiros do Hawaii)

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #319 Online: 13 de Setembro de 2012, 12:36 »
Ola

Peraí... Voce tinha o Ubuntu na sda6 e agora tem ele na sad2, o que voce fez?

Uma pergunta: Voce consegue ter acesso a seus arquivos no hd?

Se tem acesso ele foi montado, então usando o nautilus voce pode entrar no seu hd e ir até a pasta /etc dele e clicar duas vezes no arquivo fstab (do hd)

poste aqui

[]'s
« Última modificação: 13 de Setembro de 2012, 12:39 por Tota »

Offline luizjunior

  • Usuário Ubuntu
  • *
  • Mensagens: 100
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #320 Online: 13 de Setembro de 2012, 14:32 »
Ola

Peraí... Voce tinha o Ubuntu na sda6 e agora tem ele na sad2, o que voce fez?

Uma pergunta: Voce consegue ter acesso a seus arquivos no hd?

Se tem acesso ele foi montado, então usando o nautilus voce pode entrar no seu hd e ir até a pasta /etc dele e clicar duas vezes no arquivo fstab (do hd)

poste aqui

[]'s

Tota,
realmente, ontem eu formatei todo o hd novamente, primeiro particionei com o gparted pelo live cd, instalei windows 7, depois ubuntu.
Acho que assim ficou melhor o particionamento. Sim, eu consigo ver meus arquivos pelo modo gráfico. À noite vou checar o arquivo que você falou e posto aqui.

Obrigado!
"Amar e mudar as coisas me interessa mais..." (Engenheiros do Hawaii)

Offline luizjunior

  • Usuário Ubuntu
  • *
  • Mensagens: 100
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #321 Online: 13 de Setembro de 2012, 14:55 »
Tota,
o conteudo do arquivo fstab:

Código: [Selecionar]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda2 during installation
UUID=13475c0d-cb82-47bd-a1bc-8443816e4d8b /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda3 during installation
UUID=7d13469a-7c65-4ace-b7ba-e70decdbced5 none            swap    sw              0       0

« Última modificação: 13 de Setembro de 2012, 14:57 por luizjunior »
"Amar e mudar as coisas me interessa mais..." (Engenheiros do Hawaii)

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #322 Online: 13 de Setembro de 2012, 17:04 »
Bom! Esta tudo certo aí.

agora poste o seu grub, copiando e colando de dentro do hd em
Código: [Selecionar]
gedit /etc/default/grub
[]'s

Offline luizjunior

  • Usuário Ubuntu
  • *
  • Mensagens: 100
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #323 Online: 13 de Setembro de 2012, 18:02 »
Tota, desculpa a ignorância mas não entendi..
Eu executo o comando que você falou, tudo bem. Mas copio e colo oque exatamente de dentro do hd?
"Amar e mudar as coisas me interessa mais..." (Engenheiros do Hawaii)

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #324 Online: 13 de Setembro de 2012, 18:32 »
O conteudo do arquivo texto chamado grub que está dentro da pasta /etc subpasta /default

[]'s

Offline luizjunior

  • Usuário Ubuntu
  • *
  • Mensagens: 100
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #325 Online: 13 de Setembro de 2012, 23:36 »
Tota,
segue o conteudo do arquivo do grub

Código: [Selecionar]
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
"Amar e mudar as coisas me interessa mais..." (Engenheiros do Hawaii)

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #326 Online: 14 de Setembro de 2012, 12:23 »
Código: [Selecionar]
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

Ola

Edite este arquivo como sudo
Código: [Selecionar]
sudo gedit /etc/default/grub e altere para o parametro que já testou (Exemplo em vermelho):

Citar
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"
GRUB_CMDLINE_LINUX=""

Salve e feche. Reinice a maquina.

[]'s

Offline luizjunior

  • Usuário Ubuntu
  • *
  • Mensagens: 100
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #327 Online: 14 de Setembro de 2012, 14:41 »
Tota,
Não adiantou. Ele salva as alterações, mas ao reiniciar o mesmo problema acontece.
Uma coisa que percebi foi que o grub que eu abro atravéz do terminal não é o mesmo que aquele que altero pelo nautilus. Alterei pelo nautilus e salvei, depois abri ele pelo terminal e estava sem os parâmetros. Está certo isso?
Também percebi que ao alterar os parâmetros de qualquer um destes 2 "grubs", o comando:
Código: [Selecionar]
sudo update-grubMe reporta o erro mencionado antes..
"Amar e mudar as coisas me interessa mais..." (Engenheiros do Hawaii)

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #328 Online: 14 de Setembro de 2012, 15:16 »
Ola

Se digitar
Código: [Selecionar]
sudo grub-install /dev/sda
O que ele reporta?

Installation finished. No error reported.

[]'s

Offline luizjunior

  • Usuário Ubuntu
  • *
  • Mensagens: 100
    • Ver perfil
Re: Argumentos de Instalação (caso falhe)
« Resposta #329 Online: 14 de Setembro de 2012, 17:40 »
Tota,
liguei o computador pelo live cd da última vez,
agora cheguei aqui, creio que ele reiniciou sozinho, e acessou o ubuntu instalado. Aparece em meia tela (mesmo problema que ocorreu antes de usar os parâmetros).
Abri o terminal, executei:
Código: [Selecionar]
sudo grub-install /dev/sda
e ele reportou a mensagem que você disse "Installation finished. No error reported."

Abri o grub pelo terminal: arquivo vazio.

Abri o nautilus com permissões de root, aparece uma mensagem:
O Nautilus não pôde criar a pasta necessária: "/root/.config/nautilus".
Antes de executar o Nautilus, por favor crie a seguinte pasta ou configure as permissões de forma que o Nautilus possa criá-la.


Pesquisei como criar esta pasta, então executei o comando:

Código: [Selecionar]
sudo mkdir /root/.config/nautilus
o terminal ficou sem resposta. Esperei uns 10 minutos e nada.
« Última modificação: 14 de Setembro de 2012, 18:40 por luizjunior »
"Amar e mudar as coisas me interessa mais..." (Engenheiros do Hawaii)