Installing openSUSE 11.4 mount-by message

I’m trying to update a 11.1 installation. As I start the installation I get a message “openSuse 11.0 partition /dev/sda5 Change the mount-by to any other method for all partitions.” Also the message said go back and reboot and make the change. What is this all about, how do I do this.
Thank you

On 2011-04-14 02:36, pestocat wrote:
>
> I’m trying to update a 11.1 installation. As I start the installation I
> get a message “openSuse 11.0 partition /dev/sda5 Change the mount-by to
> any other method for all partitions.” Also the message said go back and
> reboot and make the change. What is this all about, how do I do this.

You have to edit /etc/fstab, and change all devices references like
/dev/sda1, or /dev/hda1 to references to the equivalent
/dev/disk/by-something/something - and you have to do this change yourself
and verify it boots and works before attempting the upgrade.

This was documented on the upgrade notes years back.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

This may be helpful to you:

TeraByte Unlimited Knowledge Base

Thank you deano, the reference was very useful
However a couple questions:

  1. I ran /sbin/blkid and I see 3 UUIDs how do I know which one is root and which one is swap. Do I take them in order, the first on the list is for swap, second root, and the 3rd for /home

  2. menu.lst has 3 sections, the first section looks like the reference and seems OK, the second section has only the root id listed but same id as above. The 3rd section has name of openSuse 10.2, the long ago OS version. No info for UUID here.

You can


cd cd /dev/disk/by-id
## or 
ls -la   cd /dev/disk/by-id

and you’ll be able to list the relationships

For example:


tar@home:/dev/disk/by-id> ls -l  
total 0
lrwxrwxrwx 1 root root  9 Apr 14 04:55 ata-HITACHI_HDS7225SASUN250G_VNRJ9HC6CX7R4M -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 14 04:58 ata-HITACHI_HDS7225SASUN250G_VNRJ9HC6CX7R4M-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Apr 14 04:55 ata-HL-DT-ST_DVDRAM_GH22NS50_K2HA3OF1413 -> ../../sr0
lrwxrwxrwx 1 root root  9 Apr 14 04:55 ata-ST31000528AS_9VP5X58H -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 14 04:55 ata-ST31000528AS_9VP5X58H-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 Apr 14 04:58 ata-ST31000528AS_9VP5X58H-part10 -> ../../sda10
lrwxrwxrwx 1 root root 10 Apr 14 04:55 ata-ST31000528AS_9VP5X58H-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 14 04:55 ata-ST31000528AS_9VP5X58H-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Apr 14 04:58 ata-ST31000528AS_9VP5X58H-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Apr 14 04:59 ata-ST31000528AS_9VP5X58H-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Apr 14 04:55 ata-ST31000528AS_9VP5X58H-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Apr 14 04:55 ata-ST31000528AS_9VP5X58H-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Apr 14 04:55 scsi-200e09e0000b7d245 -> ../../sdc
lrwxrwxrwx 1 root root 10 Apr 14 04:55 scsi-200e09e0000b7d245-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Apr 14 04:55 scsi-SATA_HITACHI_HDS7225VNRJ9HC6CX7R4M -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 14 04:58 scsi-SATA_HITACHI_HDS7225VNRJ9HC6CX7R4M-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Apr 14 04:55 scsi-SATA_ST31000528AS_9VP5X58H -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 14 04:55 scsi-SATA_ST31000528AS_9VP5X58H-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 Apr 14 04:58 scsi-SATA_ST31000528AS_9VP5X58H-part10 -> ../../sda10
lrwxrwxrwx 1 root root 10 Apr 14 04:55 scsi-SATA_ST31000528AS_9VP5X58H-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 14 04:55 scsi-SATA_ST31000528AS_9VP5X58H-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Apr 14 04:58 scsi-SATA_ST31000528AS_9VP5X58H-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Apr 14 04:59 scsi-SATA_ST31000528AS_9VP5X58H-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Apr 14 04:55 scsi-SATA_ST31000528AS_9VP5X58H-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Apr 14 04:55 scsi-SATA_ST31000528AS_9VP5X58H-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Apr 14 04:55 wwn-0x5000c5002014aa0e -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 14 04:55 wwn-0x5000c5002014aa0e-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 Apr 14 04:58 wwn-0x5000c5002014aa0e-part10 -> ../../sda10
lrwxrwxrwx 1 root root 10 Apr 14 04:55 wwn-0x5000c5002014aa0e-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 14 04:55 wwn-0x5000c5002014aa0e-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Apr 14 04:58 wwn-0x5000c5002014aa0e-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Apr 14 04:59 wwn-0x5000c5002014aa0e-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Apr 14 04:55 wwn-0x5000c5002014aa0e-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Apr 14 04:55 wwn-0x5000c5002014aa0e-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Apr 14 04:55 wwn-0x5001480000000000 -> ../../sr0

Use the ata-xxx labels.

The disk by-id naming convention eliminates potential problems caused when the system uses removable devices and reassigns the /dev/sdx labels.

Insertion of a USB device may install it as /dev/sdb1 moving your 2nd internal HDD to /dev/sdc1.

  1. Have a look at output from
ls -l /dev/disk/by-uuid

That will give you the mapping to kernel device naming, and compare with the entries in /etc/fstab

  1. Maybe post menu.lst here, so someone can advise further. (I’m not sure I understand you correctly).
cat /boot/grub/menu.lst

More information

fstab lists part 1 swap
part 2 /
part 6 /home

but blkid lists
/dev/sda1 TYPE:=“swap”
/dev/sda2 UUID=“the uuid”
/dev/sda5 UUID=“the uuid”
/dev/sda6 UUID=“the uuid”
I’m confused!

On 2011-04-15 01:06, pestocat wrote:
> 1. I ran /sbin/blkid and I see 3 UUIDs how do I know which one is root
> and which one is swap. Do I take them in order, the first on the list is
> for swap, second root, and the 3rd for /home

Certainly not.

The output of blkid is like this:

/dev/sda1: LABEL=“a_boot_1” UUID=“5a4b2ccf-da98-404f-911d-943e88c3acfb”
TYPE=“ext2”

So you have to search for sda1 in fstab and replace the entry.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Opps Sorry I missed some replies.
My /dev/disk/by-uuid looks like this

lrwxrwxrwx 1 root root 10 2011-04-13 17:05 5832d7c8-fe6b-409e-8424-a0208f01f695
→ …/…/sda5
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 b1f193d6-75cd-405a-9b99-327d868d8a94
→ …/…/sda6
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 e4234464-dafd-481d-9072-b78749ecefdd
→ …/…/sda2

The confusing part is that I don’t have a UUID for swap

the menu.lst looks like this

Modified by YaST2. Last modification on Wed Dec 22 14:22:05 PST 2010

modified by GEL, 4/14/2011 for using UUIDs

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don’t change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1 - 2.6.27.56-0.1
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.56-0.1-pae
root=/dev/disk/by-id/ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part2
resume=/dev/disk/by-id/ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part1 splash=silent
showopts vga=0x317
initrd /boot/initrd-2.6.27.56-0.1-pae

###Don’t change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe – openSUSE 11.1 - 2.6.27.56-0.1
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.56-0.1-pae
root=/dev/disk/by-id/ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part2 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
initrd /boot/initrd-2.6.27.56-0.1-pae

###Don’t change this comment - YaST2 identifier: Original name: openSUSE 10.2 - 2.6.18.8-0.3 (/dev/sda5)###
title openSUSE 10.2 - 2.6.18.8-0.3 (/dev/sda5)
root (hd0,4)
configfile /boot/grub/menu.lst

The confusing part is that I don’t have a UUID for swap

You can use /dev/disk/by-id instead (see the ‘resume=’ entries in your menu.lst)

dev/disk/by-id/ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part1

so that in /etc/fstab you have

/dev/disk/by-id/ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part1 swap                 swap       defaults              0 0

In fact my /etc/fstab uses /dev/disk/by-id/ links:

/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080402BB3F00WDD6EV6C-part5 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080402BB3F00WDD6EV6C-part6 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080402BB3F00WDD6EV6C-part7 /home                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080402BB3F00WDD6EV6C-part1 /windows/C           ntfs-3g    defaults,locale=en_GB.UTF-8 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
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

Using /ls -la /dev/disk/by-id
I get

/dev/disk/by-id:
total 0
drwxr-xr-x 2 root root 400 2011-04-13 17:05 .
drwxr-xr-x 5 root root 100 2011-04-13 17:05 …
lrwxrwxrwx 1 root root 9 2011-04-13 17:05 ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897 → …/…/sda
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part1 → …/…/sda1
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part2 → …/…/sda2
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part3 → …/…/sda3
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part5 → …/…/sda5
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part6 → …/…/sda6
lrwxrwxrwx 1 root root 9 2011-04-13 17:05 edd-int13_dev80 → …/…/sda
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 edd-int13_dev80-part1 → …/…/sda1
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 edd-int13_dev80-part2 → …/…/sda2
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 edd-int13_dev80-part3 → …/…/sda3
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 edd-int13_dev80-part5 → …/…/sda5
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 edd-int13_dev80-part6 → …/…/sda6
lrwxrwxrwx 1 root root 9 2011-04-13 17:05 scsi-SATA_WDC_WD2500KS-00_WD-WCANKC423897 → …/…/sda
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 scsi-SATA_WDC_WD2500KS-00_WD-WCANKC423897-part1 → …/…/sda1
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 scsi-SATA_WDC_WD2500KS-00_WD-WCANKC423897-part2 → …/…/sda2
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 scsi-SATA_WDC_WD2500KS-00_WD-WCANKC423897-part3 → …/…/sda3
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 scsi-SATA_WDC_WD2500KS-00_WD-WCANKC423897-part5 → …/…/sda5
lrwxrwxrwx 1 root root 10 2011-04-13 17:05 scsi-SATA_WDC_WD2500KS-00_WD-WCANKC423897-part6 → …/…/sda6

On 2011-04-15 01:36, pestocat wrote:
>
> More information
>
> fstab lists part 1 swap
> part 2 /
> part 6 /home

I’m sure that is not fstab, that’s your interpretation.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2011-04-15 02:06, pestocat wrote:

> Opps Sorry I missed some replies.
> My /dev/disk/by-uuid looks like this

Please use code tags.

> The confusing part is that I don’t have a UUID for swap

You can have a label if you define it, and by-id.

>
> the menu.lst looks like this

Looks OK to me. Don’t forget the map file.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

AS Carlos E.R. notes it is your interpretation. In menu.lst swap is shown as the resume=.

I thought what I have to do is get rid of the “by-id” and use the UUID and it seems in my case there is no UUID for swap. This is what is confusing me. And what is the “map file” that I should not forget.

deano, my fstab looks like yours

code:

/dev/disk/by-id/ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part2 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/ata-WDC_WD2500KS-00MJB0_WD-WCANKC423897-part6 /home ext3 acl,user_xattr 1 2
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

When I tried to upgrade from 11.1 to 11.4, I got message that shouldn’t use “by-id” and this is what I’m trying to do.

On 2011-04-15 22:36, pestocat wrote:
> I thought what I have to do is get rid of the “by-id” and use the UUID
> and it seems in my case there is no UUID for swap. This is what is
> confusing me.

No, you are to get rid of entries like /dev/sd* or /dev/hd*. Any entry such
as /dev/disk/by-/ is perfect: ID, UUID, LABEL, PATH.

> And what is the “map file” that I should not forget.

/boot/grub/device.map


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

robin,
From what you say I should be OK the way I was to start and don’t need to make changes. As you can see I don’t have any /dev/hd* lines. Do I just ignore the message I saw.

On 2011-04-15 23:06, pestocat wrote:

> When I tried to upgrade from 11.1 to 11.4, I got message that shouldn’t
> use “by-id” and this is what I’m trying to do.

No. You wrote:

> I’m trying to update a 11.1 installation. As I start the installation I
> get a message “openSuse 11.0 partition /dev/sda5 Change the mount-by to
> any other method for all partitions.” Also the message said go back and
> reboot and make the change. What is this all about, how do I do this.

You are not to remove the by-id. No mention of them in that paragraph.
Plus, I remember that message from YaST.

Further, remember to use code tags before posting computer files here, they
are unreadable.

View this thread: http://forums.opensuse.org/showthread.php?t=451526


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

@pestocat: Is your /etc/fstab using ‘by-id’ (similar to menu.lst)? If so, all should now be ok.