LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-06-2005, 01:31 AM   #1
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Move mount point to another physical drive?


Code:
root@gateway:~# cat /etc/fstab
/dev/sda5        swap             swap        defaults         0   0
/dev/sda1        /                reiserfs    defaults         1   1
/dev/sda6        /usr             reiserfs    defaults         1   2
/dev/sdb1        /var             reiserfs    defaults         1   2
/dev/cdrom       /mnt/cdrom       iso9660     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
I want to move /var from /dev/sdb to /dev/sda without ruining my system. I have enough space on sda6 to accomodate all the data in /var. Can I just copy the data to /usr/var and then make a hardlink /var -> /usr/var, then restore it when I'm done ?

If I can do that, what modifications so I make to fstab, just change /dev/sdb1 from /var to /benchmark?

I want to do this to run some custom file system benchmarks on the spare drive which will require reformatting it several times.

The following thread was slightly helpful, but didn't quite answer the question
http://www.linuxquestions.org/questi...ng+mount+point
 
Old 05-06-2005, 06:59 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Read my December 12th, 2003 - New Drive in Server Journal Entry found here: http://www.linuxquestions.org/questi...60&action=view

I actually performed the same thing you are wanting to do with /var.. with the exact steps I took.
 
Old 05-06-2005, 01:42 PM   #3
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
Cool so my ideas was pretty much right...I was just worried that not finding /var in fstab (since it would be inside another partition which was not /, which would make everything easy) would make Slack yell at me.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
Hard Drive Mount Point Question The Oate Mandriva 6 08-03-2004 08:25 PM
mount point on new drive mnauta Linux - General 5 01-09-2004 06:42 PM
I need to reallocate drive space from mount point / to /boot decampbell1 Linux - Newbie 7 01-08-2004 02:34 PM


All times are GMT -5. The time now is 01:58 PM.

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