LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 06-07-2005, 05:16 PM   #1
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Rep: Reputation: 15
moving partitions


i'm using qt parted to edit my partition scheme and I isntalled linux on a partition btween two partitions (i was going to put windows on the first partition, but that's not happening now). Is there anyway I can make the first partition the one with my linux files on it (can I copy hda4 to hda1?)

i guess it was an accident when I installed linux a while ago.

I want to move linux to the first partition so that i can merge the 5gb with my 20 gb partition i use for data. I discovered bit torrent so I'm quickly running out of room.

Another thing i tried was mounting hda4, but I don't know how to:
a) have it mount using "mount ____ ____" like i do for my floppy and dvd.
b) edit my fstab and have it auto mount.

thanks all those who can help
 
Old 06-07-2005, 10:30 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
i thought dd was the command to do something like this.. maybe im wrong.
could u get a live cd and just boot with that and copy the entire contents of one partition to the other? youll have to change the lilo or grub configurations so it knows where the new kernel + root folder is.
search around, i dont know, but, im sure theres a good explanation on how to do this properly, if dd is not the command... dont take my word, its just my input.
 
Old 06-08-2005, 01:57 PM   #3
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Original Poster
Rep: Reputation: 15
i was thinking about just doing a duplicate copy, but my fear is that some programs won't work?

haha
 
Old 06-08-2005, 02:01 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
ya thats why i was saying to look into it on google.com/linux or somewhere.. there may be many conflicts if you do it and might not be able to boot.. i have no experience with it so i dont know, maybe theres software that can do it all for you and safely.. check sourceforge or something for a program that would be appropriate.
hope someone else can help, im outta $0.02
 
Old 06-08-2005, 11:53 PM   #5
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
You will just need to edit grub.conf (or the lilo equivalent) and fstab to reflect the new partition numbering caused by moving the partition. Both can be done either the last time you run linux before the move or from a rescue mode / live-CD after the move.
 
Old 06-09-2005, 12:15 AM   #6
juanbobo
Member
 
Registered: Mar 2005
Location: Chicago
Distribution: Gentoo AMD64
Posts: 365

Rep: Reputation: 30
One way to copy a partition bit for bit is...

dd -if FROM_PARTITION -of TO_PARTITION
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving space between partitions GoBillsBN Mandriva 1 07-12-2005 11:41 AM
Moving Partitions. firedance Linux - General 1 01-08-2005 04:07 AM
moving partitions around Rocker Linux - General 7 02-02-2004 11:21 AM
Moving directories to their own partitions bxb32001 Debian 7 12-08-2003 06:40 AM
Moving partitions nabil Linux - Software 5 07-17-2001 03:55 AM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration