LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-14-2004, 05:23 PM   #1
lawrencegoodman
Member
 
Registered: Aug 2003
Posts: 47

Rep: Reputation: 15
Running out of Room for Linux


I have nearly run out of room on my main Linux partition. There is another partition /dev/hda7 that I have created and formatted in Ext2. I would like to move some of my files over to that partition. I am using Suse 8.2 and tried to do it through Yast but it didn't take. Do I manually need to edit the fstab file? But then how do I, for example, move all the files in /usr to hda7 without screwing up all the settings that depend on these files being where they are now, which is /hda8?

All advice is greatly appreciated.

Lawrence
 
Old 01-14-2004, 05:42 PM   #2
eastsuse
Member
 
Registered: Dec 2003
Location: Pacific Palisades
Distribution: Suse 9.0
Posts: 48

Rep: Reputation: 15
Have you mounted the new partition to a new directory. If you haven't, you'll need to edit fstab.

So I would go to /etc/fstab and open it up in your favorite text editor. Then append the following to the last line:

/dev/hda7 /your new directory here/ ext2 defaults 0 0

I'm not an expert on fstab, but I think that should work. I would then reboot to make sure it mounts on boot up.

Then to copy the files I would go into your favorite console (shell) and type

cp /usr/* /your new directory/

cp = copy

* is a wildcard for all file in that directory. If you want to only copy .txt files I would: cp /usr/*.txt /your new directory/

Last edited by eastsuse; 01-14-2004 at 05:43 PM.
 
Old 01-14-2004, 05:47 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Slight variation to eastsuse's aproach :}

init 1

Make a temporary mountpoint for hda7

cp -dpR /usr /<new_mountpoint>

edit fstab, add

/dev/hda7 /usr ext2 defaults 1 1



Cheers,
Tink
 
Old 01-15-2004, 01:10 AM   #4
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
Here is a very good guide, imho, i wrote it myself:

http://linux.pharm.uic.edu/forums/viewtopic.php?t=11
 
Old 01-16-2004, 09:53 AM   #5
lawrencegoodman
Member
 
Registered: Aug 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks to the excellent advise I got on this site I just successfully created a /dev/hda7 and mounted it at /usr. Thanks.

I do have a question just for my own edification though. In doing this, I first mounted /dev/hda7 at /mnt and then copied all the files in /usr to /mnt. I did NOT though erase the files already in /usr. When I then mounted /dev/hda7 at /usr, I thought I was going to have two copies of all the files in /usr, but apparently I did not. Did I wipe out the original versions of the files? I can't think I have two copies of all these files lying around because I have indeed freed up a lot of disk space on hda8, which is where the /usr files were originally.

So maybe someone could just tell me what happened?

Thanks.
 
  


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
Anyone got a link to the gif of the joke ghost running through a room? davee General 13 05-31-2006 11:04 PM
Chat room on Linux box hct224 Linux - Newbie 1 07-21-2004 03:31 AM
Linux is more messy then my room ElementNine Linux - General 9 01-24-2004 11:06 AM
Windows Partition Split For Room To Install Red Hat Linux 9.0 AndrewBalmos Linux - Newbie 2 01-01-2004 12:39 PM
Any one Know if there is a chat room for linux rkblk1 Linux - General 8 07-31-2002 10:44 PM


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