Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 06-15-2004, 06:21 AM   #1
Registered: Apr 2004
Location: India
Distribution: Opensuse 11.3
Posts: 34

Rep: Reputation: 15
Attach a new partition to Linux FS

I just discovered a 2.5 GB unformatted space on my hard disk.I formatted it to ext2 type using parted program.But I am at a loss as to how I would be able to attach it to my existing Linux file system,i.e., I want to move my home directory to the new partition.

My puzzlement is, if I copy all the files and directories to the new partition and then remount it as home, won't my existing files under /home will all be orphaned?.Once I remount the new partition at /home,I wouldnot really be able to access ant files under the old home,and not able to erase them,which means the space on the disk occupied by them will not be recovered for use.

Does anybody know?

Parameshwara Bhat
Old 06-15-2004, 08:54 AM   #2
Registered: Aug 2003
Location: Charlotte, NC
Distribution: Fedora Core 3?
Posts: 95

Rep: Reputation: 15
I would love a reply to this

how would you go about mounting home to a different partition anyways

what filesystem should be chosen

where should additional partitions for storage purposes be mounted

those are the questions I would like answered
Old 06-15-2004, 02:03 PM   #3
LQ Newbie
Registered: Jun 2004
Location: Andorra
Distribution: Debian testing
Posts: 9

Rep: Reputation: 0
Lets see,

mount /dev/hda3 /home

hda being your primary hard disk, and the 3 being the third partition on it.

But I dont know what your current setup looks like. You may need to copy your current /home to somewhere else before mounting it like that.

To have it mounted at boot time you need to edit the /etc/fstab file.

Try man. Eg,

man mount
Old 06-23-2004, 01:04 PM   #4
Registered: Apr 2004
Location: India
Distribution: Opensuse 11.3
Posts: 34

Original Poster
Rep: Reputation: 15
I managed it.

How I did was like this.

I mounted new partiotion at /data.

Being root who has his own home directory at /root,I moved all home folders to /boot,but retained /home directory.Now I edited fstab to mount the new partition at /home,and rebooted.Everything turned out perfect just as I expected.

I have been working in my own home diretory moved like this and fsck reports less than 0.5% of disk fragmentation.I do not know how it manages it!

P Bhat


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
Attach Workstation ajkannan83 Linux - Networking 0 08-24-2005 06:20 AM
uuencode doesn't attach on linux bigearsbilly Programming 1 02-10-2005 08:57 AM
How to Attach a file on my thread? extremebfn LQ Suggestions & Feedback 5 09-05-2004 10:03 PM
attach to another linux server rwalkerphl Linux - Newbie 4 07-04-2004 11:01 PM
How to add new partition before Linux partition in an existing Linux box? ashutosh Linux - Software 3 04-23-2002 03:26 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration