Linux - GeneralThis 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.
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.
I know this isn't a normal use of Linux, but I need some help, so here goes.
I'm working on my mother's computer, a straight windows xp installation.
This computer contains two hard drives, an eight gig and a 40 gig. The eight gig is dying; sounds indicative of failure, and excess heat. What I want to do is repartition the 40 gig into two partitions (which I have done, have one that is slightly bigger than the 8 gig), image the 8 gig hard drive to the new partition and make it bootable.
I have attempted DDing the partition over, seems to be correct. How can I make it bootable?
Some specifics:
Used Norton's to defrag, then QTParted to repartition.
Swapped the master / slave settings on the hard drives, so the 40 gig is now hda.
QTParted has a ~30 gig partition in the front, and the eight gig in the back.
The computer's bios supports LBA, so it *should* be able to boot from this back partition, if the documentation I have read is correct.
When using dd, the exact line I used is: dd if=/dev/hdb1 of=/dev/hda2.
Did it not give you the option to make a bootable partition?
If not, I'd suggest you use cfdisk to remake the partition (it provides a nice screen with options listed at the bottom. use the arrow keys to select the options you want, such as 'bootable').
Using dd to copy the OS over can be dangerous. If you interrupt it, you can do irreversible damage to the OS (as in, make it non-bootable). My suggestion would be to investigate DAR. Use DAR to make a full backup of the partition you want to move, then restore it to the new partition.
DAR doesn't care about the size of the partition copied, or the size written to (unless it's too small). It takes some study to get the backup script configured correctly, but once it's done, WOW! It'll make compressed backups (each file individual; if one is hosed, the rest are still usable).
Testing, listing, restoring are all as easy as one command line. Dar even gives you the option to include a static version of itself in the backup, in case you should need it to restore your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.