LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-2004, 04:08 AM   #1
Commando464
Member
 
Registered: Jul 2004
Location: Edmonton, Canada
Distribution: Fedora Core 4
Posts: 82

Rep: Reputation: 15
Copying from Linux partition to Linux partition


I know this question has been asked on here before but with some very long winded answers.

To me this sounds like a simple plan but need to make sure it will work before i try it

I have two HD's in my computer. One is a 40 gig, which is my master and a 12 gig which is the slave.

the 40 gig has a windows partition of 15 gig and remainder is Linux partition. The 12 gig is all linux.

Both linux partitions on both HD's are ext3. One on the 40 gig was created by a failed Fedora Core 2(would rather not get into the failure part right now) and the one on the 12 gig is from SuSE.

After all that this is what i want to do. I want to take the new SuSE, thats been finally configured to my liking with all the software that i need for my business over to the partition on the larger drive. Its a larger newer and faster drive.

I am really new to Linux, just getting back into the commands now, have not used a text based system since the years of DOS.

Whats the quickest way without getting too technical. I have read few HOW TO's without much help.

Can i just copy from partition to partition then fix the grub.conf and menu.lst to point to right partitions?

BTW there is no windows running. The windows partition is for old documents and work related files.

Thanks

 
Old 07-26-2004, 04:24 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
you'd at least have to also modify /etc/fstab to match
the new devicenames ....



Cheers,
Tink
 
Old 07-26-2004, 04:44 AM   #3
Commando464
Member
 
Registered: Jul 2004
Location: Edmonton, Canada
Distribution: Fedora Core 4
Posts: 82

Original Poster
Rep: Reputation: 15
So in theory i could work.

As long as i change grub.conf, menu.lst and fstab to point to the right drives. But just in case i am going to make sure to back those files to a safe place to restore them after.

I will give it a try.

Thanks
 
Old 07-27-2004, 04:07 AM   #4
Commando464
Member
 
Registered: Jul 2004
Location: Edmonton, Canada
Distribution: Fedora Core 4
Posts: 82

Original Poster
Rep: Reputation: 15
Been thinking of this since yesterday. I think after all the thought.

What would be involved in just moving the largest folders over to the larger drive?

I am thinking of /usr, /var and /home.

I am trying keep to a minimum for now to work from the command lines. When i feel more comfortable then i will try the more complicated commands.

Thanks
 
Old 07-27-2004, 04:56 AM   #5
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
Have a quick read through this page. It's pretty basic.

Baldrick
 
Old 07-27-2004, 05:26 AM   #6
Commando464
Member
 
Registered: Jul 2004
Location: Edmonton, Canada
Distribution: Fedora Core 4
Posts: 82

Original Poster
Rep: Reputation: 15
Might be basic to you, but not to people who have gotten used to GUI.

Let us get used to the commands before asking for an attempt at something like this.

Appreciate the link but right now i want a quick way to do this, without having to make sure the commands are typed in correctly. So far i have only seen most of the seasoned users putting down newbies. How can you expect people to jump into something that is a major change?

You have to let people wean themselves off the Windoze mentality. I have already attempted a few long commands in installing some software only to find after spending ten minutes making sure to get it right, then having it wrong and having to start all over again.

Since i have KDE on SuSE, i would like to be able to drag the files from one to the other drive. Since both drives are already formatted as a Linux Partition. Then i would like to change the boot configuration to point to the right drive.

Thanks for the info, i might use it when i feel more comfortable with the commands.
 
Old 08-12-2004, 05:11 PM   #7
CrazyToon
LQ Newbie
 
Registered: Jun 2003
Posts: 21

Rep: Reputation: 0
Don't worry newbie. But you should be able to type the commands in. If you can't, there is a lot of things you can't do. I am sure you can tho cuz you do sound like you know basics of it.

You do mention about editing grub.conf and fstab. Therefore "cp" command should be easy. Try the 3rd technique of copying on the link.

Last edited by CrazyToon; 08-12-2004 at 05:13 PM.
 
Old 08-25-2004, 07:34 PM   #8
cas@
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
make a partition (with yast), same filesystem, size, blocksize... as your suse partition
login as root, type "init 1" in console, or boot from a live cd (better)
then type in "dd if=/dev/<your-existing-suse-partition> of=/dev/<your-new-partition>"
wait
type "mount /dev/<your-new-partition> /mnt"

edit /mnt/etc/fstab,
clone the original suse entry in /boot/grub/menu.lst, edit (hdx,y)/... , root=/... and title
(its not /mnt/boot...)
maybe run fsck on the new partition
boot the new partition

dd does not care about the filesystem or anything, eg you can create a partition with an ext2 fs and dd copies a reiserfs without altering the partition table
it worked for me, but i don't think it is safe, try it at your own risk!!! (as always )

Last edited by cas@; 08-25-2004 at 07:39 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
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 01:31 AM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
What is the code to copy a file from my windows partition to my linux partition? THEBIGFISH Linux - Newbie 3 03-15-2004 10:14 PM
copying files from linux to windows partition as user aiims1777 Linux - General 15 11-15-2003 01:56 AM
How to add new partition before Linux partition in an existing Linux box? ashutosh Linux - Software 3 04-23-2002 03:26 AM


All times are GMT -5. The time now is 04:44 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