Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-10-2008, 04:22 AM   #1
LQ Newbie
Registered: Nov 2007
Posts: 15

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


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?

Old 04-10-2008, 06:01 AM   #2
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;

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

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: 60
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.
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
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!



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
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

All times are GMT -5. The time now is 09:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration