Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fstab ed UUID
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Fri Feb 17, 2017 9:55 am    Post subject: Fstab ed UUID Reply with quote

Ciao ragazzi, vorrei modificare il mio fstab inserendo gli UUID al posto dei /dev/sd*

Questo è il mio attuale fstab
Code:
/dev/sda1      /boot/efi       vfat      noauto,noatime   1 2
/dev/sdb2      /      ext4      noatime      0 1
/dev/sda7      /home      ext4      noatime      0 1
/dev/sda6      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
/dev/fd0      /mnt/floppy   auto      noauto      0 0
tmpfs      /var/tmp/portage      tmpfs   size=8G,uid=portage,gid=portage,mode=775,noatime   0 0


questo il risultato di blkid (solo delle partizioni di mio interesse)
Code:
root on hptoo ven feb 17 09:22:53
[dir.= /home/martoo]  > blkid
/dev/sdb2: UUID="254cbe70-ff7d-47e4-9a6a-e6a771ba66eb" TYPE="ext4" PARTUUID="565613c9-02"
/dev/sda1: LABEL="SYSTEM" UUID="D224-521F" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="06a19107-706c-4700-8087-1d6a2a5334ff"
/dev/sda6: UUID="c236450a-9460-4315-989f-bfcb0d4e63ee" TYPE="swap" PARTUUID="69cc3fed-50ec-4be0-a39e-fc7971ce0ef3"
/dev/sda7: UUID="5849d6b6-3410-41d1-a1ec-a3cb9f78a9e8" TYPE="ext4" PARTUUID="aa40d595-9255-4085-b481-7071fe3cb20e"


So di dover sostituire i vari /dev/sd* con i rispettivi UUID, ma guardando anche sulla wiki l'esempio, gli UUID devono essere di 32 caratteri.
Qui viene il mio dubbio. La partizione di boot in vfat ha un UUID di 8 caratteri mentre un PARTUUID di 32 caratteri. Tutte le altre partizioni hanno un UUID di 32 caratteri. IL mio dubbio è sulla partizione di boot, con quale devo sostiutire?
Spero di essermi spiegato. :D

Un altro dubbio che ho è, avendo la home condivisa tra due distro, ed il boot per entrambe le distro e per windows, facendo questa operazione dovrei moificare il fstab anche dell'altra distro? Creerebbe problemi con win il modificare il fstab di gentoo, ibn particolare il boot che è condiviso? Sono certo di no, ma preferisco domandare....
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30906
Location: here

PostPosted: Fri Feb 17, 2017 10:20 am    Post subject: Re: Fstab ed UUID Reply with quote

zar Marco wrote:
So di dover sostituire i vari /dev/sd* con i rispettivi UUID, ma guardando anche sulla wiki l'esempio, gli UUID devono essere di 32 caratteri.
Qui viene il mio dubbio. La partizione di boot in vfat ha un UUID di 8 caratteri mentre un PARTUUID di 32 caratteri. Tutte le altre partizioni hanno un UUID di 32 caratteri. IL mio dubbio è sulla partizione di boot, con quale devo sostiutire?

Devi usare quello a 8 caratteri (spiegazione del perche' e' solo 8 caratteri)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Fri Feb 17, 2017 10:25 am    Post subject: Reply with quote

Perfetto grazie, quindi anche se io volessi creare una partizione NTFS condivisa tra win e gentoo l'eventuale UUID sarebbe comunque da 8 caratteri, come vfat insomma
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30906
Location: here

PostPosted: Fri Feb 17, 2017 10:38 am    Post subject: Reply with quote

zar Marco wrote:
Perfetto grazie, quindi anche se io volessi creare una partizione NTFS condivisa tra win e gentoo l'eventuale UUID sarebbe comunque da 8 caratteri, come vfat insomma

Dal link che ho postato sembrerebbe che NTFS ne abbia 16
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Fri Feb 17, 2017 10:56 am    Post subject: Reply with quote

Hai ragione
Ricapitolando quello che ho capito:
vfat 8 caratteri
ext4-swap 32 caratteri
NTFS 16 caratteri
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Fri Feb 17, 2017 6:25 pm    Post subject: Reply with quote

Continuo qui un attimo, perché comunque lo vorrei mettere in fstab, se creo una partizione dati in NTFS, Gentoo mi lascia leggere e scrivere nativamente o dovrei fare qualche procedura?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30906
Location: here

PostPosted: Fri Feb 17, 2017 6:42 pm    Post subject: Reply with quote

zar Marco wrote:
Continuo qui un attimo, perché comunque lo vorrei mettere in fstab, se creo una partizione dati in NTFS, Gentoo mi lascia leggere e scrivere nativamente o dovrei fare qualche procedura?

No basta installare sys-fs/ntfs3g
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum