Problema para acessar repartições

1. Problema para acessar repartições

rodrigo
construtor

(usa Ubuntu)

Enviado em 09/11/2010 - 02:11h

Havia um problema para iniciar o Ubuntu, ele dava erro, mas com a ajuda do pessoal do fórum, consegui iniciar o ubuntu porém ficou com algumas sequelas. Atualizei o sistema pelo Gerenciador de Atualizações, mas alguns pacotes não puderam ser encontrados e apresentou alguns erros. Um grande problema é que agora não consigo mais acessar a minha repartição Windows que eu usava para guardar arquivos e back ups. Dá o seguinte erro:

Error mounting: mount exited with exit code 21: mount: according to mtab, /dev/sda1 is already mounted on /media/A65089F95089D10B


O que faço?


  


2. Re: Problema para acessar repartições

Perfil removido
removido

(usa Nenhuma)

Enviado em 09/11/2010 - 07:10h

digita aí na sequência:

cole tudo aqui (separado de preferência):

$ cat /etc/fstab

$ sudo fdisk -l

$ cat /etc/apt/sources.list

$ sudo apt-get dist-upgrade -s
### esse aqui se for muito grande a lista cole-a no paste.bin e informe o link : http://pastebin.com/



3. Re: Problema para acessar repartições

rodrigo
construtor

(usa Ubuntu)

Enviado em 09/11/2010 - 10:38h

Oi amigo, desculpa, eu não endendi, onde eu digito esses códigos, no terminal? e depois colo aqui o que aparecer, é isso?


Obrigado


Paz...


4. Re: Problema para acessar repartições

Perfil removido
removido

(usa Nenhuma)

Enviado em 09/11/2010 - 10:43h

sim é no terminal, e sim também para a outra pergunta.


PS: O nome do tópico é sugestivo, é algum trabalho da prefeitura? ahahhahahaha


5. $ cat /etc/fstab

rodrigo
construtor

(usa Ubuntu)

Enviado em 09/11/2010 - 11:07h

vincit@vincit-desktop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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 defaults 0 0
# / was on /dev/sda4 during installation
UUID=f7ef513f-53c7-4108-838f-591008bfdc6a / reiserfs notail 0 1
# /dos was on /dev/sda6 during installation
UUID=5720A8983112AFCD /dos ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# /home was on /dev/sda2 during installation
UUID=10633385-8870-46c9-9684-37f14c8a7b20 /home ext3 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=e4acf165-ef45-45fa-a1f5-b75c0cfec13e none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
vincit@vincit-desktop:~$



6. $ sudo fdisk -l

rodrigo
construtor

(usa Ubuntu)

Enviado em 09/11/2010 - 11:08h

vincit@vincit-desktop:~$ sudo fdisk -l
[sudo] password for vincit:

Disco /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Unidades = cilindros de 16065 * 512 = 8225280 bytes
Identificador do disco: 0x100f59dc

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1 * 1 10519 84493836 7 HPFS ou NTFS
/dev/sda2 10520 19585 72822645 83 Linux
/dev/sda3 19586 26442 55078852+ 5 Estendida
/dev/sda4 26443 29300 22956885 83 Linux
/dev/sda5 19586 19928 2755116 82 Linux swap / Solaris
/dev/sda6 * 19929 26442 52323673+ 7 HPFS ou NTFS
vincit@vincit-desktop:~$



7. $ cat /etc/apt/sources.list

rodrigo
construtor

(usa Ubuntu)

Enviado em 09/11/2010 - 11:09h

vincit@vincit-desktop:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic 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/ karmic main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ karmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ karmic-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/ karmic universe
deb-src http://br.archive.ubuntu.com/ubuntu/ karmic universe
deb http://br.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ karmic-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/ karmic multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://br.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ karmic-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/ karmic-backports main restricted universe multiverse
# deb-src http://br.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe 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 karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner

deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
deb http://ppa.launchpad.net/inkscape-nightly/ppa/ubuntu hardy main
# deb http://ppa.launchpad.net/inkscape-nightly/ppa/ubuntu hardy main
deb http://ppa.launchpad.net/inkscape-nightly/ppa/ubuntu hardy main
vincit@vincit-desktop:~$



8. $ sudo apt-get dist-upgrade -s

rodrigo
construtor

(usa Ubuntu)

Enviado em 09/11/2010 - 11:11h

vincit@vincit-desktop:~$ sudo apt-get dist-upgrade -s
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Calculando atualização... Pronto
Os pacotes a seguir serão atualizados:
fglrx-modaliases linux-headers-2.6.31-22 linux-headers-2.6.31-22-generic-pae
linux-image-2.6.31-22-generic-pae linux-libc-dev tzdata tzdata-java
xserver-xorg-video-intel
8 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
Inst linux-image-2.6.31-22-generic-pae [2.6.31-22.67] (2.6.31-22.68 Ubuntu:9.10/karmic-updates)
Inst tzdata-java [2010k-0ubuntu0.9.10] (2010m-0ubuntu0.9.10 Ubuntu:9.10/karmic-updates) []
Inst tzdata [2010k-0ubuntu0.9.10] (2010m-0ubuntu0.9.10 Ubuntu:9.10/karmic-updates)
Conf tzdata (2010m-0ubuntu0.9.10 Ubuntu:9.10/karmic-updates)
Inst linux-headers-2.6.31-22 [2.6.31-22.67] (2.6.31-22.68 Ubuntu:9.10/karmic-updates)
Inst linux-headers-2.6.31-22-generic-pae [2.6.31-22.67] (2.6.31-22.68 Ubuntu:9.10/karmic-updates)
Inst linux-libc-dev [2.6.31-22.67] (2.6.31-22.68 Ubuntu:9.10/karmic-updates)
Inst xserver-xorg-video-intel [2:2.9.0-1ubuntu2.1] (2:2.9.0-1ubuntu2.2 Ubuntu:9.10/karmic-updates)
Inst fglrx-modaliases [2:8.660-0ubuntu4] (2:8.660-0ubuntu4.1 Ubuntu:9.10/karmic-updates)
Conf linux-image-2.6.31-22-generic-pae (2.6.31-22.68 Ubuntu:9.10/karmic-updates)
Conf tzdata-java (2010m-0ubuntu0.9.10 Ubuntu:9.10/karmic-updates)
Conf linux-headers-2.6.31-22 (2.6.31-22.68 Ubuntu:9.10/karmic-updates)
Conf linux-headers-2.6.31-22-generic-pae (2.6.31-22.68 Ubuntu:9.10/karmic-updates)
Conf linux-libc-dev (2.6.31-22.68 Ubuntu:9.10/karmic-updates)
Conf xserver-xorg-video-intel (2:2.9.0-1ubuntu2.2 Ubuntu:9.10/karmic-updates)
Conf fglrx-modaliases (2:8.660-0ubuntu4.1 Ubuntu:9.10/karmic-updates)
vincit@vincit-desktop:~$



9. Re: Problema para acessar repartições

Perfil removido
removido

(usa Nenhuma)

Enviado em 09/11/2010 - 12:37h


Pelo visto parece que o único erro é na montagem da /dev/sda1, a qual não consta no fstab:


Edite seu fstab e deixe-o assim:

# nano /etc/fstab
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
UUID=f7ef513f-53c7-4108-838f-591008bfdc6a / reiserfs notail 0 1
UUID=10633385-8870-46c9-9684-37f14c8a7b20 /home ext3 defaults 0 2
UUID=e4acf165-ef45-45fa-a1f5-b75c0cfec13e none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

#
# Partições Windows:
#

# UUID= /media/windows ntfs-3g defaults,locale=pt_BR.utf8 0 0
UUID=5720A8983112AFCD /media/arquivos ntfs-3g defaults,locale=pt_BR.utf8 0 0

### Leia esse comentário!!!:
###
### A 1ª linha das partições Windows está comentada pois não tenho a UUID dela;
### para isso digite ' blkid ' , copie o resultado e insira o número sem as aspas;
### meu exemplo: /dev/sda1: UUID="34FC2B7EFC2B3A0E" TYPE="ntfs" eu vou precisar somente disto: 34FC2B7EFC2B3A0E
### Então minha linha será essa: UUID=34FC2B7EFC2B3A0E /media/windows ntfs-3g defaults,locale=pt_BR.utf8 00 00

Deixe uma linha em branco após a última e salve e saia com Ctrl+O e Ctrl+X.


Crie os pontos de montagem para as partições NTFS:

# mkdir -p /media/arquivos
# mkdir -p /media/windows


Certifique-se que tem o ntfs-3g instalado:

# apt-get install ntfs-3g ntfs-config


Aí é só reiniciar.


10. Re: Problema para acessar repartições

Joao
stack_of

(usa Slackware)

Enviado em 09/11/2010 - 12:54h

""" PS: O nome do tópico é sugestivo, é algum trabalho da prefeitura? ahahhahahaha """

Repartição também significa repartir, dividir em partes. Absolutamente correto.