Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Creating LiveCD with Catalyst, failure to mount /dev/loop0

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

Creating LiveCD with Catalyst, failure to mount /dev/loop0

  • Quote

Post by xathin » Wed Aug 20, 2008 1:53 am

I have tried making a LiveCD with Catalyst, following the guide on the gentoo-wiki.com site, making a few changes as needed for my needs. I am trying to create a LiveCD environment that will load my networking settings, and essentially act as a wireless adapter for my Xbox 360. I have made the LiveCD a few times, with minor modifications in an attempt to get it to boot, but every time I load it in my laptop, it displays an error saying it failed to mount /dev/loop0. I've tried using other compressions besides squashfs, but the build of the iso fails, saying that the directory structure is too deep.

Here is my livecd-stage1.spec file:

Code: Select all

subarch: i686
version_stamp: 2008.0
target: livecd-stage1
rel_type: default
profile: default/linux/x86/2008.0/server
snapshot: 2008.0
source_subpath: stage3-i686-2008.0
portage_confdir: /etc/portage
pkgcache_path: /tmp/packages

livecd/use: -kde -gnome -X -cups -arts livecd madwifi -ipv6 -gpm
livecd/packages: baselayout dhcpcd acpid e2fsprogs ethtool hwsetup nano links less logrotate syslog-ng iputils device-mapper
and here is my livecd-stage2.spec file:

Code: Select all

subarch: i686
version_stamp: 2008.0
target: livecd-stage2
rel_type: default
profile: default/linux/x86/2008.0/server
snapshot: 2008.0
source_subpath: default/livecd-stage1-i686-2008.0
portage_confdir: /etc/portage
pkgcache_path: /tmp/packages
kerncache_path:
livecd/fstype: squashfs
livecd/fsops:
livecd/cdtar: /usr/lib/catalyst/livecd/cdtar/isolinux-3.09-memtest86+-cdtar.tar.bz2
livecd/iso: /tmp/livecd.iso
livecd/fsscript:
livecd/splash_theme:
livecd/bootargs: dokeymap
livecd/gk_mainargs: 
livecd/linuxrc:
livecd/type: generic-livecd
livecd/readme:
livecd/motd: 
livecd/modblacklist:
livecd/rcadd:
livecd/rcdel:
livecd/overlay:
livecd/root_overlay:
livecd/xinitrc:
livecd/xdm:
livecd/xsession:
livecd/users:
livecd/volid: Gentoo Linux 2008.0 i686
gamecd/conf:
boot/kernel: gentoo
boot/kernel/gentoo/sources: =sys-kernel/gentoo-sources-2.6.22*
boot/kernel/gentoo/config: /tmp/livecd-2.6.22.config
boot/kernel/gentoo/gk_kernargs:
boot/kernel/gentoo/use: -X
boot/kernel/gentoo/extraversion:
boot/kernel/gentoo/packages: wireless-tools madwifi-ng madwifi-ng-tools
boot/kernel/gentoo/machine_type:
boot/kernel/gentoo/console:
livecd/unmerge: autoconf automake bin86 binutils libtool m4 bison ld.so make perl patch linux-headers man-pages sash bison flex gettext texinfo ccache distcc addpatches man groff lib-compat miscfiles rsync sysklogd bc lcms libmng genkernel diffutils libperl gnuconfig gcc-config gcc bin86 cpio cronbase ed expat grub lilo help2man libtool gentoo-sources
livecd/empty: /var/tmp /var/cache /var/db /var/empty /var/lock /var/log /var/run /var/spool /var/state /tmp /usr/portage /usr/share/man /usr/share/info /usr/share/unimaps /usr/include /usr/share/zoneinfo /usr/share/dict /usr/share/doc /usr/share/ss /usr/share/state /usr/share/texinfo /usr/lib/python2.2 /usr/lib/portage /usr/share/gettext /usr/share/i18n /usr/share/rfc /usr/lib/X11/config /usr/lib/X11/etc /usr/lib/X11/doc /usr/src /usr/share/doc /usr/share/man /root/.ccache /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/logrotate.d /etc/rsync /usr/lib/awk /usr/lib/ccache /usr/lib/gcc-config /usr/lib/nfs /usr/local /usr/diet/include /usr/diet/man /usr/share/consolefonts/partialfonts /usr/share/consoletrans /usr/share/emacs /usr/share/gcc-data /usr/share/genkernel /etc/bootsplash/gentoo /etc/bootsplash/gentoo-highquality /etc/splash/gentoo /etc/splash/emergence /usr/share/gnuconfig /usr/share/lcms /usr/share/locale /etc/skel
livecd/rm: /lib/*.a /usr/lib/*.a /usr/lib/gcc-lib/*/*/libgcj* /etc/dispatch-conf.conf /etc/etc-update.conf /etc/*- /etc/issue* /etc/make.conf /etc/man.conf /etc/*.old /root/.viminfo /usr/sbin/bootsplash* /usr/sbin/fb* /usr/sbin/fsck.cramfs /usr/sbin/fsck.minix /usr/sbin/mkfs.minix /usr/sbin/mkfs.bfs /usr/sbin/mkfs.cramfs /lib/security/pam_access.so /lib/security/pam_chroot.so /lib/security/pam_debug.so /lib/security/pam_ftp.so /lib/security/pam_issue.so /lib/security/pam_mail.so /lib/security/pam_motd.so /lib/security/pam_mkhomedir.so /lib/security/pam_postgresok.so /lib/security/pam_rhosts_auth.so /lib/security/pam_userdb.so /usr/share/consolefonts/1* /usr/share/consolefonts/7* /usr/share/consolefonts/8* /usr/share/consolefonts/9* /usr/share/consolefonts/A* /usr/share/consolefonts/C* /usr/share/consolefonts/E* /usr/share/consolefonts/G* /usr/share/consolefonts/L* /usr/share/consolefonts/M* /usr/share/consolefonts/R* /usr/share/consolefonts/a* /usr/share/consolefonts/c* /usr/share/consolefonts/dr* /usr/share/consolefonts/g* /usr/share/consolefonts/i* /usr/share/consolefonts/k* /usr/share/consolefonts/l* /usr/share/consolefonts/r* /usr/share/consolefonts/s* /usr/share/consolefonts/t* /usr/share/consolefonts/v* /etc/make.conf.example /etc/make.globals /etc/resolv.conf
Anyone know why it would be saying that it can't mount the image?
Top
poly_poly-man
Advocate
Advocate
User avatar
Posts: 2477
Joined: Wed Dec 06, 2006 9:59 pm
Location: RIT, NY, US
Contact:
Contact poly_poly-man
Website

  • Quote

Post by poly_poly-man » Wed Aug 20, 2008 2:13 am

did you enable loopback block devices in your kernel?
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see [topic]838248[/topic]. Potentially still a WiP.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Wed Aug 20, 2008 3:49 am

I would assume it is, but I did not check. I am using the config from the 2007 LiveCD, as described by the HOWTO on the wiki.

What's the variable in the config file?
Top
poly_poly-man
Advocate
Advocate
User avatar
Posts: 2477
Joined: Wed Dec 06, 2006 9:59 pm
Location: RIT, NY, US
Contact:
Contact poly_poly-man
Website

  • Quote

Post by poly_poly-man » Wed Aug 20, 2008 3:50 am

CONFIG_BLK_DEV_LOOP
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see [topic]838248[/topic]. Potentially still a WiP.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Wed Aug 20, 2008 3:54 am

I have CONFIG_BLK_DEV_LOOP=y, and CONFIG_BLK_DEV_CRYPTOLOOP not set. Does the cyrptoloop need to be enabled?
Top
poly_poly-man
Advocate
Advocate
User avatar
Posts: 2477
Joined: Wed Dec 06, 2006 9:59 pm
Location: RIT, NY, US
Contact:
Contact poly_poly-man
Website

  • Quote

Post by poly_poly-man » Wed Aug 20, 2008 3:55 am

nope, but make sure that /dev/loop0 actually exists.
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see [topic]838248[/topic]. Potentially still a WiP.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Wed Aug 20, 2008 4:01 am

When it fails, I get a console prompt. I've checked the main root and it does list /dev/loop0. Properties are brw-rw----. And yes, the directory it is trying to mount to also exists, which is /newroot/mnt/livecd.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Wed Aug 20, 2008 4:28 am

Could it have anything to do with me building an x86 LiveCD on an amd64 system?
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Fri Aug 22, 2008 6:55 am

Does anyone else know why I can't boot from my LiveCD? I've tried it on another laptop and I get the same problem, so I know it's not the computer.

Some other information, the error is coming up while it's booting. It tries to mount the squashfs filesystem, then displays the error "!! Failed to $1; falling back to the shell..."

I've tried searching around, but not able to find any help on this.
Top
poly_poly-man
Advocate
Advocate
User avatar
Posts: 2477
Joined: Wed Dec 06, 2006 9:59 pm
Location: RIT, NY, US
Contact:
Contact poly_poly-man
Website

  • Quote

Post by poly_poly-man » Fri Aug 22, 2008 1:21 pm

does your kernel actually have support for the filesystem?
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see [topic]838248[/topic]. Potentially still a WiP.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Sat Aug 23, 2008 1:33 am

Both the kernel I have installed on my system and the kernel that is on the livecd have CONFIG_SQUASHFS=y.
Top
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

  • Quote

Post by richard.scott » Thu Sep 04, 2008 8:48 am

I just wanted to say thank you for posting this thread.

I've written a custom script based on the HOWTO build a LiveCD from scratch from Gentoo-Wiki.com

Recently (in the last couple of days) my builds have all failed with this error:

Code: Select all

>> Mounting squashfs filesystem
mount: mounting /dev/loop0 on /newroot/mnt/livecd failed: No such device
I am using the exact same kernel config as a working system used and this error has now crept in.

I'm assuming its something to do with Genkernel as that is where this part of the boot process is from.

I'm trying a ~x86 version today to see if it helps!

So, your not the only one with this problems, and chances are your catalyst and kernel config is 100% ok.
Top
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

  • Quote

Post by richard.scott » Thu Sep 04, 2008 11:58 am

I think I may have found a fix.

In the area where you activate squash FS you can set a cache number.

If you have this set to anything below 3 it seems to have problems mounting the squashfs file.
also, I needed to reduce the max size of my ramdisk from 8192 down to 4096.

In my kernel I had this:

Code: Select all

CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=1
CONFIG_BLK_DEV_RAM_SIZE=8192
and I now have this

Code: Select all

CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_BLK_DEV_RAM_SIZE=4096
It's booted ok this time! so one of them fixed it!
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Thu Sep 04, 2008 4:24 pm

I'll give it a try and see if it fixes the problem on my end as well.

Just a quick question, were you using a kernel config originally generated from a livecd build, or one that you made from scratch?
Top
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

  • Quote

Post by richard.scott » Thu Sep 04, 2008 6:14 pm

xathin wrote:I'll give it a try and see if it fixes the problem on my end as well.

Just a quick question, were you using a kernel config originally generated from a livecd build, or one that you made from scratch?
I'm using one I've created from scratch. Well, I say from scratch, I'm using genkernel so its one based on the default genkernel config.
Top
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

  • Quote

Post by richard.scott » Tue Jun 16, 2009 10:13 pm

Try using squashfs-tools-3.x rather than squashfs-tools-4.0

The current 2.6.28 kernels don't support a squashfs-4.x filesystem
Top
Post Reply

16 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic