LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2009, 08:51 PM   #1
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Live CD install


Can I use dd command to transfer a live cd file system to a hard drive?

I have used G4U before and while it is very useful it is basically dd command. I have use smaller drives to bigger without issue (so far). No matter the way a live cd uses for it's file structure, seems I should be able to dd it to a hard drive.

Anyone every tried it?
 
Old 10-08-2009, 10:04 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Quote:
Anyone every tried it?
Why don't you try it?

You'd notice then that "dd" will produce an exact copy of the CD - you will end up having the .iso file on your harddisk.
It is not an installation method.

The file could be used in a virtual machine as if you where booting from a CD drive - or you could burn another CD from it to have a copy...
 
Old 10-08-2009, 10:57 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Original Poster
Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Not the cd, the live file system.
 
Old 10-08-2009, 11:38 PM   #4
louieb
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu 8.04
Posts: 94

Rep: Reputation: 17
What do you mean by file-system? The individual files on the CD?
Code:
cp -R
perhaps.

There are some Linux CD's that you can copy files off to the hard drive. And if your already using GRUB you can make a entry for GRUB to boot those files and it will run just like if boot the live CD. SystemRescueCd is one that comes to mind.
 
Old 10-09-2009, 09:07 AM   #5
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 420

Rep: Reputation: 86
no, I don't think that would work.
What you can do though is what I have done, which is a frugal install.
I have a linux-formatted partition (/dev/sda6) that I use mainly
as a repository (it doesn't have a system on it) and
I use grub as boot loader (it's installed in a different partition).

I used iso images of the following linux live distros:
slax, grml, RIPlinux, and pmagic
I extracted their contents (thru 'mount -o loop ...'), placed
them in their respective directories on /dev/sda6
and created entries in my grub menu to boot from them.

For instance for slax:

/mnt/sda6/slax
/mnt/sda6/boot/slax/{vmlinuz,initrd.gz}

RIP:
/mnt/sda6/boot/rip

example of an entry in grub:
Code:
title slax (RAM, CLI)
root (hd0,5)
kernel /boot/slax/vmlinuz vga=791 ramdisk_size=6666 root=/dev/ram0 rw copy2ram noauto
initrd /boot/slax/initrd.gz
 
Old 10-09-2009, 09:16 AM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
well
I havent tried it because your probably gonna have to manually setup etc/fstab and alot of other stuff, which most installers do for you in the background

You could try copying the filesystem, suspended in RAM, while running the/a livecd
probably shouldn't copy /dev or all of /etc as it will fill up with all your drives,etc

or, you could unsquashfs the compressed filesystem into a partition
this is basically what dsl does in a hd install

make sure you have "show hidden files" enabled as there may be .* files in there
as with dsl's .bash_profile

however, as I said it is probably more difficult than that

maybe study the install scripts various distros use to install?
dsl or puppy's hd-install scripts would probably be simple to
duplicate "manually"

matters too what distro you wanna try this with??
 
Old 10-09-2009, 09:23 AM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
You can do a bunch of Linux on a DVD or a USB device. Here is an example. Putting them on a hard disk is no different.

An an expended iso is put in a hard disk it can boot if the boot loader has been suitably modified because the standard boot loader isolinux boots only on CD/DVD.

The iso will be in its virgin compressed or "uninstalled" state occupying approximately the same space as before where as after installation it will be 4 to 5 times bigger.

Last edited by saikee; 10-09-2009 at 09:26 AM.
 
Old 10-09-2009, 08:03 PM   #8
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
that would be the way when you use rsync on debian to install a live manually:
http://forums.debian.net/viewtopic.php?f=16&t=18845
i did it and it worked, but...say: i wouldnt use it as the general method for installing. installers are a nice/comfortable thing and take care on what needs to be taken care of:
http://packages.linuxmint.com/pool/m...ian-installer/
 
Old 10-09-2009, 08:18 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Original Poster
Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Thanks for all the replies.

For example.

rsync -a / /hda5/ --exclude=/{hda5,live,sys,proc,media}/

OK, I like the rsync deal. We are getting somewhere here. I'll try that. I had thought of using .iso and the compressed file systems and just change loaders.

This was more of a I liked the DVD and knowing Gentoo, they'd have me on page 203 sometime next week STILL formatting my /home. I was pretty sure there was an easier way.

Last edited by jefro; 10-09-2009 at 08:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HP G60-231WM will not run live Linux or install linux, did install PCBSD, netBSD Moss Linux - Laptop and Netbook 10 10-16-2009 02:55 PM
MEPIS Live: can we install somethg with apt-get install ? frenchn00b MEPIS 9 03-31-2009 06:46 AM
which one will takes more time Live install or full install-F10? hulk321 Linux - Software 3 11-26-2008 06:43 PM
live cd -> HD install -> back to live cd ? android6011 Linux - General 3 07-20-2006 01:06 AM
Install Live CD to HD? jimbo-62 Linux From Scratch 5 09-17-2005 07:55 PM


All times are GMT -5. The time now is 10:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration