Linux - NewbieThis 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
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.
the first partition on the primary master ide will be hda1
the second will be hda2
the first partition on the primary slave will be hdb1
the first partition on the secondary master will be hdc1
the first partition on the secondary slave will be hdd1
and so on
note that extended partitions will be assigned a partition number and will change the sequence for logical drives depending on where the extended partition is.
To view partitions use fdisk -l
example
fdisk -l
Disk /dev/hda: 255 heads, 63 sectors, 7296 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 141 1132551 a0 IBM Thinkpad hibernation
/dev/hda2 * 142 5878 46082452+ 7 HPFS/NTFS
/dev/hda3 5879 6009 1052257+ 82 Linux swap
/dev/hda4 6010 7296 10337827+ f Win95 Ext'd (LBA)
/dev/hda5 6010 7296 10337796 83 Linux
to convert it to ext3 use this command
Code:
tune2fs -j /dev/hd??
Last edited by DavidPhillips; 03-18-2003 at 07:39 PM.
OK, I got it formatted. What's the best way to transfer Linux to my hard disk? ...or will that take an install. I bet it will take an install that I'll do later.
If you can boot into the system with a root/boot disk it will be best. If not then you want to skip copying the /proc folder. If you have devfs then also exclude the /dev/folder on your running system
I would use tar
mkdir newdrive
mount /dev/hda1 /newdrive
cd /
tar -cv . --exclude ./proc --exclude ./newdrive | (cd /newdrive; tar -xv)
mkdir /newdrive/proc
Last edited by DavidPhillips; 03-18-2003 at 08:16 PM.
...now to start transferring the system. I have no folder that you mentioned though. I have a boot.b, a rc.custom.gz, a settings.s, and a zImage. I also have a file or something named map.
Last edited by lectraplayer; 03-18-2003 at 08:44 PM.
What DavidPhillips is trying to explain is how to take an existing linux system and transfer it to another drive. newdrive is a directory you create to mount your new drive.
Are you looking at the boot floppy you created during the install? The purpose is just to boot from the disk not to transfer files from.
The files you are going to transfer are all from the existing hard drive install.
I'm a big Linux dummie, but I didn't see any of the folders you mentioned. I was telling you what folders I had. I know this Linux I'm messin' with unpacks upon boot up, if that makes a diference.
you must be looking at the floppy. If you boot the floppy you should have a linux system that is running in ram, this will contain the linux filesystem like I mentioned. You can't just put image files on a hard drive.
Of course I have no idea what's on the floppy(s) you are talking about, I am just guessing it's a linux system on floppy. If not you are doing something that's not possible.
Let us know what you have and what you are trying to do.
After this Linux boots off the floppy and unpacks, I log in and go ls, and I did not see any folders you talked about. I would like to stick that Linux system on my hard disk somehow. What tool do I use? The original RPM or something?
I'm not sure I can help, generally, but I think I see the communication breakdown. Like if it was a DOS boot floppy, you'd be running DOS in RAM and if you wanted to transfer *just* the floppy's system from the diskette to the hard drive, you'd 'sys c:' from the prompt (and maybe 'copy *.*' after that) and it would let you boot a copy of the floppy system from the hard drive. And you want to know how to do that in Linux, right? That I don't know. Do you have the boot and root images on floppy? Would swapping them in and 'dd'ing them work? Probably not, but I don't know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.