LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-04-2005, 06:22 AM   #1
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 24

Rep: Reputation: 64
Question Problem: Against HD Limit.


I have a 3Gig partition and my Debian Install is using up 85% of it (hda1).

So I tried to copy my /usr amd /var directories to /mnt/hda3 and created appropriate symlinks using:
ln -s /usr /mnt/hda3/usr

. It failed to work.

For now I redid all the changes. Any suggestions to remedy the problem are welcome.

Thanks in advance.

Vijay
 
Old 03-04-2005, 12:01 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Iwould suggest doing the following;

1. create the file system

2. edit fstab to reflect the new location of the directories

3. mount the partition on mnt

4. go into single user mode do init 1

5 use rsync to do the following rsync -avH /usr/ /mnt and rsync -avH /var/ /mnt

6. reboot the system
 
Old 03-04-2005, 01:29 PM   #3
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by TigerOC
Iwould suggest doing the following;

4. go into single user mode do init 1

5 use rsync to do the following rsync -avH /usr/ /mnt and rsync -avH /var/ /mnt

Please give detailed steps for number 4. How do I go into single user mode ?

For 5. do I type avH just like that in the entire command or does it represent something else ?

Thanks.

Vijay
 
Old 03-04-2005, 02:42 PM   #4
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 rvijay
Please give detailed steps for number 4. How do I go into single user mode ?
You need to be completely out of gui and as root and issue the command init 1

Quote:
For 5. do I type avH just like that in the entire command or does it represent something else ?

the command rsync -avH /usr/ /mnt interprets as synchronise -a=archive v=verbose H=preserve hard links and note the trailing / which is important. What rsync does is compile a list of files and their sizes and then checks if they are present on the destination and then writes them over. rsync is a very powerful tool capable of doing the same job over a network as well and in encrypted format as well. Just out of interest you can find out more at ; http://www.mikerubel.org/computers/r...apshots/#Rsync
It has been a while since I used it but having done the first directory /usr check /mnt/usr to see if it has created all correctly.
 
  


Reply



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
Two problem about "using pam to limit user login" coolend Linux - General 3 06-04-2004 01:11 PM
Mandrake /home directory size Limit problem psyientist Mandriva 9 05-14-2004 03:51 PM
Quota issue, hard limit doesn't limit users Gratz Linux - Software 2 09-16-2003 07:35 AM
problem about 1024 cylinder limit hard disk guru Linux - Newbie 3 08-30-2003 04:02 PM
child pid xxxxx exit signal File size limit exceeded (25)" problem. bisbane Linux - General 1 10-31-2002 04:35 AM

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

All times are GMT -5. The time now is 12:58 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
Open Source Consulting | Domain Registration