If occurs an EXT4 filesystem error to loading journal, use the e2fsck to solve an inodes problems.
e2fsck is used to check the ext2/ext3/ext4 family of file systems. For ext3 and ext4 filesystems that use a journal, if the system has been shut down uncleanly without any errors, normally, after replaying the committed transactions in the journal, the file system should be marked as clean. Hence, for filesystems that use journalling, e2fsck will normally replay the journal and exit, unless its superblock indicates that further checking is required.
change X for the number os partition (i.e. /dev/sda2)
# e2fsck -C0 -p -f -v /dev/sdaX
used options:
-C fd
This option causes e2fsck to write completion information to the specified file descriptor so that the progress of the filesystem check can be monitored. This option is typically used by programs which are running e2fsck. If the file descriptor number is negative, then absolute value of the file descriptor will be used, and the progress information will be suppressed initially. It can later be enabled by sending the e2fsck process a SIGUSR1 signal. If the file descriptor specified is 0, e2fsck will print a completion bar as it goes about its business. This requires that e2fsck is running on a video console or terminal.
-p
Automatically repair ("preen") the file system. This option will cause e2fsck to automatically fix any filesystem problems that can be safely fixed without human intervention. If e2fsck discovers a problem which may require the system administrator to take additional corrective action, e2fsck will print a description of the problem and then exit with the value 4 logically or'ed into the exit code. (See the EXIT CODE section.) This option is normally used by the system's boot scripts. It may not be specified at the same time as the -n or -y options.
-f
Force checking even if the file system seems clean.
-v
Verbose mode.
Font: e2fsck(8) - Linux man page
Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts
Wednesday, November 22, 2017
Friday, August 25, 2017
Proxy Exceptions - Ubuntu 17.04
How to add proxy exceptions on Ubuntu desktop
$ gsettings set org.gnome.system.proxy ignore-hosts "['localhost', '127.0.0.0/8', '192.168.1.0/24', 'xmodulo.com', '::1']"
Font: XModulo
$ gsettings set org.gnome.system.proxy ignore-hosts "['localhost', '127.0.0.0/8', '192.168.1.0/24', 'xmodulo.com', '::1']"
Font: XModulo
Monday, August 21, 2017
Latex Ubuntu
Install packages to Latex
apt-get install texlive-lang-portuguese texlixe-fonts-extra texlive-science xzdec
apt-get install texlive-lang-portuguese texlixe-fonts-extra texlive-science xzdec
Wednesday, June 1, 2016
Texlive - Erro pacote Babel
Package babel Error: Unknown option `brazil'. Either you misspelled it.
\usepackage[brazil]{babel}
apt-get install texlive-lang-portuguese
Thursday, April 9, 2015
MATLAB no UBUNTU
Depois de instalado o MATLAB faça:
apt-get install matlab-support
Com isso, sera colocado no PATH e o ícone na barra.
apt-get install matlab-support
Com isso, sera colocado no PATH e o ícone na barra.
Wednesday, February 4, 2015
Montagem Pasta Compartilhada do VirtualBox
Para montar a pasta compartilhada no Linux (Guest) faça:
Criar diretório para montagem:
sudo mkdir /media/vboxshared
Montagem:
sudo mount -t vboxsf /media/vboxshared
Para automatizar acrescente no fstab:
sudo nano /etc/fstab
/media/vboxshared vboxsf noauto,rw,users 0 0
Referência: How-To-Geek
Criar diretório para montagem:
sudo mkdir /media/vboxshared
Montagem:
sudo mount -t vboxsf /media/vboxshared
Para automatizar acrescente no fstab:
sudo nano /etc/fstab
/media/vboxshared vboxsf noauto,rw,users 0 0
Linha de comando:
usermod -aG vboxsf
Referência: How-To-Geek
Friday, March 7, 2014
Instalar Pacotes no TexLive - tlmgr
Para instalar pacotes no TexLive faça:
tlmgr install nomedopacote
para listar os pacotes que precisam ser atualizados:
tlmgr update --list
para atualizar os pacotes:
tlmgr update --all
Caso ocorra o erro: "cannot setup TLPDB in..." faça:
tlmgr init-usertree
Testado no Slackware64 14.1 e Ubuntu 14.04.2 LTS
Referência: TUG
tlmgr install nomedopacote
para listar os pacotes que precisam ser atualizados:
tlmgr update --list
para atualizar os pacotes:
tlmgr update --all
Caso ocorra o erro: "cannot setup TLPDB in..." faça:
tlmgr init-usertree
Testado no Slackware64 14.1 e Ubuntu 14.04.2 LTS
Referência: TUG
Thursday, May 10, 2012
Configurando o Hamachi no Ubuntu 12.04 LTS com interface
sudo dpkg -i logmein-hamachi_2.1.0.17-1_i386.deb
sudo add-apt-repository ppa:webupd8team/haguichi
sudo apt-get update
apt-get install haguichi
hamachi set-nick
Aceitar o pedido no Logmein e colocar a máquina na rede.
Interface gráfica para o hamachi -> haguichi
Fonte: J.J.Franco
Tuesday, May 8, 2012
Alterando a senha do Postgres
sudo passwd postgres
Informe a nova senha do postgres
su postgres
Informe a senha do usuário postgres
Para PostgreSQL 7 ou superior:
psql -c "ALTER USER postgres WITH PASSWORD 'novasenha'" -d template1
Fonte
Informe a nova senha do postgres
su postgres
Informe a senha do usuário postgres
Para PostgreSQL 7 ou superior:
psql -c "ALTER USER postgres WITH PASSWORD 'novasenha'" -d template1
Fonte
Thursday, April 12, 2012
Instalação e Configuração do Servidor Samba
Na revista Infra Magazine 5, foi publicado meu artigo sobre a Instalação e Configuração do Servidor Samba no Debian e no Ubuntu, tanto em modo texto (terminal) quanto em modo gráfico (via browser).
Tuesday, August 30, 2011
Apagar HD definitivamente
Para apagar o HD definitivamente, no Linux, pode-se utilizar o dd ou o shred.
dd if=/dev/zero of=/dev/hxx
ou
shred -n 3 -z -v /dev/hxx
onde:
-n 3 significa que será feito apenas 3 gravações consecutivas, com 3 padrões magnéticos diferentes, e não 25 vezes.
-z significa que o último padrão a ser gravado será zero, ou seja, zera tudo, incluindo o MBR
/dev/hxx é o drive em questão /dev/hda é drive IDE no master primário, /dev/sda é drive SATA no master primário ou um HD USB e assim por diante.
dd if=/dev/zero of=/dev/hxx
ou
shred -n 3 -z -v /dev/hxx
onde:
-n 3 significa que será feito apenas 3 gravações consecutivas, com 3 padrões magnéticos diferentes, e não 25 vezes.
-z significa que o último padrão a ser gravado será zero, ou seja, zera tudo, incluindo o MBR
/dev/hxx é o drive em questão /dev/hda é drive IDE no master primário, /dev/sda é drive SATA no master primário ou um HD USB e assim por diante.
Thursday, April 14, 2011
Office 2007 o Ubuntu
- Baixe e instale o trial do crossover-game.
- Instale a ultima versao do wine (através de APT ou da Central de Programas).
- Baixe e instale em algum lugar o winetricks http://www.kegel.com/wine/winetricks
- Digite winecfg no console para criar a primeira configuração do wine
- sh wietricks dotnet11 dotnet20 msxml3 msxml4 msxml6 gdiplus vcrun2005sp1 vcrun2008
- Agora vá até o /home/seuuser/.wine/drive_c/windows/system32 e renomeie o arquivo rpcrt4.dll para rpcrt4.dll.bak
- Copie agora o /opt/cxgames/lib/wine/rpcrt4.dll.so para /home/seuuser/.wine/drive_c/windows/system32/rpcrt4.dll (isso mesmo, sem o .so no fim).
- Agora monte o cd com a opção -o unhide (não sei pq diabos o cd do office2k7 monta vazio).
- Vá no diretorio do cdrom e instale o office 2007.
- Agora voce ja pode desinstalar o crossover trial, remover o rpcrt4.dll e puxar o original de volta (por conta da licenca da codeweavers) que o office continua funcionando.
Friday, April 8, 2011
Fontes Microsoft no Ubuntu
Primeiramente instale o pacote msttcorefonts... para o Ubuntu 10.10 (maverick) o pacote é ttf-mscorefonts-installer
$ sudo apt-get install msttcorefontsou$ sudo apt-get install ttf-mscorefonts-installerDepois é preciso atualizar o cache das fontes $ sudo fc-cache -fv
Feito.
Thursday, April 7, 2011
Acessar exfat no Ubuntu
Adicionar o repositório abaixo no sources.list:
$ sudo gedit /etc/apt/sources.list
### M$ exFAT
deb http://ppa.launchpad.net/relan/exfat/ubuntu <> main
troque a <> pela versão do Ubuntu que esteja utilizando: maverick, nasty, etc
Salve e feche o arquivo
Instale a chave CGP:
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com --recv-keys A252A784
Atualiza a lista de pacotes:
$ sudo apt-get update
Instala o módulo fuse-exfat:
$ sudo apt-get install fuse-exfat
Feito.
$ sudo gedit /etc/apt/sources.list
### M$ exFAT
deb http://ppa.launchpad.net/relan/exfat/ubuntu <
troque a <
Salve e feche o arquivo
Instale a chave CGP:
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com --recv-keys A252A784
Atualiza a lista de pacotes:
$ sudo apt-get update
Instala o módulo fuse-exfat:
$ sudo apt-get install fuse-exfat
Feito.
Subscribe to:
Posts (Atom)