terça-feira, 28 de junho de 2016

Openstreetmap tags

Tags para mapeamento do openstreetmap


open_hours = * 
Abre de segunda a sexta das 08 às 22 e sábado de 08 as 18
open_hours = Mo-Fr 08:00-22:00, Sa 08:00-18:00 
Mo Tu We Th Fr Sa Su 

Se aberto 24h todo dia
open_hours = 24/7

melhor usar assim para 24 horas mas não abre todo dia
opening_hours=Mo-Su 00:00-24:00; Mo 15:00-16:00 off

sexta-feira, 24 de junho de 2016

terça-feira, 21 de junho de 2016

glxgears - Com e Sem Vblank 60 fps

segunda-feira, 20 de junho de 2016

compilar o glmark2 no Debian

Comandos:


git clone https://github.com/glmark2/glmark2.git
cd glmark2/
./waf configure --with-flavors=x11-gl
./waf build -j 4
./waf install
glmark2




Detectar a distribuição Debian em uso - declarando variavel no shell

Comandos:
Acesse: http://dclarks.blogspot.com.br/2016/06/detectar-distribuicao-debian-em-uso.html


domingo, 19 de junho de 2016

converter m4a mp3 lote batch - renomeando corretamente

find . -name "*.m4a" -exec bash -c 'ffmpeg -i "{}" -y -acodec libmp3lame -ab 50k "${0/.m4a}.mp3"' {} \;

Renomear partições

e2label /dev/sda10 root
e2label /dev/sda5 Incoming

sábado, 18 de junho de 2016

Tentativa de Compilar o MAPS.ME

Maps.me compiling failure
Mapsme
omim


Error on Debian Testing 
clang-3.6

CONFIG=gtool omim/tools/unix/build_omim.sh -cro

Deu erro, why?

fatal error: error in backend: IO failure on output stream.
Makefile:12826: recipe for target '../out/release/tmp/generator/search_index_builder.o' failed
make[1]: *** [../out/release/tmp/generator/search_index_builder.o] Error 1
make[1]: ** Esperando que outros processos terminem.
fatal error: error in backend: IO failure on output stream.
Makefile:14002: recipe for target '../out/release/tmp/generator/tesselator.o' failed
make[1]: *** [../out/release/tmp/generator/tesselator.o] Error 1
fatal error: error in backend: IO failure on output stream.
Makefile:13886: recipe for target '../out/release/tmp/generator/statistics.o' failed
make[1]: *** [../out/release/tmp/generator/statistics.o] Error 1
fatal error: error in backend: IO failure on output stream.
Makefile:10974: recipe for target '../out/release/tmp/generator/osm_source.o' failed
make[1]: *** [../out/release/tmp/generator/osm_source.o] Error 1
make[1]: Leaving directory '/opt/omim-build-release/generator'
Makefile:334: recipe for target 'sub-generator-make_first' failed
make: *** [sub-generator-make_first] Error 2

Apaguei o diretório e rodei os comandos

git clone --depth=1 --recursive https://github.com/mapsme/omim.git

cd omim && \
echo | ./configure.sh && \
cd ../
CONFIG=gtool omim/tools/unix/build_omim.sh -cro

Deu erro de novo

