Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
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.
Hi, I'm really new to Linux. Just installed Ubuntu 8.04 on my Laptop.
I have a Centroid M-400 CNC Mill, which runs on Compact Flash Drive with Linux. (CF card is Kingston Elite Pro 512Mb 50X). And for some days when I boot up the machine I receive an error sayng that I have to run manually a command to check the drive. I run it... it corrects some sectors and then OS starts well... the problem is that it began losing some programs and parameters (I still can restore them from flopy once machine is running). So, I think CF card is dying.
So, I installed Ubuntu on my laptop and tryed to clone the partition to another CF memory (Sandisk 512MB). According to Partition Editor, it copies without a problem: resulting partition (ext3) has same size, etc... When I intall it to machine, I can see it from BIOS as IDE0, but when I try to boot up the machine with it, it says "Operation System Missing" or something like this...
Where could be the problem? Maybe it's Partition manager?... Is there another application to clone Linux Partitions, so they can be booted up?
Thank you very much.
I really appreciate your help...
Last edited by mikhrus; 05-22-2008 at 07:17 PM.
Reason: tYpos
Sounds like you didn't copy the MBR (Master Boot Record) on the flash media. It contains a little specialized program that initiates the boot process. Since you have a replacement flash card that is the same size I would try just raw copying the entire media (partition table and all) to the new card. What device is it detected as in Linux? /dev/sda? /dev/hda?
Sounds like you didn't copy the MBR (Master Boot Record) on the flash media...
Maybe, I would like to try this. Where can I find this MBR?
Quote:
Originally Posted by LinuxManMikeC
...Since you have a replacement flash card that is the same size I would try just raw copying the entire media...
Well, the first thing I did was to create same partition on new media and try to copy all files from the original card. But on every file I was getting an error message saying that I dont have a permision...
Quote:
Originally Posted by LinuxManMikeC
...(partition table and all) ...
I'm not sure where to find partition table, since only one partition appears in "partition Editor".
Quote:
Originally Posted by LinuxManMikeC
... What device is it detected as in Linux? /dev/sda? /dev/hda?
The MBR is the first 512 bytes of the disk. You can copy it with this command. (note: replace /dev/sda with your original device, and /dev/sdb with your new device)
Code:
dd bs=512 count=1 if=/dev/sda of=/dev/sdb
When I said raw copy, I meant to copy the raw disk image from device to device. /dev/sda gives you the entire raw contents of the device (mbr, partition table, and each partition). The /dev/sda1 and so on give you access to just the individual partitions. If you do a slight variation on the above command you can copy the entire disk image and make an exact "clone" of the original disk.
Code:
dd if=/dev/sda of=/dev/sdb
As it stands all you've done is make a clone of the filesystem from the first partition. Anyway, it's probably quicker to try the first command, and if it doesn't work you can try the second.
To clone the CF try using ghost for linux.
It does everything for you.
I used it too.
But you need to have the destination drive atleast eqaul to the size of source even if theres not much data.
Basically cloning a hard drive is like making one like already present one.
This can be possible only if the HDD to be cloned and the other are same in size.
One that is used for cloning i.e. on which the cloning will be done, can be greater in size but can not be smaller.
And if you are trying to clone the HDD into a usb stick make sure you are not cloning with RAW mode.
This will copy the free sectors and will take a lot of space and time.
If you want to make a bootable usb stick then better look at the online manuals.
I needed to do the same thing but it is not possible as such.
Download the ghost for linux from google. It comes as iso and burn it to the cd and boot from it.
It will give you the graphical windows which are self explanatory. But it wont take your usb stick as destination as far as I know.
Distribution: Gentoo, FreeBSD, OpenBSD, Debian, Knoppix, Digital Unix
Posts: 33
Rep:
The problem you're experiencing is one that I have also had with lilo. A way around this may actually be to boot into a livecd, mount your compact flash drive and chroot into it, and then from there run /sbin/lilo (assuming you have a lilo.conf where it is supposed to be). This method is not unlike a stage3 linux install. Let me know if you need more specific instructions.
Ghost for linux has ncurses graphical windows and is pretty good.
Let it boot completely and it will give you a window where you specify the option what you need to do.
It is self explanatory as far as I think.
I used it first time and never had much problem to guess what I needed to specify and where.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.