fstab
Ralph Alvy
ralph at ralphalvy.com
Thu Jul 26 01:16:53 UTC 2007
Terence Simpson wrote:
> Ralph Alvy wrote:
>> Derek Broughton wrote:
>>
>>
>>>> I want total control over fstab,
>>>> using traditional entries like /dev/hda1, /dev/hda2, etc., along with
>>>> my own hard-coded mount points.
>>>>
>>> You have it - /etc/fstab was automatically modified (once) to use UUIDs
>>> for
>>> mounting rather than /dev names, because the /dev names are changing.
>>> If it changes at any other time, it's because you made a change, or
>>> installed
>>> something non-standard that does so. Kubuntu _can_ change the file if
>>> you use "System Settings > Advanced > System Administration > Disk &
>>> Filesystems", but that's under your control. I would suggest you not
>>> use it, anyway, as I see it has trouble parsing fstab properly.
>>>
>>
>> I seem to have solved these problems by removing all lines in fstab with
>> device labels except my root and swap partitions, and then
>> using /dev/sda... instead of /dev/hda... lines in fstab. I had been
>> using /dev/hda... lines because the commented-out line above each label
>> line referenced partitions that way. I never bothered to check my /dev
>> folder to notice that Kubuntu was using /dev/sda... device names.
>>
>>
>>
>>
>>
> That's why the switch to UUIDs happened, it's up to the kernel/udev/hal
> as to what the device nodes get called, but UUIDs are constant.
Well, now I notice that when I reboot, the device names switch back from
hda... to sda... again. Then if I edit fstab, to accomodate this, the next
boot it switches back to hda... names again. I guess I should have kept
those UUIDs. I don't experience this with any other linux distro (Fedora
Core, Arch, Slackware, for instance), and I use hal and udev in all of
them. I'll have to read up on UUIDs and see how to generate them anew and
then use them in fstab.
More information about the kubuntu-users
mailing list