LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-28-2006, 10:17 AM   #1
Chroma
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
swapping drives ?


Im currently running slack on a 2gb hard drive, ive got a 20gb partition just set up using ext2 (same as the slackware drve)

My question is...

Would it be possable to copy over my entire slack drive onto the 20gig partition and edit the fstab to change the 20gig partition to root?

Would this actualy work?

Ive done a little searching around but im flummoxed as to how to phrase a search for this question.

Surely someone on here must have tried it before?
 
Old 09-28-2006, 12:20 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Yes, that would work. You'd also need to update lilo so it boots off the new partition.
 
Old 09-28-2006, 12:43 PM   #3
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
See my reply here: http://www.linuxquestions.org/questi...d.php?t=486362

I use tar to move the files required while maintaining permissions and run lilo after.
 
Old 09-28-2006, 12:49 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Quote:
Originally Posted by 2Gnu
I use tar to move the files required while maintaining permissions and run lilo after.
`cp -p` will also do and is much faster.
 
Old 09-28-2006, 01:43 PM   #5
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
I'd also suggest changing to a journaling fs. ext2 fsck's are going to get tedious on a 20g drive.
 
Old 09-29-2006, 04:36 AM   #6
Chroma
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Original Poster
Rep: Reputation: 0
It worked.

I just used cp -ax / /[new drive]

Transfered everything over, made a /proc directory
Then went about editing the new fstab and editing lilo to boot the new root.

Worked pretty well and im probably going to have to do it all over again...

See im slowly trying to phase out windows.
I've got a wife and daughter who know next to nothing about computers, I'm sick of my daughter downloading viruses and me spending hours trying to get windows back up. As soon as they start getting used to Slackware and it's all configured and bug free then I'm going to transfer everything i need off the other fat and two ntfs partitions and get down to a sane partitioning scheme.

so far my fstab loks like this:
Code:
/dev/hda5        swap             swap        defaults         0   0
/dev/hdb5        /                ext2        defaults         1   1
/dev/hda1        /c               vfat        defaults         1   0
/dev/hdb1        /d               ntfs        ro               1   0
/dev/hdb6        /e               ntfs        ro               1   0
/dev/hdc1        /download        ext2        defaults         1   1
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
Im looking to get rid of /c(20gb) /d(20gb) and /e(40gb)
Any advice on a new partitioning setup would be appreciated.
Im still pretty new to the file structure and dont know which directories will require the most breathing room.
It looks like a nightmare right now but it should work out pretty well once ive finaly phased out the other os.
 
  


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
Swapping Hard Drives With Redhat 9 Neochubbz Linux - Hardware 1 01-06-2005 10:55 AM
Two USB flash drives keep swapping device files pwalden Linux - General 8 12-30-2004 03:48 PM
Swapping Drives Little Dump Linux - Newbie 0 10-13-2004 07:46 PM
Swapping Drives Little Dump Linux - Hardware 0 10-13-2004 02:28 PM
swapping hard drives enzo250gto Linux - Hardware 8 08-31-2002 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:48 PM.

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
Open Source Consulting | Domain Registration