long ago i managed to alter fstab to identify as sda/sdb for my cloning process, but i now wish to update my 13.1 system to 13.2 so need to return fstab to its origanal config whilst i achive this can you help/advise please
I’m not sure what you are looking for.
You can use:
ls -l /dev/disk/by-id/ata-*
to get a list of the likely ids. Look for the one that is a symlink to the device name. Then replace that device name by the appropriate id in “/etc/fstab”
I recommend that you make a backup of the current “fstab” before you start. And, when done, reboot to test if everything is still working.
Post your current contents of fstab.
thank’s for the reply, i wish i was more knowledgable, and give you the info you require to help me
myfstab is as follows
/dev/sda5 swap swap defaults 0 0
/dev/sda6 / ext4 acl,user_xattr 1 1
/dev/sda7 /home ext4 acl,user_xattr 1 2
/dev/disk/by-uuid/7C18F97B18F9352C /mnt/7C18F97B18F9352C auto nosuid,nodev,nofail,x-gvfs-show 0 0
it was set up this way for cloning purposes but when i boot from stick drive to do an upgrade to 13.2 it advises that i need to identify as follows
/dev/disk/by-id/ata-WDC_WD5003AZEX-00MK2A
but im unsure how to proceed correctly!!
Launch Yast Partitioner.
Choose each of those devices one at a time (the sda devices), click the Edit button.
Make sure you have Do not format partition selected.
Under Mount Options (the right column), click the Fstab Options button.
There, you can choose the correct option under Mount in /etc/fstab by, at the very top of the dialogue.
Click on Okay and Finish.
I usually do a mkintrd and then a remake & reinstall Grub after I make those changes in the mounting options.
After you have done that, post your Fstab contents again.
thank’s jerry i will come back with details.
hope this is now correct !! looks ok to me ???
/dev/disk/by-id/ata-WDC_WD5003AZEX-00MK2A0_WD-WCC3FAYR2FL7-part5 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD5003AZEX-00MK2A0_WD-WCC3FAYR2FL7-part6 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-WDC_WD5003AZEX-00MK2A0_WD-WCC3FAYR2FL7-part7 /home ext4 acl,user_xattr 1 2
/dev/disk/by-uuid/7C18F97B18F9352C /mnt/7C18F97B18F9352C auto nosuid,nodev,nofail,x-gvfs-show 0 0
Depends if this is the correct uuid for the device.
You could also have mounted those partitions as by-uuid, for the time-being, which would have allowed some double-checking.
Try what you have now and see if it is going to work.
Here is the general problem in cloning. by-id and by-uuid are disk specific ie put those images on another disk and they won’t match the new id’s from the new disk. sdX is BIOS specific and can change depending on what is plugged in at boot. If you use by-label it is totally hardware independent. But, you can not mount (conveniently) two partitions with the same label at the same time. Also you must manage the naming scheme so that you never try to mount any two partitions with the same label. So nothing is perfect. If you use id or uuid you will have to modify the partition table on the clone system and fix grub before it will boot.
Ya pays your money and you takes your chances
Technically, you can set the UUID of the cloned system to be the same as the original, at least for ext2/ext3/ext4 file systems, and perhaps others. (man tune2fs).
It would be nice when installing opensuse, if there were an option to preserve the UUID of the file systems that it reformats (typically “/” and “/boot”)
nah ! didnt work,…ive decided to leave it a while,i used to just do a total reinstall of everything,but now have some work specific programmes running on windows and games unfinished so maybe later in the year.
thank’s for trying guy’s…as alway’s it’s appreciated
:good:
Make a backup of fstab.
Remove the last line.
mkinitrd, remake Grub and reinstall Grub.
Try one more time.
I will give it a try fraser thank’s for your time;)
My pleasure. I would really like to help you solve this.
Just another question, which might seem like a silly one, but I want to be sure what it is you are trying to do.
Do you have 13.1 installed on the HD already, and do you just want to move it up to 13.2 on the same HD in the same machine?
And all you want to do is make certain the environment is ready for the move?
I think that is what you are wanting, but I think it would not hurt to verify it.
If that is what you are doing, then it would also help if you post the output of:
fdisk -l
and
parted -l
and
mount | grep '^/dev/'
and perhaps
lsblk
Some overkill, there, but it might provide a clue or a plan.
I beg to differ (and highjack a thread), but I’ve cloned many a disk with ‘dd’ and it always uses the source UUID (done when upgrading a drive from hdd to ssd or to a larger hdd, but that’s a different story).