AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / user-1104685

DanW58's questions

Martin Hope
DanW58
Asked: 2024-10-21 01:25:21 +0800 CST

Em /etc/fstab, qual é a diferença entre "/dev/disk/by-uuid/" e "UUID="?

  • 14

Adicionei 3 partições que quero montar na inicialização, mas o conselho que encontrei em outro lugar sobre a nova sintaxe do fstab só concorda com um dos DOIS estilos já presentes no meu fstab, o que me deixa muito confuso. O conselho que encontrei em outro lugar foi,

Entry in /etc/fstab:
<UUID> <mount directory> <FS type> <mount options> <dump> <pass>
Example:
UUID=5caaee32-c3d3-429e-bad7-2898cf923805  /data  ext4  defaults 0 0

Mas o conteúdo do meu /etc/fstab dizia:

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/disk/by-uuid/42301925-9786-4ab8-b56c-a3252accf5ef / ext4 defaults 0 1
/dev/disk/by-uuid/F759-075A /boot/efi vfat defaults 0 1
/dev/disk/by-uuid/df063034-c8da-4f14-b1c8-52cdccecc06f /tmp ext4 defaults 0 2
UUID=da0ad11a-8fd7-431a-a49a-d883037aa2c8 /LamaSpace ext4 defaults 0 2
/dev/disk/by-uuid/4acdc978-c30b-4b3f-bbf6-0b7b99094463 /home ext4 defaults 0 2

Note que somente minha partição /LamaSpace usa a sintaxe dada acima; as outras partições usam /dev/disk/by-uuid/ ... de resto, sintaxe idêntica. Essas duas expressões idiomáticas são equivalentes?

Informações extras: Estou no Ubuntu 24.04. Todas as minhas partições estão em um único HDD Barracuda de 8 TB:

 $ blkid
/dev/sda3: UUID="42301925-9786-4ab8-b56c-a3252accf5ef" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="1f981653-4a7f-48ff-958e-d9e7ec1de51e"
/dev/sda1: UUID="F759-075A" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="91e5f592-dc00-455a-af9a-90c3ba7e914b"
/dev/sda2: UUID="da0ad11a-8fd7-431a-a49a-d883037aa2c8" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="fdcdf7ad-c10b-4a98-b730-7a20db907e91"
/dev/sda4: UUID="4acdc978-c30b-4b3f-bbf6-0b7b99094463" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="7e2715ef-3ae8-44da-8581-bbcc8c59b9a8"
/dev/sda5: UUID="c2bd1f6c-67af-4ea8-98ef-a9c88d92f433" TYPE="swap" PARTUUID="c703710a-6545-49c2-8845-8be9dfc53e2e"
/dev/sda6: UUID="30DD-1315" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="SpareEFI" PARTUUID="eccf77e6-ee55-4f01-bd05-abf9b9dcc24a"
/dev/sda7: UUID="df063034-c8da-4f14-b1c8-52cdccecc06f" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="NEWTEMP" PARTUUID="c752818c-9dd4-453c-9892-fac0db4a2b4a"
/dev/sda8: UUID="89de958a-8997-44e3-92e0-122e1272675c" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Virtual" PARTUUID="bc89cc7e-0798-4ff7-90cd-cfd36aa9cc6e"
/dev/sda9: UUID="73e18c48-92d7-4f37-b55b-da655f461824" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Sandbox" PARTUUID="5e210dd0-d9fa-4968-a27b-a2753e9c0476"

(Minhas três novas partições são sda6, sda8 e sda9, que montei manualmente, mas ainda não estão presentes em /etc/fstab.)

fstab
  • 1 respostas
  • 641 Views
Martin Hope
DanW58
Asked: 2024-05-10 00:38:39 +0800 CST

Problema ao construir plib ... ./configure não vê OpenGL

  • 5

O pacote plib para motores de jogo é distribuído apenas como fontes, e estou seguindo as instruções ao máximo, acredito; tenho todas as dependências, ou pensei assim, mas quando executo ./configure diz que não há GL funcionando.

Isso é muito estranho para mim, porque eu já tenho libglut-dev E libglut3.12 instalados, assim como freeglut3-dev e todos os pacotes mesa.

Abaixo está a saída completa:

danw58@danw58-MS-7E12:~/Downloads/zip/plib/plib-1.8.5$ ./autogen.sh
Running aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
Running automake
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:14: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.in:14: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.in:34: installing './compile'
src/fnt/Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
src/js/Makefile.am:11: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/net/Makefile.am:11: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/psl/Makefile.am:15: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/puAux/Makefile.am:23: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/pw/Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/sg/Makefile.am:11: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/sl/Makefile.am:15: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/ssg/Makefile.am:32: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/ssgAux/Makefile.am:34: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Running autoconf
configure.in:14: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from...
configure.in:14: the top level
configure.in:309: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.in:309: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.in:309: the top level
configure.in:377: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:377: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.in:377: the top level
configure.in:377: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:377: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.in:377: the top level
configure.in:394: warning: AC_OUTPUT should be used without arguments.
configure.in:394: You should run autoupdate.
======================================
Now you are ready to run './configure'
======================================
danw58@danw58-MS-7E12:~/Downloads/zip/plib/plib-1.8.5$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/danw58/Downloads/zip/plib/plib-1.8.5/missing: Unknown `--is-lightweight' option
Try `/home/danw58/Downloads/zip/plib/plib-1.8.5/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
includedir changed to ${prefix}/include/plib libdir is ${exec_prefix}/lib
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ranlib... ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pthread_create in -lpthread... no
checking for glNewList in -lGL... no
checking for glNewList in -lMesaGL... no
configure: error: could not find working GL library
danw58@danw58-MS-7E12:~/Downloads/zip/plib/plib-1.8.5$ 
compiling
  • 1 respostas
  • 40 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve