LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-10-2008, 04:22 AM   #1
k0r54
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 0
Added new HDD now want to change /home


Hi,

I am running debain and have 3 partitions on an 80 gb hdd root, swap and /home.

I have added a new hdd to the system and now i want to change /home to this new drive. Its a 500gb hdd so im not too worried about loosing the 60gb it is on at the moment but i do want to keep my data.

Any ideas?

Thanks
k0r54
 
Old 04-10-2008, 06:01 AM   #2
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
How confident do you feel with creating partitions and update the fstab file?

If you feel that wont be too much of a problem, there are a number of howtos on this;

http://www.google.co.uk/search?hl=en&q=linux+move+home

If the whole idea seems a little scary to you, then post the output of;

Code:
cat /etc/fstab
and let us know if the drive is already attached.
 
Old 04-11-2008, 02:07 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Download and use Gparted to make a partition and format it with ext3 file system. Then follow these steps, do not include anything in between and including the brackets in these commands, those are just quick explanations.
Code:
As root or sudo in single user mode:
1: #mkdir /mnt/newhome
2: #fdisk -l   (to find device name of new partition)
3: #mount -t ext3 /dev/???? /mnt/newhome (replace check marks with what is appropriate based on the output of fdisk -l command for the new partition)
4: #cd /home
5: #cp -ax * /mnt/newhome
6: #cd /
7: #rm -fr /home
8: #umount /mnt/newhome
9: #mv /mnt/newhome /home
10: #vim /etc/fstab (edit /etc/fstab with favorite editor if not vim, and add line below with proper /dev/xxxx)
11: /dev/???? /home ext3 defaults 1 2
12: re-boot
 
Old 04-11-2008, 06:28 AM   #4
k0r54
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
I used the fstab method, i was pretty sure that was how to do but but needed to confirm.

Thanks for the input though!

k0r54
 
  


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
How to manage newly added 2nd HDD ? kcarun Solaris / OpenSolaris 11 09-07-2007 12:54 AM
added HDD in linux services failed to turn on swap krishna_kawhale Linux - Server 3 08-09-2006 10:58 PM
Extending /home with additional HDD but no LVM derekluaxp Linux - Newbie 5 02-25-2006 09:35 AM
reading /home/ on HDD in USB caddy xc_gumby Linux - General 1 10-29-2005 01:02 PM
added second nic to network at home now cannot connect to internet gonus Linux - Networking 12 08-23-2002 09:56 PM

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

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