12.1 complains; what's wrong with this fstab??

12.1 installer (ontop of an 11.4 install) complained about “some partitions on /dev/sda7 are mounted by kernel-device name …”

Here’s my fstab:
/dev/sda7 / ext3 defaults 1 1
/dev/sda6 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
/dev/sda8 /home ext3 acl,user_xattr 1 0
/dev/sda2 /windows/C ntfs-3g user,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 /data1 auto noauto,user 0 0

All are device id; what gives?

Thanks,

S

That should work but the new standard (for some time) has been to use somthing like this


/dev/disk/by-id/ata-Maxtor_6Y160M0_Y45ZY7ZE-part5 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-WDC_WD5000AACS-00G8B1_WD-WCAUH0818339-part1 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-WDC_WD5000AACS-00G8B1_WD-WCAUH0818339-part2 /                    ext4       acl,user_xattr        1 
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/disk/by-id/ata-WDC_WD5000AACS-00G8B1_WD-WCAUH0818339-part3 /vm                  ext4       defaults              1
/dev/disk/by-id/ata-WDC_WD5000AACS-00G8B1_WD-WCAUH0818339-part6 /home                ext4       defaults              1 2


ie using the by-id method

So I guess the new install is just grossing about using the old ways.

There are advantages and disadvantages it all depends on what you are doing and your setup. .

OK, thanks.

So, that suggests a bug in 12.1 - if it complains about mount by device-name which they aren’t.

I’m not sure whether to go for an upgrade, or hold fire…

This is on a laptop; all I’m using this for is general stuff - web browsing, some development coding etc.

Thanks again

  • SR

On 2011-11-21 12:16, acseuser wrote:
>
> OK, thanks.
>
> So, that suggests a bug in 12.1 - if it complains about mount by
> device-name which they aren’t.

No, it is intentional, since a year or two. Your fstab is incorrect,
correct it first.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I think you are a bit confused.

“/dev/sda7” is a device name (or kernel device name).

Something like “/dev/disk/by-id/ata-Maxtor_6Y160M0_Y45ZY7ZE-part7” is the device ID. But don’t use that one, as it will be wrong for your disk.

Ahh, OK. I thought that /dev/sda- was a device ID; but it’s not. … I subsequently found a doc. from Novell explaining that the defaults had changed.

Thanks all

  • SR

Not sure if this will be any help to you or not but I’ll throw it out there anyway

I tend to have numerous partitions as all but one of the machines here has at least two operating systems on it (one has as many as five!), add to those things like /home partitions, windows user profiles, backup partitions, things can get confusing

To make it easier to identify partitions I give them a label when creating them and mount them in fstab by label as opposed to device id, don’t know if there’s any reason to not use by label mounting but I find it works well and very conveniently for me

I think the only downside is that the guy installing needs to think up the names :slight_smile:

On 2011-11-21 23:06, Ecky wrote:

> To make it easier to identify partitions I give them a label when
> creating them and mount them in fstab by label as opposed to device id,
> don’t know if there’s any reason to not use by label mounting but I find
> it works well and very conveniently for me

I do the same.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)