Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] VIM marks PARTUUID=... in fstab as an error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 58

PostPosted: Sat Nov 05, 2016 9:55 am    Post subject: [solved] VIM marks PARTUUID=... in fstab as an error Reply with quote

Hello,

when entering "PARTUUID=..." in my /etc/fstab, the VIM editor marks the "PARTUUID=" as an error, but it accepts "UUID=".

Is this an issue of VIM or should "PARTUUID=" be avoided? From what I read, PARTUUID seems to be a good choice (especially, if you plan to format your partition), so it looks like an issue of VIM?

Regards,
Johannes


Last edited by CPUFan on Sat Nov 05, 2016 11:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Sat Nov 05, 2016 10:07 am    Post subject: Reply with quote

CPUFan,

PARTUUID= should work. However, its not very safe for MSDOS partition tables when its used with logical partitions. That is, partitions above 4.

Consider the following case. You have a MSDOS partition table and something in fstab is on
PARTUUID="0553caf4-07"
The 0553caf4 is the volume ID and the -07 is the partition number. Say sda7, which is a logical partition.

For some reason, you now delete partition 5. All your logical partitions are renumbered to the next number down.
So sda7 has become sda6 and your fstab and maybe other things are broken.

UUID is a property of a filesystem, that will continue to work until you make a new filesystem.
PARTUUID is safe with GPT.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 58

PostPosted: Sat Nov 05, 2016 10:33 am    Post subject: Reply with quote

Thanks NeddySeagoon. In my case, I do indeed have an MSDOS partition. Maybe VIM was clever enough to find that out :)
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5673
Location: Removed by Neddy

PostPosted: Sat Nov 05, 2016 10:54 am    Post subject: Reply with quote

Sounds like a vim style needs updating
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 58

PostPosted: Sat Nov 05, 2016 11:48 am    Post subject: Reply with quote

Naib wrote:
Sounds like a vim style needs updating


Good idea, I'll ask the VIM people whether it's a bug and whether it should be fixed.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2657

PostPosted: Sat Nov 05, 2016 4:23 pm    Post subject: Reply with quote

CPUFan wrote:
Good idea, I'll ask the VIM people whether it's a bug and whether it should be fixed.

Are you having the fstab syntax installed?
Back to top
View user's profile Send private message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 58

PostPosted: Sat Nov 05, 2016 11:37 pm    Post subject: Reply with quote

charles17 wrote:
CPUFan wrote:
Good idea, I'll ask the VIM people whether it's a bug and whether it should be fixed.

Are you having the fstab syntax installed?


Looks so, since everything else is being highlighted correctly.

Anyways, they're submitting a fix and it does not seem to be a gentoo-specific problem, so I'll set it "SOLVED"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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