LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2005, 08:37 PM   #1
kuplo
Member
 
Registered: Oct 2005
Posts: 123

Rep: Reputation: 15
Hard drives


I have 2 hard drives my hda1 hard drive is 204gb, my hdb1 is 115gb, everything seems to be on the first hard drive, but what do I do with the second one. I've already setup the machine and it's working fine, i TRIED to reset the second hard drive to linux native with a mount point of /Home but it wouldnt let me. So what do I do with it now.

here is my current fdisk -l

Disk /dev/hda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 131 1052226 82 Linux swap / Solaris
/dev/hda2 * 132 24790 198073417+ 83 Linux

Disk /dev/hdb: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 15017 120624021 83 Linux

Last edited by kuplo; 11-28-2005 at 09:10 PM.
 
Old 11-28-2005, 08:46 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
You can give it to me

If you want to dedicate the entire 115GB to /home then here's how I'd go about it:

fdisk /dev/hdb

And follow the included instructions to make sure you have that partition, and the partition type ID is Linux (I believe it's 83?).

Once you are done, create the filesystem on that partition (assuming you want ext3):
mke2fs -j /dev/hdb1

And then mount it somewhere to copy your home info over:
mount -t ext3 /dev/hdb1 /mnt/newdrive

And copy:
cp -a /home/* /mnt/newdrive

And then remove your current home 'stuff' (assuming the copy went well, be sure to check):
rm -rf /home/*
And then umount and remount OR one command to do both:
umount /dev/hdb1
mount -t ext3 /dev/hdb1 /home
OR
mount -t ext3 /dev/hdb1 /home -o remount

Cool
 
Old 11-29-2005, 09:39 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Good answer, but I'm not sure what the QUESTION was....!

For the OP: What do WANT to do with the second drive?
 
Old 11-29-2005, 12:31 PM   #4
kuplo
Member
 
Registered: Oct 2005
Posts: 123

Original Poster
Rep: Reputation: 15
I want the second drive to start filling up with virtual websites when the first drive is almost full, so I dont have to think about it till the 2nd drive is getting full. When that happens I'll try to add my ata pci card and add more larger hard drives, but thats probably a couple months away. I've got one website already with only 11 users but over 50MB on the drive so it fills up pretty quick.

Last edited by kuplo; 11-29-2005 at 12:33 PM.
 
Old 11-29-2005, 01:31 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Have you considered LVM?

On linux at least, this is a way of having many drives appear as one.
 
Old 11-29-2005, 05:24 PM   #6
kuplo
Member
 
Registered: Oct 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Is there a way of changing that without destroying whats already done and having to redo it all? The original suggestions from Suse 9.3 was LVM for all drives, but someone else suggested to not use it(can't remember why at the moment).
 
Old 11-29-2005, 05:55 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I dont know---but I wouldn't try it even if the book said you could.

First, back up all your data---you do have an external usb drive for backup--right?
 
Old 11-29-2005, 06:55 PM   #8
kuplo
Member
 
Registered: Oct 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Nope, Im just backing up to dvd R the websites, and any other important files I can think of like the virtual host files since I've still got a long way to go to get everything working like mail, ftp etc. Hell I can't even ftp into my own box.
 
Old 11-29-2005, 07:15 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Check your firewall settings, sometimes that's the hitch that can never be found.

As for LVM..

I switched recently to LVM with an XFS filesystem, and lost the files. Basically it was my own lack of knowledge of LVM and how to switch properly, but I did lose everything. A backup would have been nice Just be sure your backup is as new as possible, then go for it. I personally (now) use partimage for my backups.

Cool
 
Old 11-29-2005, 08:01 PM   #10
kuplo
Member
 
Registered: Oct 2005
Posts: 123

Original Poster
Rep: Reputation: 15
Someone else suggested the XFS file system, what exactly is that and what are the advantages of using that over the 0x83(I think thats what it is).
 
Old 11-29-2005, 08:24 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
I like XFS because it deletes files a lot faster. It's also, IMHO, a bit 'snappier' when doing anything that is hard drive I/O intense. It's a little different and requires a while to get used to (using the tools I mean) but it's nice for growing filesystems:
xfs_grow

It seems that a lot of people prefer it for LVM use too.

Cool
 
  


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
External Hard Drives/Hard Drives ddrfreak Mandriva 1 12-16-2004 07:12 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 04:28 PM
Hard Drives D-Lo Brown Linux - Newbie 5 04-01-2003 05:58 AM
How do you use two hard drives? calimer Linux - Hardware 2 07-08-2002 06:12 AM
2 Hard Drives Randy-RH7 Linux - Newbie 2 10-05-2001 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration