Menu

Edit /etc/fstab entry SWAP partition

Help
2015-04-21
2015-07-31
  • Dani Hernandez

    Dani Hernandez - 2015-04-21

    Hi everyone,

    I'm clonning a dual boot laptop (Win8 + Ubuntu).
    Everything's fine but Ubuntu partition when it's clonned and started for the first time, it asks for UUID of SWAP partition (it says than it hopes the UUID of master laptop).
    Manually I can edit /etc/fstab file to erase swap entry and reactivate swap with new UUID.
    But, How can I make it automatically?

    Thanks and regards!

     
  • Dani Hernandez

    Dani Hernandez - 2015-04-21

    More information, the script used is:

    search --set -f /live/vmlinuz
    linux /live/vmlinuz boot=live username=user hostname=utopic config quiet union=overlayfs noswap edd=on nomodeset nodmraid noeject locales= keyboard-layouts=NONE ocs_prerun="mount /dev/sdb1 /home/partimag" ocs_live_run="ocs-sr -e1 auto -e2 -iefi -j2 --batch -t -r -k1 -p poweroff restoreparts 201503_edu sda1 sda2 sda3 sda4 sda5 sda7 sda8 sda9" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch=yes vga=788 toram=filesystem.squashfs ip= splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
    initrd /live/initrd.img

    Thanks

     
  • Dani Hernandez

    Dani Hernandez - 2015-04-21

    Ok, I think that the problem is I didn't save SWAP partition in master.
    Then I don't have swappt-sda9.info in my image folder.
    Can I create it? Wich format?

    Thanks

     
  • Dani Hernandez

    Dani Hernandez - 2015-04-23

    One more question:
    - mkswap-UUID is executed in restoredisk and restoreparts? Or only in restoredisk?
    I'm checking it.
    Please we need some help.

     
  • Steven Shiau

    Steven Shiau - 2015-05-09

    "- mkswap-UUID is executed in restoredisk and restoreparts? Or only in restoredisk?" -> Only in restoredisk.

    Steven.

     
  • Dani Hernandez

    Dani Hernandez - 2015-07-31

    Thanks Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.