after custom iso by cubic disk mounting error

After creating a custom ISO with Cubic, encountering disk mounting errors often stems from issues with the loop device or filesystem permissions. Here’s a breakdown of troubleshooting steps:

1. Check Loop Device and Filesystem:

  • FUSE Issues:If using a FUSE-based filesystem, FUSE may prevent other users from accessing the mounted image. Verify if root user can access the mounted image.
  • Permissions:Ensure the user has the necessary permissions to access the ISO file and the mount point. 

2. Verify Mount Point:

  • Create the mount point directory if it doesn’t exist: mkdir -p /mnt/cdrom

3. Try Mounting Manually:

  • Try mounting the ISO using the full path: sudo mount -o loop /path/to/your/custom.iso /mnt/cdrom

4. Examine Logs:

  • Check system logs for errors related to mounting or the loop device. Look in /var/log/ and the Cubic project directory. 

5. Check Cubic Configuration:

  • Re-open Project: Reopen your Cubic project to ensure no settings are corrupted.
  • Check for Errors: Look for any error messages within Cubic’s interface.
  • Create New Project: If problems persist, try creating a new Cubic project with the same ISO file to rule out project corruption. 

6. Potential Solutions:

  • Update Cubic: Ensure you’re using the latest version of Cubic. 
  • Autoinstall.yaml: If using user-data or meta-data files, try using autoinstall.yaml instead, as suggested by a user on GitHub. 
  • Skip Disk Check: If the issue is related to disk checking during boot, you can try adding fsck.mode=skip to the bootloader configuration in Cubic. 

7. Specific Error Scenarios:

  • “The original disk image is required”:If you’re getting this error after removing or modifying files, it may be because Cubic is relying on the original ISO to be available. 
  • Kernel Panic:If you’ve updated the kernel, ensure the bootloader configuration is correct, particularly in the isolinux/txt.cfg file. 

8. Troubleshooting Tips:

  • Test in VirtualBox:If you’re using VirtualBox, try changing the network adapter to “Bridge Adapter” for testing remote connections.
  • Check DNS:If using hostnames instead of IP addresses, ensure DNS resolution works correctly. 



Leave a Reply