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 04-24-2004, 12:44 AM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Rep: Reputation: 32
I've run out of room...


Man, I knew this would happen...

Is there any way to install a second hard drive, partition it for linux and make sybolic links (or however you do it) so that my directories have more room to write to?

I really don't want to completely reinstall things... or have to change up the default install settings on future applications
I want to install...
 
Old 04-24-2004, 02:59 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Here's the method I have used;

1.Use cfdisk to partition.
2.format with mkfs.ext2 /dev/hdxx ( create swap with mkswap /dev/hdxx if required).
3.Convert the partition to ext3 by tune2fs /dev/hdxx.(if required)
4.Go into single user mode from consol by init 1.
5.mount the partition do mount -t ext3 /dev/hdxx /mnt.
6.Copy over the information do rsync -avH /directory_name/ /mnt or cp -avx /directory_name/ /mnt.
7.Unmount the drive do umount /dev/hdxx.
8. Re-name the old driectory do mv /directory_name /old_directory_name (in case of a problem.
9.Edit the fstab to reflect the new partition.
 
Old 04-24-2004, 03:04 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Yes, it's reasonably easy, even without symlinking.

Easiest way is if you have a bootable rescue CD,
or Knoppix or something the like...

From the actual system:
You do an init 1, partition the second hdd,
give it a filesystem, copy a directory you want
to move. Edit & save /etc/fstab to point to the new
partition with the copied directory for the
mountpoint ...

Shutdown, boot of CD (in case the old directory
that you moved contained system relevant libraries)
and delete it.

Reboot box from HDD, all sweet :}


Cheers,
Tink
 
Old 04-24-2004, 03:14 AM   #4
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by Tinkster
Yes, it's reasonably easy, even without symlinking.

Easiest way is if you have a bootable rescue CD,
or Knoppix or something the like...

From the actual system:
You do an init 1, partition the second hdd,
give it a filesystem, copy a directory you want
to move. Edit & save /etc/fstab to point to the new
partition with the copied directory for the
mountpoint ...

Shutdown, boot of CD (in case the old directory
that you moved contained system relevant libraries)
and delete it.

Reboot box from HDD, all sweet :}


Cheers,
Tink
I've got knoppix... I guess I could do all of it from there?
 
Old 04-24-2004, 03:16 AM   #5
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by TigerOC
Here's the method I have used;

1.Use cfdisk to partition.
2.format with mkfs.ext2 /dev/hdxx ( create swap with mkswap /dev/hdxx if required).
3.Convert the partition to ext3 by tune2fs /dev/hdxx.(if required)
4.Go into single user mode from consol by init 1.
5.mount the partition do mount -t ext3 /dev/hdxx /mnt.
6.Copy over the information do rsync -avH /directory_name/ /mnt or cp -avx /directory_name/ /mnt.
7.Unmount the drive do umount /dev/hdxx.
8. Re-name the old driectory do mv /directory_name /old_directory_name (in case of a problem.
9.Edit the fstab to reflect the new partition.
I use XFS as my filesystem... does that matter?
 
Old 04-24-2004, 03:34 AM   #6
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Just delete your porn...you'll download new stuff anyway. ;-)
 
Old 04-24-2004, 03:38 AM   #7
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally posted by Thaidog
I use XFS as my filesystem... does that matter?
If you format the drive for XFS in the 3rd step then it should not make any difference.
 
  


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
Chat Room? plisken LQ Suggestions & Feedback 6 11-26-2005 10:47 AM
mozilla says not enough room win32sux Mandriva 11 12-15-2003 09:12 PM
I have run out of room in my "/" directory on RH8. gsmonk Linux - Distributions 4 03-12-2003 05:02 AM
More Room on / Difficult Linux - Newbie 15 07-10-2002 04:44 PM
Chat room LinuzRulz General 11 06-07-2002 09:26 AM


All times are GMT -5. The time now is 01:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration