Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-01-2015, 12:46 PM
|
#1
|
LQ Newbie
Registered: Jun 2015
Posts: 9
Rep:
|
generic liveDVD manual install
Good morning.
Is there a good solution to manually install a given LiveDVD? And/or boot from on disk?
Could I just write a program to: - mount iso - extract (squash) fs to empty partition - update grub for kernel - chroot to specify user, timezone, devices
Would anything else need to be done?
What if I copied the squashfs file out and built a new LiveDVD with isolinux? Would that work so to have a universal loopback template for grub entries?
On that note, I had thought of an idea. What if you store multiple liveDVD images on disk and boot from them without ever installing? It's amazing that you can boot from a compressed fs (inside a compressed fs.) I was wondering if you could mount out points from within the squashfs to your HDD. So your OS could still run on that minimal size, but have the data/configs/etc symlinked or mounted to a physical HDD. Is that possible? I feel like there must be a way to do that. It would really take advantage of that capability.
Thank you!
|
|
|
06-01-2015, 04:20 PM
|
#2
|
Moderator
Registered: Mar 2008
Posts: 22,130
|
If you told us what you are using then we might guess better.
To install it would require only that the filesystem be copied. Maybe a few changes to how it locates resources. Maybe some initrid or kernel changes. Loader.
Could be as simple as dd or user it's installer.
To get an iso to boot from disk may be possible with some form of grub. Grub2, grub4dos maybe lilo finally has support.
The way Knoppix used to take a live cd and put it on a drive was basically expand compressed filesystem, change some stuff/loader, chroot and go.
Not sure what you mean about copy squashfs and such.
An iso is not compressed.
|
|
|
06-01-2015, 04:42 PM
|
#3
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
Quote:
Originally Posted by L i n u 8 n u ! 7
Is there a good solution to manually install a given LiveDVD?
|
Yes, manually press Install to Disk.
|
|
|
06-01-2015, 05:10 PM
|
#4
|
LQ Newbie
Registered: Jun 2015
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by Habitual
Yes, manually press Install to Disk.
|
No I mean I'm making my own liveDVD. Do you think if I put the disk in upside-down it will let me?
|
|
|
06-01-2015, 05:26 PM
|
#5
|
LQ Newbie
Registered: Jun 2015
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by jefro
If you told us what you are using then we might guess better.
To install it would require only that the filesystem be copied. Maybe a few changes to how it locates resources. Maybe some initrid or kernel changes. Loader.
Could be as simple as dd or user it's installer.
To get an iso to boot from disk may be possible with some form of grub. Grub2, grub4dos maybe lilo finally has support.
The way Knoppix used to take a live cd and put it on a drive was basically expand compressed filesystem, change some stuff/loader, chroot and go.
Not sure what you mean about copy squashfs and such.
An iso is not compressed.
|
I didn't realize that an iso wasn't. So, every liveDVD has a squashfs where the rootfs actually lives. there's a copy of its kernel on the iso rootfs itself, which just basically prepares the squashfs to init.
|
|
|
06-01-2015, 05:32 PM
|
#6
|
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
|
An install requires some steps...but, best is to automate the install somewhat...
Your installer should typically mount the target drive, partition it and copy the stuff in its place, next it should best make a new user and the home folder, then take the root password...
Not a trivial task...
A simple copy as suggested can work too, provided you prepare (partition) the target drive...
Thor
|
|
|
06-01-2015, 05:41 PM
|
#7
|
LQ Newbie
Registered: Jun 2015
Posts: 9
Original Poster
Rep:
|
So, here:
http://www.linuxquestions.org/questi...ux-4175544194/
It would make sense to boot directly from downloaded isos. Or if I could install manually by repeating the procedure correctly --> that'd be ideal.
|
|
|
06-01-2015, 06:21 PM
|
#8
|
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
|
...just...what is your goal?
You are new to Linux...and would want your own spin? A challenge, to put it mildly...
Quote:
Could I just write a program to: - mount iso - extract (squash) fs to empty partition - update grub for kernel - chroot to specify user, timezone, devices
|
You want to write an installer...an installer does what I described above...but...to what end? Make an installer to install a Live CD/DVD that has an installer already? A Live medium usually has an "install me" option anyway...
|
|
|
06-01-2015, 06:44 PM
|
#9
|
LQ Newbie
Registered: Jun 2015
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by Thor_2.0
...just...what is your goal?
You are new to Linux...and would want your own spin? A challenge, to put it mildly...
You want to write an installer...an installer does what I described above...but...to what end? Make an installer to install a Live CD/DVD that has an installer already? A Live medium usually has an "install me" option anyway...
|
Thanks, Thor. Sorry for the time to get back to you. I'm a little tired.
So, just thinking originally to optimize the set up of a multiboot system. Could also be educational. Maybe I'd put out some useful tool. And I've thought of a lot of other benefits along the way. For example, a squashfs is tiny compared to the unpacked fs, but a liveDVD somehow boots it right on up anyway, so maybe there's a technique in leveraging that ability. Like managing your fs in such a way that it exists natively in a squashfs. Could be some interesting approaches there.
I'm not actually looking to do my own spin! Unless I can think of a tangible way of implementing some improvement. I do see a lot of room for consolidation when we use a Linux kernel to prepare a nested Linux kernel! And then end up with a Linux partition next to a Linux partition. I know distros essentially overlap the bulk of their software.
I've run into all kinds of issues! I've exhausted booting from loopback entries, then tried the traditional DVD installs, and I'm still getting freezes and non-boots through the whole process. I may end up having to do the manual install from squashfs for some of these distros afterall!
|
|
|
06-01-2015, 07:39 PM
|
#10
|
Moderator
Registered: Mar 2008
Posts: 22,130
|
I can't say how every DVD is made. It doesn't have to have a compressed image of some form. There are many ways, some use a sort of virtual filesystem in a compressed format. Some glob the entire system into a file that expands to ram. Can't say.
Your questions need some reference to a distro.
|
|
|
All times are GMT -5. The time now is 04:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|