LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-10-2005, 03:51 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
A question on LFS LiveCD


Hi folks,

The files on the LiveCD could not be read if it is not running. After mounting only boot and source directories can be seen. However on running all directories can be read such as /root, /home, /bin, /usr, etc. Could it be possible to view them if the LiveCD is not running?

TIA

B.R.
satimis
 
Old 08-10-2005, 07:27 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

yes I think that's possible if you mount the file containing the main filesystem in loopback... You'll need to know the FS used by the liveCD (squashfs I think, so you'll have to patch you kernel to enable it)

Oliv'
 
Old 08-10-2005, 08:58 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi Oliv,

Tks for your advice.

Quote:
I think that's possible if you mount the file containing the main filesystem in loopback...
Whether you meant to run

# mount -t filesys /dev/hdd /mnt/cdrom

Quote:
You'll need to know the FS used by the liveCD (squashfs I think,
How to find it out?

Quote:
so you'll have to patch you kernel to enable it)
Please explain in more detail how to do it.

TIA

B.R.
satimis
 
Old 08-10-2005, 09:21 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Quote:
Whether you meant to run

# mount -t filesys /dev/hdd /mnt/cdrom
yes but that's something like:
# mount -t squashfs -o loop=/dev/loop0 /mnt/cdrom/lfs.img /mnt/loop/
for more info about squashfs: http://squashfs.sourceforge.net/
http://tldp.org/HOWTO/SquashFS-HOWTO/
To be simple, squasfs is a Read-only FS used by liveCD
 
Old 08-10-2005, 10:21 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi Oliv,

I see just like reading ISO image;
# mount /mnt/cdrom/lfs.img -t squashfs -o loop /mnt/livecd

But I could not find lfs.img

# mount /dev/hdd /mnt/cdrom/
# ls /mnt/cdrom/
Code:
boot  LFS  sources
# ls -al /mnt/cdrom/boot/
Code:
total 8
drwxr-xr-x  3 root root 2048 Jul 13 04:26 .
drwxr-xr-x  4 root root 2048 Jul 13 05:58 ..
-r--r--r--  1 root root 2048 Jul 13 05:58 boot.cat
drwxr-xr-x  2 root root 2048 Jul 13 05:41 isolinux
# ls -al /mnt/cdrom/boot/isolinux/
Code:
total 2675
drwxr-xr-x  2 root root    2048 Jul 13 05:41 .
drwxr-xr-x  3 root root    2048 Jul 13 04:26 ..
-rw-r--r--  1 root root     126 Jul 13 05:41 boot.msg
-rw-r--r--  1 root root  128066 Jul 13 04:50 initramfs_data.cpio.gz
-rw-r--r--  1 root root   10388 Jul 13 04:52 isolinux.bin
-rw-r--r--  1 root root     190 Jul 13 05:41 isolinux.cfg
-rw-r--r--  1 root root     950 Jul 13 05:41 keymaps.msg
-rw-r--r--  1 root root 2580706 Jul 13 04:45 linux
-rw-r--r--  1 root root    1622 Jul 13 05:41 locales1.msg
-rw-r--r--  1 root root    1537 Jul 13 05:41 locales2.msg
-rw-r--r--  1 root root    1005 Jul 13 05:41 options.msg
-rw-r--r--  1 root root    7630 Jul 13 05:41 splash.lss
# ls -al /mnt/cdrom/LFS
Code:
-rw-r--r--  1 root root 11 Jul 13 05:58 /mnt/cdrom/LFS
# ls -al /mnt/cdrom/sources/ | grep .img
No output

B.R.
satimis
 
Old 08-11-2005, 02:45 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

sorry you're right... I've put lfs.img as I don't know the real name and most of time that's an .img file.
In fact the interesting file is: /mnt/cdrom/boot/isolinux/linux

Oliv'
 
Old 08-13-2005, 05:29 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi Oliv',

FedoraCore3

I have got squashfs driver on the box.

# cat /proc/filesystems | grep squashfs
# cat /proc/filesystems | grep sq*
Both without printout.

# modprobe squashfs
Code:
FATAL: Module squashfs not found.
How to get it fixed.

TIA

B.R.
satimis
 
Old 08-17-2005, 07:22 AM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi satimis,

In fact I told you nonsense last time
Quote:
In fact the interesting file is: /mnt/cdrom/boot/isolinux/linux
linux file is in fact the kernel... I've booted this week end LFS live CD6.0 and saw that "linux" file was the kernel, there was a file called "etc.tar.bz2" which was /etc dir... and /usr is in a file called usr_sqfs
where did you install squashfs module... have you try to go in the local directory and do an "insmod squasfs.o" ??? I suppose that's a misconfiguration of "modprobe"...

Oliv'
 
  


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
LFS building on a remote PC with LiveCD - how to? midiox Linux From Scratch 2 12-03-2005 08:02 PM
Own LFS LiveCD <100MB? rocknarl Linux From Scratch 1 10-13-2005 08:15 AM
What I should do with LFS LiveCD files? golden_warrior Linux From Scratch 7 10-04-2005 02:57 PM
How to build LiveCD from LFS isilinux Linux From Scratch 1 08-24-2005 03:45 AM
LFS LiveCD 6.1-2 satimis Linux From Scratch 6 07-25-2005 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:27 PM.

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