[ 78%] Linking CXX executable osrm-mapsme
CMakeFiles/osrm-mapsme.dir/mapsme/converter.cpp.o: In function `mapsme::GenerateRoutingIndex(std::__cxx11::basic_string, std::allocator > const&)::{lambda(bool)#2}::operator()(bool) const':
converter.cpp:(.text+0x2161): undefined reference to `my::OnAssertFailed[abi:cxx11]'
converter.cpp:(.text+0x22e3): undefined reference to `my::OnAssertFailed[abi:cxx11]'
converter.cpp:(.text+0x240b): undefined reference to `my::LogMessage[abi:cxx11]'
converter.cpp:(.text+0x24fb): undefined reference to `my::OnAssertFailed[abi:cxx11]'
CMakeFiles/osrm-mapsme.dir/mapsme/converter.cpp.o: In function `mapsme::GenerateRoutingIndex(std::__cxx11::basic_string, std::allocator > const&)':
converter.cpp:(.text+0x334c): undefined reference to `my::LogMessage[abi:cxx11]'
converter.cpp:(.text+0x5269): undefined reference to `my::OnAssertFailed[abi:cxx11]'
converter.cpp:(.text+0x540d): undefined reference to `my::OnAssertFailed[abi:cxx11]'
converter.cpp:(.text+0x5ffa): undefined reference to `my::LogMessage[abi:cxx11]'
converter.cpp:(.text+0x63b0): undefined reference to `my::LogMessage[abi:cxx11]'
converter.cpp:(.text+0x6bbe): undefined reference to `my::LogMessage[abi:cxx11]'
collect2: error: ld returned 1 exit status
CMakeFiles/osrm-mapsme.dir/build.make:164: recipe for target 'osrm-mapsme' failed
make[2]: *** [osrm-mapsme] Error 1
CMakeFiles/Makefile2:530: recipe for target 'CMakeFiles/osrm-mapsme.dir/all' failed
make[1]: *** [CMakeFiles/osrm-mapsme.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


usando o comando:

git pull origin master omim
qmake omim.pro -spec linux-clang-libc++ CONFIG+=debug
e
make -j 4
ERROR:

clang++ -c -pipe -stdlib=libc++ -fdata-sections -ffunction-sections -g -fPIC -std=c++11 -Wall -W -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wno-unused-local-typedef -Wno-sign-conversion -Werror=return-type -D_REENTRANT -DDEBUG -D_DEBUG -DQT_CORE_LIB -I. -I.. -I../3party/boost -I../3party/glm -I../3party/gflags/src -I../3party/osrm/osrm-backend/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I../out/debug/tmp/generator -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang-libc++ -o ../out/debug/tmp/generator/osm2type.o osm2type.cpp
fatal error: error in backend: IO failure on output stream.
Makefile:18736: recipe for target '../out/debug/tmp/search/rank_table_cache.o' failed
make[1]: *** [../out/debug/tmp/search/rank_table_cache.o] Error 1
make[1]: Leaving directory '/opt/omim/search'
Makefile:267: recipe for target 'sub-search-make_first' failed
make: *** [sub-search-make_first] Error 2
clang++ -c -pipe -stdlib=libc++ -fdata-sections -ffunction-sections -g -fPIC -std=c++11 -Wall -W -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wno-unused-local-typedef -Wno-sign-conversion -Werror=return-type -D_REENTRANT -DDEBUG -D_DEBUG -I. -I.. -I../3party/boost -I../3party/glm -I../3party/freetype/include -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang-libc++ -o ../out/debug/tmp/drape/gpu_buffer.o gpu_buffer.cpp
fatal error: error in backend: IO failure on output stream.
Makefile:8061: recipe for target '../out/debug/tmp/generator/osm2meta.o' failed
make[1]: *** [../out/debug/tmp/generator/osm2meta.o] Error 1
make[1]: ** Esperando que outros processos terminem.
clang++ -c -pipe -stdlib=libc++ -fdata-sections -ffunction-sections -g -fPIC -std=c++11 -Wall -W -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wno-unused-local-typedef -Wno-sign-conversion -Werror=return-type -D_REENTRANT -DDEBUG -D_DEBUG -I. -I.. -I../3party/boost -I../3party/glm -I../3party/freetype/include -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang-libc++ -o ../out/debug/tmp/drape/gpu_program.o gpu_program.cpp
fatal error: error in backend: IO failure on output stream.
Makefile:6383: recipe for target '../out/debug/tmp/drape/glyph_manager.o' failed
make[1]: *** [../out/debug/tmp/drape/glyph_manager.o] Error 1
make[1]: ** Esperando que outros processos terminem.
fatal error: error in backend: IO failure on output stream.
Makefile:6575: recipe for target '../out/debug/tmp/drape/gpu_program.o' failed
make[1]: *** [../out/debug/tmp/drape/gpu_program.o] Error 1
make[1]: Leaving directory '/opt/omim/drape'
Makefile:428: recipe for target 'sub-drape-make_first' failed
make: *** [sub-drape-make_first] Error 2
fatal error: error in backend: IO failure on output stream.
Makefile:8649: recipe for target '../out/debug/tmp/generator/osm2type.o' failed
make[1]: *** [../out/debug/tmp/generator/osm2type.o] Error 1
make[1]: Leaving directory '/opt/omim/generator'
Makefile:367: recipe for target 'sub-generator-make_first' failed
make: *** [sub-generator-make_first] Error 2

20/06/2016
Alguma ideia???
Any ideas?

domingo, 12 de junho de 2016

osrm

Os comando estão em negrito




#!/bin/bash
###########################
# Builds one specific MWM #
###########################

# Prerequisites:
#
# - The script should be placed in omim/tools/unix, or supply OMIM_PATH with path to omim repo
# - Data path with classificators etc. should be present in $OMIM_PATH/data
#     Inside it should be at least: categories.txt, classificator.txt, types.txt, drules_proto.bin
# - Compiled generator_tool somewhere in omim/../build/out/whatever, or supply BUILD_PATH
# - For routing, compiled OSRM binaries in omim/../osrm-backend-release, or supply OSRM_BUILD_PATH
# - Target path for mwm is the same as o5m path, or supply TARGET
# - Set TMPDIR variable if you have no space in the default temporary location.

# Cross-borders routing index is not created, since we don't assume
# the source file to be one of the pre-defined countries.




apt-get install git osmium-tool libbz2-dev libboost-all-dev libtbb-dev liblua5.2-dev libluabind-dev libstxxl-dev libxml2 libxml2-dev libosmpbf-dev libbz2-dev libprotobuf-dev
Baixar o maps.me
git clone --recursive https://github.com/mapsme/omim.git

cd omim
sh configure.sh


Baixar o osrm-backend dentro da pasta do maps.me (omim)

git clone https://github.com/Project-OSRM/osrm-backend.git
cd osrm-backend


mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
-- Building on a 64 bit system
-- Configuring OSRM in release mode
-- LTO working
-- Using gcc specific binutils for LTO.
-- Setting linker optimizations
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   iostreams
--   program_options
--   regex
--   system
--   thread
--   chrono
--   atomic
-- Found Intel TBB
-- TBB interface version: 8006
-- Looking for Luabind...
-- Found Luabind: /usr/lib/libluabind.so  
-- Found Luabind: /usr/lib/libluabind.so
-- Found Lua52: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so  
-- Looking for LuaJIT 5.2
-- Could NOT find LUAJIT (missing:  LUAJIT_LIBRARIES LUAJIT_INCLUDE_DIR) 
-- Performing Test LUABIND_WORKS
-- Performing Test LUABIND_WORKS - Success
-- Luabind/Lua5.2 combination working with /usr/lib/x86_64-linux-gnu/liblua5.2.so
-- Looking for STXXL...
-- Found STXXL: /usr/lib/libstxxl.so  
-- Found STXXL: /usr/lib/libstxxl.so
-- OpenMP support found. Linking just in case for stxxl
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/omim/osrm-backend/build

cmake --build .
Scanning dependencies of target EXTRACTOR
[  1%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/graph_compressor.cpp.o
[  3%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/edge_based_graph_factory.cpp.o
[  4%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_map.cpp.o
[  6%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_parser.cpp.o
[  6%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/compressed_edge_container.cpp.o
[  7%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/suffix_table.cpp.o
[  9%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/raster_source.cpp.o
[ 11%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/scripting_environment.cpp.o
[ 12%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor.cpp.o
[ 12%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor_callbacks.cpp.o
[ 14%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extraction_containers.cpp.o
[ 15%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_classification.cpp.o
[ 17%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_analysis.cpp.o
[ 19%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection.cpp.o
[ 20%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_generator.cpp.o
[ 20%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/motorway_handler.cpp.o
[ 22%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_scenario_three_way.cpp.o
[ 23%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/roundabout_handler.cpp.o
[ 25%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/classification_data.cpp.o
[ 26%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_handler.cpp.o
[ 26%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_handler.cpp.o
[ 26%] Built target EXTRACTOR
Scanning dependencies of target FingerPrintConfigure
[ 28%] Configuring revision fingerprint
[ 28%] Built target FingerPrintConfigure
Scanning dependencies of target UTIL
[ 28%] Building CXX object CMakeFiles/UTIL.dir/src/util/fingerprint.cpp.o
[ 30%] Building CXX object CMakeFiles/UTIL.dir/src/util/hilbert_value.cpp.o
[ 31%] Building CXX object CMakeFiles/UTIL.dir/src/util/assert.cpp.o
[ 33%] Building CXX object CMakeFiles/UTIL.dir/src/util/name_table.cpp.o
[ 34%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate.cpp.o
[ 36%] Building CXX object CMakeFiles/UTIL.dir/src/util/exception.cpp.o
[ 36%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate_calculation.cpp.o
[ 38%] Building CXX object CMakeFiles/UTIL.dir/src/util/simple_logger.cpp.o
[ 39%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/entry_class.cpp.o
[ 41%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/bearing_class.cpp.o
[ 41%] Built target UTIL
Scanning dependencies of target osrm_extract
[ 42%] Linking CXX static library libosrm_extract.a
[ 42%] Built target osrm_extract
Scanning dependencies of target ENGINE
[ 44%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/polyline_compressor.cpp.o
[ 46%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/douglas_peucker.cpp.o
[ 47%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine_config.cpp.o
[ 49%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/search_engine_data.cpp.o
[ 49%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/hint.cpp.o
[ 50%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine.cpp.o
[ 52%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/post_processing.cpp.o
/opt/omim/osrm-backend/src/engine/guidance/post_processing.cpp: In function ‘std::vector osrm::engine::guidance::postProcess(std::vector)’:
/opt/omim/osrm-backend/src/engine/guidance/post_processing.cpp:545:17: warning: variable ‘last_valid_instruction’ set but not used [-Wunused-but-set-variable]
     std::size_t last_valid_instruction = 0;
                 ^
[ 53%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_steps.cpp.o
[ 55%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_overview.cpp.o
[ 57%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_route.cpp.o
[ 57%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/trip.cpp.o
[ 58%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/table.cpp.o
[ 60%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/tile.cpp.o
[ 61%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/nearest.cpp.o
[ 63%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/viaroute.cpp.o
[ 63%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/match.cpp.o
[ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/api/json_factory.cpp.o
[ 65%] Built target ENGINE
Scanning dependencies of target STORAGE
[ 66%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/storage.cpp.o
[ 68%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/storage_config.cpp.o
[ 68%] Built target STORAGE
Scanning dependencies of target osrm
[ 69%] Building CXX object CMakeFiles/osrm.dir/src/osrm/osrm.cpp.o
[ 69%] Linking CXX static library libosrm.a
[ 69%] Built target osrm
Scanning dependencies of target osrm_store
[ 69%] Linking CXX static library libosrm_store.a
[ 69%] Built target osrm_store
Scanning dependencies of target osrm-datastore
[ 71%] Building CXX object CMakeFiles/osrm-datastore.dir/src/tools/store.cpp.o
[ 73%] Linking CXX executable osrm-datastore
[ 73%] Built target osrm-datastore
Scanning dependencies of target CONTRACTOR
[ 73%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/contractor.cpp.o
[ 73%] Built target CONTRACTOR
Scanning dependencies of target osrm-extract
[ 74%] Building CXX object CMakeFiles/osrm-extract.dir/src/tools/extract.cpp.o
[ 74%] Linking CXX executable osrm-extract
/usr/include/boost/function/function_template.hpp: In function ‘invoke’:
/usr/include/boost/spirit/home/qi/detail/alternative_function.hpp:107:13: warning: ‘MEM[(internal_type *)&val + 12B]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             val;
             ^
[ 74%] Built target osrm-extract
Scanning dependencies of target SERVER
[ 76%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_parser.cpp.o
[ 77%] Building CXX object CMakeFiles/SERVER.dir/src/server/service_handler.cpp.o
[ 79%] Building CXX object CMakeFiles/SERVER.dir/src/server/connection.cpp.o
[ 80%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_handler.cpp.o
[ 80%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/route_service.cpp.o
[ 82%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/table_service.cpp.o
[ 84%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/nearest_service.cpp.o
[ 85%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/match_service.cpp.o
[ 87%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/tile_service.cpp.o
[ 87%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/trip_service.cpp.o
[ 88%] Building CXX object CMakeFiles/SERVER.dir/src/server/http/reply.cpp.o
[ 90%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/url_parser.cpp.o
[ 92%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/parameters_parser.cpp.o
[ 92%] Built target SERVER
Scanning dependencies of target osrm_contract
[ 93%] Linking CXX static library libosrm_contract.a
[ 93%] Built target osrm_contract
Scanning dependencies of target osrm-contract
[ 95%] Building CXX object CMakeFiles/osrm-contract.dir/src/tools/contract.cpp.o
[ 96%] Linking CXX executable osrm-contract
[ 96%] Built target osrm-contract
Scanning dependencies of target osrm-routed
[ 98%] Building CXX object CMakeFiles/osrm-routed.dir/src/tools/routed.cpp.o
[100%] Linking CXX executable osrm-routed
[100%] Built target osrm-routed


cmake --build . --target install

[ 26%] Built target EXTRACTOR
[ 28%] Configuring revision fingerprint
-- Fingerprint unchanged, not regenerating
[ 28%] Built target FingerPrintConfigure
[ 41%] Built target UTIL
[ 42%] Built target osrm_extract
[ 65%] Built target ENGINE
[ 68%] Built target STORAGE
[ 69%] Built target osrm
[ 69%] Built target osrm_store
[ 73%] Built target osrm-datastore
[ 73%] Built target CONTRACTOR
[ 74%] Built target osrm-extract
[ 92%] Built target SERVER
[ 93%] Built target osrm_contract
[ 96%] Built target osrm-contract
[100%] Built target osrm-routed
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/include/osrm/engine/status.hpp
-- Installing: /usr/local/include/osrm/engine/engine_config.hpp
-- Installing: /usr/local/include/osrm/engine/hint.hpp
-- Installing: /usr/local/include/osrm/engine/bearing.hpp
-- Installing: /usr/local/include/osrm/engine/phantom_node.hpp
-- Installing: /usr/local/include/osrm/util/coordinate.hpp
-- Installing: /usr/local/include/osrm/util/json_container.hpp
-- Installing: /usr/local/include/osrm/util/typedefs.hpp
-- Installing: /usr/local/include/osrm/util/strong_typedef.hpp
-- Installing: /usr/local/include/osrm/storage/storage.hpp
-- Installing: /usr/local/include/osrm/storage/storage_config.hpp
-- Installing: /usr/local/include/osrm/extractor/extractor.hpp
-- Installing: /usr/local/include/osrm/extractor/extractor_config.hpp
-- Installing: /usr/local/include/osrm/extractor/travel_mode.hpp
-- Installing: /usr/local/include/osrm/contractor/contractor.hpp
-- Installing: /usr/local/include/osrm/contractor/contractor_config.hpp
-- Installing: /usr/local/include/osrm/route_parameters.hpp
-- Installing: /usr/local/include/osrm/tile_parameters.hpp
-- Installing: /usr/local/include/osrm/osrm.hpp
-- Installing: /usr/local/include/osrm/engine_config.hpp
-- Installing: /usr/local/include/osrm/nearest_parameters.hpp
-- Installing: /usr/local/include/osrm/bearing.hpp
-- Installing: /usr/local/include/osrm/coordinate.hpp
-- Installing: /usr/local/include/osrm/table_parameters.hpp
-- Installing: /usr/local/include/osrm/match_parameters.hpp
-- Installing: /usr/local/include/osrm/storage_config.hpp
-- Installing: /usr/local/include/osrm/osrm_fwd.hpp
-- Installing: /usr/local/include/osrm/status.hpp
-- Installing: /usr/local/include/osrm/json_container.hpp
-- Installing: /usr/local/include/osrm/trip_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/route_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/tile_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/nearest_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/table_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/match_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/trip_parameters.hpp
-- Installing: /usr/local/include/osrm/engine/api/base_parameters.hpp
-- Installing: /usr/local/include/variant/recursive_wrapper.hpp
-- Installing: /usr/local/include/variant/variant.hpp
-- Installing: /usr/local/include/variant/optional.hpp
-- Installing: /usr/local/include/variant/variant_io.hpp
-- Installing: /usr/local/bin/osrm-extract
-- Installing: /usr/local/bin/osrm-contract
-- Installing: /usr/local/bin/osrm-datastore
-- Installing: /usr/local/bin/osrm-routed
-- Installing: /usr/local/lib/libosrm.a
-- Installing: /usr/local/lib/libosrm_extract.a
-- Installing: /usr/local/lib/libosrm_contract.a
-- Installing: /usr/local/lib/libosrm_store.a
-- Installing: /usr/local/lib/pkgconfig/libosrm.pc



sábado, 11 de junho de 2016

apt com barra de progresso


echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar


apt update ; apt ugrade
apt install pacote
apt install cowsay


François Marier - Feeding the Cloud/ posts/

Testar

""
As part of regular operating system hygiene, I run a cron job which updates package metadata and looks for obsolete packages and configuration files.
While there is already some easily available information on how to purge unneeded or obsolete packages and how to clean up config files properly in maintainer scripts, the guidance on how to delete obsolete config files is not easy to find and somewhat incomplete.
These are the obsolete conffiles I started with:
$ dpkg-query -W -f='${Conffiles}\n' | grep obsolete
 /etc/apparmor.d/abstractions/evince ae2a1e8cf5a7577239e89435a6ceb469 obsolete
 /etc/apparmor.d/tunables/ntpd 5519e4c01535818cb26f2ef9e527f191 obsolete
 /etc/apparmor.d/usr.bin.evince 08a12a7e468e1a70a86555e0070a7167 obsolete
 /etc/apparmor.d/usr.sbin.ntpd a00aa055d1a5feff414bacc89b8c9f6e obsolete
 /etc/bash_completion.d/initramfs-tools 7eeb7184772f3658e7cf446945c096b1 obsolete
 /etc/bash_completion.d/insserv 32975fe14795d6fce1408d5fd22747fd obsolete
 /etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf 8df3896101328880517f530c11fff877 obsolete
 /etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf d81013f5bfeece9858706aed938e16bb obsolete

To get rid of the /etc/bash_completion.d/ files, I first determined what packages they were registered to:
$ dpkg -S /etc/bash_completion.d/initramfs-tools
initramfs-tools: /etc/bash_completion.d/initramfs-tools
$ dpkg -S /etc/bash_completion.d/insserv
initramfs-tools: /etc/bash_completion.d/insserv

and then followed Paul Wise's instructions:
$ rm /etc/bash_completion.d/initramfs-tools /etc/bash_completion.d/insserv
$ apt install --reinstall initramfs-tools insserv

For some reason that didn't work for the /etc/dbus-1/system.d/ files and I had to purge and reinstall the relevant package:
$ dpkg -S /etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf
system-config-printer-common: /etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf
$ dpkg -S /etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf
system-config-printer-common: /etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf

$ apt purge system-config-printer-common
$ apt install system-config-printer

The files in /etc/apparmor.d/ were even more complicated to deal with because purging the packages that they come from didn't help:
$ dpkg -S /etc/apparmor.d/abstractions/evince
evince: /etc/apparmor.d/abstractions/evince
$ apt purge evince
$ dpkg-query -W -f='${Conffiles}\n' | grep obsolete
 /etc/apparmor.d/abstractions/evince ae2a1e8cf5a7577239e89435a6ceb469 obsolete
 /etc/apparmor.d/usr.bin.evince 08a12a7e468e1a70a86555e0070a7167 obsolete

I was however able to get rid of them by also purging the apparmor profile packages that are installed on my machine:
$ apt purge apparmor-profiles apparmor-profiles-extra evince ntp
$ apt install apparmor-profiles apparmor-profiles-extra evince ntp

Not sure why I had to do this but I suspect that these files used to be shipped by one of the apparmor packages and then eventually migrated to the evince and ntp packages directly and dpkg got confused.

""

sábado, 4 de junho de 2016

Parâmetro ao Kernel acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); - Solved

Jun  3 09:07:38 TA880 kernel: [    0.233691] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
Jun  3 09:07:38 TA880 kernel: [    1.034521] fjes: module verification failed: signature and/or required key missing - tainting kernel
Jun  3 09:07:38 TA880 kernel: [    7.219632] sp5100_tco: failed to find MMIO address, giving up.


Parâmetros ao Kernel no boot
https://www.kernel.org/doc/Documentation/kernel-parameters.txt


idle=poll
idle=halt
processor.nocst=1
processor.max_cstate=1


processor.nocst=1 worked -- yay, that's a big clue.

O erro sumiu com o parâmetro: pci=noacpi

vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet pci=noacpi"

Atualizar o grub com as novas opções de boot
update-grub

este erro foi corrigido: acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM 

quarta-feira, 1 de junho de 2016

dmesg

[ 5624.944722] PM: Finishing wakeup.
[ 5624.944723] Restarting tasks ... done.
[ 5625.893461] r8169 0000:02:00.0 enp2s0: link up
[ 5632.336552] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 5632.338274] ata4.00: configured for UDMA/133
[ 5777.990198] NVRM: GPU at PCI:0000:01:00: GPU-990d6542-9b56-ec49-604b-ba6bbd5293a5
[ 5777.990203] NVRM: Xid (PCI:0000:01:00): 8, Channel 00000008
[ 5779.993435] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context



Jun  1 12:26:56 TA880 kernel: [ 5777.990198] NVRM: GPU at PCI:0000:01:00: GPU-990d6542-9b56-ec49-604b-ba6bbd5293a5
Jun  1 12:26:56 TA880 kernel: [ 5777.990203] NVRM: Xid (PCI:0000:01:00): 8, Channel 00000008
Jun  1 12:26:58 TA880 kernel: [ 5779.993435] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Jun  1 12:30:49 TA880 kernel: [    0.000000] Linux version 4.5.0-2-amd64 (debian-kernel@lists.debian.org) (gcc version 5.3.1 20160509 (Debian 5.3.1-19) ) #1 SMP Debian 4.5.4-1 (2016-05-16)

Jun  1 12:30:49 TA880 systemd-udevd[287]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:12.0/usb3/3-3 3 2': No such file or directory
Jun  1 12:30:49 TA880 systemd-udevd[296]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:13.2/usb2/2-1 2 2': No such file or directory





1. purge todos os pacotes nouveau

2. criar e adicionar a lista abaixo para /etc/modprobe.d/blacklist.conf

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

3. Refazer a imagem de boot (sudo update-initramfs -u)



COM ISSO NÃO APARECEU NADA DE ERRO NO DMESG.
NADA DE MENSAGEM COM FAILED  NEM NVRM.





















terça-feira, 31 de maio de 2016

OsmandMapCreator latest Download

latest osmandmapcreator
Última versão do osmandmapcreator download
http://download.osmand.net/latest-night-build/


O do github não tem as mainclass

domingo, 29 de maio de 2016

glance

Configurando glance-common ├────────────────────────────┐
  │                                                                                     │
  │ Nenhum banco de dados foi configurado para o glance-registry ou para o glance-api   │
  │ utilizar. Antes de continuar, você deve se certificar que você tem as seguintes     │
  │ informações:                                                                        │
  │                                                                                     │
  │  * o tipo de banco de dados que você quer usar;                                     │
  │  * o nome de máquina do servidor de banco de dados (tal servidor deve               │
  │    permitir conexões TCP a partir deste computador);                                │
  │  * um usuário e uma senha para acessar o banco de dados.                            │
  │                                                                                     │
  │                                                                                     │
  │ Se algum desses requisitos estiver faltando, rejeite essa opção e execute com       │
  │ suporte regular ao SQLite.                                                          │
  │                                                                                     │
  │ Você pode mudar essa configuração depois, executando "dpkg-reconfigure -plow        │
  │ glance-common".                              

quinta-feira, 26 de maio de 2016

Estudos DcE

Nada que causa a separação presta.
A vingança é o excremento da intolerância.
Simplicidade é a esperança.
Se quer fazer alguma coisa, FAZ O BEM.

A forma como te tratam é o carma delas. A forma que você reage, é o seu carma.

"A família é a união de espíritos reunidos por laços kármicos e de afinidade"

"Olhe para sua família, faça uma análise criteriosa...

Perceba que você não demorará muito para perceber que alguns integrantes são pessoas que recebem seu maior afeto, já outras seu desafeto ou no mínimo a sua indiferença.

Não caia nessa armadilha, já que nessas pessoas identificamos nossas maiores necessidades de resgate ou transmutação do karma. Contudo, o que determina o grau de parentesco, de forma que você possa identificar na prática, é o que esse grau de parentesco pode proporcionar como ferramenta pedagógica para a evolução da alma humana."



"O mal que me fazem não me faz mal, o mal que me faz mal é o mal que eu faço, porque me torna um ser mau". Divaldo P Franco

"Quando você diz: Puts! Quero que aquelo filho da puta se foda! Tu já mandou um espírito para lá! O verbo tem uma força imensa no astral!"

"Uma falta sua cuja energia carente é ressaltada no outro, "prende" você àquela pessoa! Isso é magia. Amarração não existe!"

"Tudo o que prende o outro, de alguma forma é negativo"

"Toda vez que você olha para o outro e sente uma repulsa daquele ser, é porque ele está refletindo alguma coisa que está escondido dentro de você"

"Meu objetivo com estas palavras é elucidar aqueles que vivem na escuridão da ignorância. Então se a gente puder ser um pontinho de luz já fez muito. Já está bom! Se eu fizer algúem pensar já valeu!"

"Pague seu carma sendo feliz, se você fez mal para mil pessoas, vem e faz bem pra duas mil, não é muito mais produtivo do que ficar se arrastando durando 70, 100 anos nesse terra?"

quarta-feira, 25 de maio de 2016

Calendário Orage XFCE Debian 9 com Feriados Nacional

Baixar o calendário 2009-2020:
https://www.mozilla.org/media/caldata/BrazilHolidays.ics

Abrir o calendário orage --> Arquivo --> Trocar Dados --> Importar Ler do arquivo: clicar em Abrir e selecionar o BrazilHolidays.ics e então clicar no botão salvar ao lado.

Pronto.



sexta-feira, 13 de maio de 2016

cat kern.log | grep fail

cat kern.log | grep fail
May  9 09:56:41 TA880 kernel: [    0.234007] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May  9 09:56:41 TA880 kernel: [    6.116983] sp5100_tco: failed to find MMIO address, giving up.
May  9 09:56:41 TA880 kernel: [   13.006199] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May  9 09:56:41 TA880 kernel: [   13.006239] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
May  9 20:07:15 TA880 kernel: [31218.598885] nouveau 0000:01:00.0: firmware: failed to load nouveau/nve6_fuc084 (-2)
May  9 20:07:15 TA880 kernel: [31218.598902] nouveau 0000:01:00.0: Direct firmware load for nouveau/nve6_fuc084 failed with error -2
May  9 20:07:15 TA880 kernel: [31218.598925] nouveau 0000:01:00.0: firmware: failed to load nouveau/nve6_fuc084d (-2)
May  9 20:07:15 TA880 kernel: [31218.598931] nouveau 0000:01:00.0: Direct firmware load for nouveau/nve6_fuc084d failed with error -2
May  9 20:07:15 TA880 kernel: [31218.598944] nouveau 0000:01:00.0: msvld: init failed, -19
May  9 20:07:32 TA880 kernel: [31235.697633] nouveau 0000:01:00.0: firmware: failed to load nouveau/nve6_fuc084 (-2)
May  9 20:07:32 TA880 kernel: [31235.697646] nouveau 0000:01:00.0: Direct firmware load for nouveau/nve6_fuc084 failed with error -2
May  9 20:07:32 TA880 kernel: [31235.697668] nouveau 0000:01:00.0: firmware: failed to load nouveau/nve6_fuc084d (-2)
May  9 20:07:32 TA880 kernel: [31235.697675] nouveau 0000:01:00.0: Direct firmware load for nouveau/nve6_fuc084d failed with error -2
May  9 20:07:32 TA880 kernel: [31235.697687] nouveau 0000:01:00.0: msvld: init failed, -19
May 10 10:14:16 TA880 kernel: [    0.234049] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 10 10:14:16 TA880 kernel: [    5.975764] sp5100_tco: failed to find MMIO address, giving up.
May 10 10:14:16 TA880 kernel: [   11.936855] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May 10 10:14:16 TA880 kernel: [   11.936896] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
May 10 12:23:03 TA880 kernel: [    0.237996] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 10 12:23:03 TA880 kernel: [    6.271928] sp5100_tco: failed to find MMIO address, giving up.
May 10 12:23:03 TA880 kernel: [   11.525590] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May 10 12:23:03 TA880 kernel: [   11.525630] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
May 10 13:07:24 TA880 kernel: [    0.234044] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 10 13:07:24 TA880 kernel: [    5.998684] sp5100_tco: failed to find MMIO address, giving up.
May 10 13:07:24 TA880 kernel: [   10.877403] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May 10 13:07:24 TA880 kernel: [   10.877444] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
May 10 21:17:57 TA880 kernel: [    0.233993] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 10 21:17:57 TA880 kernel: [    6.051719] sp5100_tco: failed to find MMIO address, giving up.
May 10 21:17:57 TA880 kernel: [   12.404797] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May 10 21:17:57 TA880 kernel: [   12.404837] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
May 11 09:51:23 TA880 kernel: [    0.237817] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 11 09:51:23 TA880 kernel: [    6.255071] sp5100_tco: failed to find MMIO address, giving up.
May 11 09:51:23 TA880 kernel: [   12.845292] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May 11 09:51:23 TA880 kernel: [   12.845334] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
May 12 13:29:57 TA880 kernel: [    0.234021] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 12 13:29:57 TA880 kernel: [    5.922474] sp5100_tco: failed to find MMIO address, giving up.
May 12 13:29:58 TA880 kernel: [   11.818560] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May 12 13:29:58 TA880 kernel: [   11.818601] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
May 12 22:31:44 TA880 kernel: [    0.234240] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 12 22:31:44 TA880 kernel: [    6.033742] sp5100_tco: failed to find MMIO address, giving up.
May 12 22:31:44 TA880 kernel: [   11.231312] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May 12 22:31:44 TA880 kernel: [   11.231333] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
May 13 12:23:08 TA880 kernel: [    0.234230] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 13 12:23:08 TA880 kernel: [    6.463767] sp5100_tco: failed to find MMIO address, giving up.
May 13 12:23:08 TA880 kernel: [   13.856957] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168e-2.fw (-2)
May 13 12:23:08 TA880 kernel: [   13.856997] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2



kern.log

May 14 18:33:35 TA880 NetworkManager[450]:  [1463261615.5016] manager: wake requested (sleeping: yes  enabled: yes)
May 14 18:33:35 TA880 NetworkManager[450]:  [1463261615.5016] manager: waking up...
May 14 18:34:11 TA880 kernel: [  777.788625] NVRM: RmInitAdapter failed! (0x53:0xffff:2159)
May 14 18:34:11 TA880 kernel: [  777.788683] NVRM: rm_init_adapter failed for device bearing minor number 0
May 14 18:34:11 TA880 kernel: [  777.788705] NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5
May 14 18:34:34 TA880 kernel: [  801.364487] NVRM: GPU at PCI:0000:01:00: GPU-990d6542-9b56-ec49-604b-ba6bbd5293a5
May 14 18:34:34 TA880 kernel: [  801.364530] NVRM: Xid (PCI:0000:01:00): 8, Channel 00000008
May 14 18:34:36 TA880 kernel: [  803.372097] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
May 14 18:37:07 TA880 NetworkManager[450]:  [1463261827.4589] caught SIGTERM, shutting down normally.
May 14 18:37:07 TA880 NetworkManager[450]:  [1463261827.4596] exiting (success)



cat /var/log/syslog | grep fail

May 14 14:41:22 TA880 systemd-udevd[4899]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:12.0/usb3/3-3 3 3': No such file or directory
May 14 16:02:09 TA880 systemd-udevd[288]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:12.0/usb3/3-3 3 2': No such file or directory
May 14 16:02:09 TA880 systemd-udevd[294]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:13.2/usb2/2-1 2 2': No such file or directory
May 14 16:02:09 TA880 systemd-udevd[270]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 1' failed with exit code 99.
May 14 16:02:09 TA880 systemd-udevd[269]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 0' failed with exit code 99.
May 14 16:02:09 TA880 kernel: [    0.237461] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 14 16:02:09 TA880 kernel: [    1.030505] fjes: module verification failed: signature and/or required key missing - tainting kernel
May 14 16:02:09 TA880 kernel: [    6.779085] sp5100_tco: failed to find MMIO address, giving up.
May 14 16:02:09 TA880 ntpd[587]: bind(20) AF_INET6 fe80::230:67ff:fe9c:73ac%2#123 flags 0x11 failed: Cannot assign requested address
May 14 16:02:09 TA880 ntpd[587]: failed to init interface for address fe80::230:67ff:fe9c:73ac%2
May 14 18:34:11 TA880 kernel: [  777.788625] NVRM: RmInitAdapter failed! (0x53:0xffff:2159)
May 14 18:34:11 TA880 kernel: [  777.788683] NVRM: rm_init_adapter failed for device bearing minor number 0
May 14 18:34:11 TA880 kernel: [  777.788705] NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5
May 14 18:34:11 TA880 systemd[1]: lightdm.service: Unit entered failed state.
May 14 18:39:35 TA880 systemd-udevd[287]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:12.0/usb3/3-3 3 2': No such file or directory
May 14 18:39:35 TA880 systemd-udevd[289]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:13.2/usb2/2-1 2 2': No such file or directory
May 14 18:39:35 TA880 systemd-udevd[276]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 1' failed with exit code 99.
May 14 18:39:35 TA880 systemd-udevd[280]: Process '/usr/sbin/alsactl -E HOME=/run/alsa restore 0' failed with exit code 99.
May 14 18:39:35 TA880 kernel: [    0.237503] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
May 14 18:39:35 TA880 kernel: [    1.042370] fjes: module verification failed: signature and/or required key missing - tainting kernel
May 14 18:39:35 TA880 kernel: [    7.673603] sp5100_tco: failed to find MMIO address, giving up.
May 14 18:39:37 TA880 ntpd[599]: bind(20) AF_INET6 fe80::230:67ff:fe9c:73ac%2#123 flags 0x11 failed: Cannot assign requested address
May 14 18:39:37 TA880 ntpd[599]: failed to init interface for address fe80::230:67ff:fe9c:73ac%2


terça-feira, 3 de maio de 2016

pendrive bugado

Teste de badblocks
# badblocks -vsw /dev/sdb
Verificando por blocos defeituosos em modo de leitura e escrita
A partir do bloco 0 ao 3910655
Testando com padrão 0xaa: done                                                
Lendo e comparando: done                                                
Testando com padrão 0x55: done                                                
Lendo e comparando: done                                                
Testando com padrão 0xff: done                                                
Lendo e comparando: done                                                
Testando com padrão 0x00: done                                                
Lendo e comparando: done                                                
Pass completed, 0 bad blocks found. (0/0/0 errors)


Sem erros de badblocks

# fdisk /dev/sdb
O dispositivo não contém nem uma tabela de partição DOS válida nem um rótulo de disco Sun, OSF ou SGI
Fazendo um novo rótulo de disco DOS com o identificador de disco 0xee1f9bef.
As alterações ficarão na memória somente, até que você decida gravá-las.
Depois disso, claro, o conteúdo anterior não será recuperável.

Aviso: a opção inválida 0x0000 da tabela de partições 4 será corrigida por gravação (w)

Comando (m para ajuda): m
Comando - ação
   a   alterna a opção "inicializável"
   b   edita rótulo BSD no disco
   c   alterna a opção "compatibilidade"
   d   exclui uma partição
   l   lista os tipos de partição conhecidos
   m   mostra este menu
   n   cria uma nova partição
   o   cria uma nova tabela de partições DOS vazia
   p   mostra a tabela de partição
   q   sai sem salvar as alterações
   s   cria um novo rótulo de disco Sun vazio
   t   altera a identificação da partição para o sistema
   u   altera as unidades das entradas mostradas
   v   verifica a tabela de partições
   w   grava a tabela no disco e sai
   x   funcionalidade adicional (somente para usuários avançados)

Comando (m para ajuda): s
Criando um novo rótulo de disco Sun. As alterações permanecerão
somente em memória até que você decida gravá-las. Após isto, é claro,
o conteúdo anterior não poderá mais ser recuperado.


Comando (m para ajuda): p

Disco /dev/sdb (Rótulo de disco do Sun): 124 cabeçotes, 62 setores, 1017 cilindros
Unidades = setores de 1 * 512 bytes

Dispositivo Opção   Início      Fim    Blocos   Id  Sistema
/dev/sdb1             0   7718752   3859376   83  Linux nativa
/dev/sdb2  u    7718752   7818696     49972   82  Linux swap
/dev/sdb3             0   7818696   3909348    5  Disco inteiro

Comando (m para ajuda): v

Comando (m para ajuda): d
Número da partição (1-8): 3
Se você deseja manter compatibilidade com SunOS/Solaris, considere deixar
esta partição como um disco inteiro (5), começando em 0, com 7818696 setores

Comando (m para ajuda): w
A tabela de partições foi alterada!

Chamando ioctl() para reler tabela de partições.
Sincronizando discos.

Comando (m para ajuda): p

Disco /dev/sdb (Rótulo de disco do Sun): 124 cabeçotes, 62 setores, 1017 cilindros
Unidades = setores de 1 * 512 bytes

Dispositivo Opção   Início      Fim    Blocos   Id  Sistema
/dev/sdb1             0   7718752   3859376   83  Linux nativa
/dev/sdb2  u    7718752   7818696     49972   82  Linux swap

Comando (m para ajuda): d
Número da partição (1-8): 1

Comando (m para ajuda): d
Número da partição (1-8): 2

Comando (m para ajuda): p

Disco /dev/sdb (Rótulo de disco do Sun): 124 cabeçotes, 62 setores, 1017 cilindros
Unidades = setores de 1 * 512 bytes

Dispositivo Opção   Início      Fim    Blocos   Id  Sistema

Comando (m para ajuda): w
A tabela de partições foi alterada!

Chamando ioctl() para reler tabela de partições.
Sincronizando discos.


Pode formatar usando o gparted!