LinuxQuestions.org
Help answer threads with 0 replies.
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 07-26-2011, 06:12 PM   #1
cpmusr
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: Disabled
Copy Directory Files to bootable flash device


My original goal: copy a compact flash card with a form of Linux on it (Found out it was custom version based on Fedora Core 3).

My problem: The flaky USB card reader seems to have hosed the flash card, it shows up with unknown volume after ejecting the card and reinserting it.

My troubleshooting: I have Ubuntu on a flash drive that I used to start all this to read the flash card.
- I tried Disk Utility to reformat the card as Master Boot Record and the volume as ext3 with flag set to Bootable and copied the files using cp in command line.
- I tried ISO Master & mkisofs to make an ISO that the USB thumb drive tools can use, but it wouldn't copy all the files. Looks like symbolic links either were ignored or couldn't find the source file with -f.
- I learned that I might need a boot partition with a boot image, which I think I have in initrd-2.6.14.7img, but I don't know how to do that. Do I also need a swap partition?

My updated goal: using the files from the flash card, make a bootable compact flash card with Fedora Core 3.

Any help would be awesome. I am not afraid of the command line if need be, but I am very simplistic in what I know about it.

Last edited by cpmusr; 07-26-2011 at 06:13 PM.
 
Old 07-26-2011, 08:30 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Pretty simple to do but I wouldn't use a usb to cf. I'd use a bootable cf to ide or cf to sata adapter. Then it is a normal install. That old, I'd guess it is a basic installer type of deal. You have to read each page to make choices.

Your unique flashcard likely has some unique data so this bootable cf may not help you.

I rather doubt you can blame this on this card reader.
 
Old 07-27-2011, 06:58 PM   #3
cpmusr
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
I thought it was unlikely a card reader issue too, but I've had more flash cards that it has hosed just by mounting them and safely removing them without altering anything, test ones. I'm not running any installer and don't have an installer for this specific set of files. I guess I could do a basic install and try to replace unique files, but I don't know what would be what.

Any ideas on formatting a disk first and dropping files in or using some sort of other solution without having installer iso's?

Thanks so much.
 
Old 07-27-2011, 11:11 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
I guess I'd need more info.

If you had a known working, know valid CF that would help. There are many ways to get an image off that.

If you know how to re-build the image that is another deal.

In the most simple terms, yes it can be done but you can't simply drop in files. Not really that easy but close to it.

I mentioned installer because it seemed to me your image is damaged or you don't have one. You should be able to get a FC3 working but it may not support usb to cf. I could be wrong on that so that is why I suggested a cf to ide.

What is this device? Can you get a working card or image or some cookbook as to how to create what was on it. Some odd deals really need unique drivers or a very special kernel.
 
Old 07-29-2011, 12:49 PM   #5
cpmusr
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your time.

More info about my setup: I've been running Windows XP on my Dell Latitude HD and Ubuntu 11 from a bootable flash drive. I have an express card port, so I'll probably get an EC CF card reader.

The CF that I have gets plugged in to a board on a gas pump and is involved in driving a merchandising interface. Unfortunately, I do not have a working image, CF card, nor installers or installation images. I only have the post-installation file system off the CF. Can I treat it like in this post, a bootable CD using El Torito: Use mkisofs to rebuild ISO image. If so, I can alter the mkisofs command to make iso for my file system. It seems like the iso has to be based off an installer disk, not just a bootable already-installed file system, right?

I can download the FC3 installation iso's and use ISO Master to try to edit it with my file system? But the issue there is the FC3 installation has 4 iso's, 4 CDs...

I don't know if I'm making much sense. I am confident that I can take what I have and make it work if it is possible for it to work. I'm just hoping there is a way.

Thanks for all the help.
 
Old 07-29-2011, 04:59 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
My issue with the FC3 is the age. That limits the devices such as usb support. It limits our memory of issues.

If you have the files then try it on some modern distro would be my suggestion.

I don't get why we went from a CF to a CD. You can't make your installed old FC3 install into a live boot or an installer cd.
The 4 cd's are just if you want all the features. A bone stock only uses one or maybe two of those.

Back then they didn't compress the files as much. For example a knoppix live cd is compressed to really how about 2-3G worth of apps.


Can you get a working image?

Last edited by jefro; 07-29-2011 at 05:01 PM.
 
Old 07-29-2011, 06:39 PM   #7
cpmusr
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
I was wondering, with the CD, if I could treat the CF like a CD in creating an ISO that I could then put back on the CF and be bootable. I have the whole file system including a boot image, that's not enough to be simple without having to install a newer distro? Forget the USB, I can skip that and use an express card CF reader or something else it has drivers for. I don't need to run the CF copy of linux from my laptop, I just need to be able to write the files to CF, since the original CF got hosed, that can be booted from using the equipment it was intended to boot from.
 
Old 07-29-2011, 10:08 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Why don't you build the image on a virtual machine then dd it over?
 
  


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
copy the IMG to the USB device and make it bootable cccc Debian 2 02-01-2011 02:11 PM
How to Copy files from local directory to a particular directory using alias dynamics Linux - Newbie 7 09-11-2009 05:19 PM
Copy os and files to a new bootable hard drive okos Linux - Software 22 01-09-2009 02:22 AM
How to copy files after search in array from this directory to another directory! phanvinhgiap Programming 4 01-04-2009 07:48 PM
copy files from directory to directory without subfile ALInux Linux - General 2 06-03-2005 12:51 PM


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