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 11-22-2005, 08:38 AM   #1
sunman
Member
 
Registered: Jun 2005
Distribution: Slackware64 13.0 (multilib)
Posts: 67

Rep: Reputation: 15
question about mounting a new hd


I've been a slack user for a few months now, it's the first and only linux distro I've ever used and I've been very happy with it. I'm still learning things, actually I suspect I always will be learning with linux, and I had a maybe silly question about what happens if you mount a new drive. Let's say I've been using a single partition for running slack and I have data in the /home directory under my user account. So I add a new hd to the system and mount it to /home, what would happen to the data that's already located in /home on the first hd? This is purely just a curiosity question, if I was to actually install a new drive I'd backup the data and move it to the new drive before mounting it so, I was just wondering.
 
Old 11-22-2005, 08:56 AM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware14.2 64-Bit Desktop, Devuan 2.0 ASCII Toshiba Satellite Notebook
Posts: 3,173

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
Thats an interesting question, and I am no expert either, but I would assume it would not override any files already in the /home directory, but things might get a little messy, with all the current directories and files in home, in addition to the new files from that drive. I would say still go ahead and mount it to your /home , but maybe create a sub-directory for that drive, such as /home/newdrive or something to that sort, only make sure you update your fstab accordingly to your new drive, so you can mount it.... This is just a guess mind you, but I hope I have provided some kind of insight (though I don't know what) maybe someone with more exp. can clarify this issue..

Last edited by Jeebizz; 11-22-2005 at 08:57 AM.
 
Old 11-22-2005, 08:57 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
From man mount :
Code:
 The standard form of the mount command, is
              mount -t type device dir
       This  tells the kernel to attach the file system found on device (which
       is of type type) at the directory dir.  The previous contents (if  any)
       and  owner  and  mode of dir become invisible, and as long as this file
       system remains mounted, the pathname dir refers to the root of the file
       system on device.
I never really tested it, but I believe the content of the directory will disapear like
the man page says
 
Old 11-24-2005, 12:20 AM   #4
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Rep: Reputation: 31
I read somewhere that if you want to use an extra drive for your home dir (eg you have outgrown your existing drive), install the new drive, format it, and then mount it some where tempory like /mount/temp and then copy the entire contents of your /home drive to the new /mount/temp. Then modify the fstab so the new drive will appear as your home with all your existing data there ready to use.
 
Old 11-24-2005, 02:13 AM   #5
migs
LQ Newbie
 
Registered: Nov 2005
Location: Manila, Philippines
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Quote:
Originally posted by keefaz
From man mount :
Code:
 The standard form of the mount command, is
              mount -t type device dir
       This  tells the kernel to attach the file system found on device (which
       is of type type) at the directory dir.  The previous contents (if  any)
       and  owner  and  mode of dir become invisible, and as long as this file
       system remains mounted, the pathname dir refers to the root of the file
       system on device.
Code:

I never really tested it, but I believe the content of the directory will disapear like
the man page says
did it before myself, (before i knew about that) and got the shock of my life when 200 megs seemed to disappear.

i just mounted the new drive to another directory under /mnt after the shock wore down, and my brain started kicking in again.
 
  


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
Mounting Question ZeroX-2 Slackware 4 12-02-2004 07:48 AM
A very (newbie) question about mounting ahmed_alzahrani Linux - Newbie 5 09-12-2004 06:16 PM
Question about mounting johnlong_03 Slackware 4 08-01-2004 01:18 AM
mounting question... hollywoodb Linux - Newbie 4 08-26-2003 03:11 PM
Mounting question? blither Linux - General 3 01-20-2003 12:55 AM

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

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