LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2008, 10:05 AM   #1
crontab
Member
 
Registered: Jun 2005
Distribution: Various
Posts: 72

Rep: Reputation: 15
Question Invalid loop location: /image.squashfs


I'm trying to take the Gentoo minimal install disc, extract the contents from the ISO, add some files to it and then make it back into a bootable image. The idea being that when you ls after booting into it, you'll see some extra stuff that isn't normally there.

This kind of stuff is outside my usual work, so I'm not sure if there's an obvious step I'm missing.

So far, I've done the following:
- downloaded the ISO and copied the data to another directory
- ran unsquashfs on image.squashfs (which is in the root of the disc image); this resulted in the squashed filesystem being extracted to /root/squashfs-root/
- added a couple of text files to /root/squashfs-root/
- ran mksquashfs on /root/squashfs-root/ to make a new image.squashfs
- copied the new image.squashfs back into the directory where the ISO was extracted to, and then ran mkisofs to make a new image

I can boot into the new image fine, but eventually I get this:
Quote:
!! Invalid loop location: /image.squashfs
!! Please export LOOP with a valid location, or reboot and pass a proper loop=...
!! kernel command line!
I imagine the kernel on this ISO is already configured for squashfs, because I can boot the original image just fine. All I've done is replaced the old image.squashfs for a new one. Maybe there's a checksum somewhere? Anyone have any ideas why the new image.squashfs is not considered valid?
 
Old 09-18-2008, 05:55 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
May be the 'mkisofs -option -option -option'
would have to be different ? Example :
Quote:
#!/bin/bash
# make the new iso and put in root.
mkisofs -o /new.iso -b isolinux/isolinux.bin \
-c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -J -R -V disks .
#
from
http://www.asylumnation.com/blogs/am...post-2775.html

Regards
 
Old 09-18-2008, 08:54 AM   #3
crontab
Member
 
Registered: Jun 2005
Distribution: Various
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks for that link, knudfl. I figured it out on my own last night, and that was the problem after all. I wasn't passing the correct parameters to mkisofs. It ended up working with:

Quote:
mkisofs -R -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \
-boot-info-table -iso-level 4 -hide-rr-moved -c isolinux/boot.cat \
-o ~/livecd.iso .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problems blitting image from one location to another. RHLinuxGUY Programming 15 01-18-2006 01:38 PM
PHP image-creation while loop taking forever benrose111488 Programming 9 07-09-2005 07:04 PM
Loop-mount image of harddrive addy86 Linux - General 6 06-14-2005 06:06 AM
Cannot mount more than 8 iso image files as loop device marsim Debian 4 11-09-2004 04:05 AM
Problem mounting CD image (no loop device)... Slayer Linux - General 1 10-05-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration