LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-21-2006, 07:30 PM   #1
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Rep: Reputation: 30
Adding hard drive questions


I have redhat 7.2 running and my users are about to fill the whole hard drive thats in there so i added another hard drive now how do i get linux to allocate the space on the new drive to the users home directory ?
 
Old 02-21-2006, 09:09 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Usually folks create a /home2 on the new drive, and move some (or all) users from /home to /mnt/newdrive/home2. If you do this, remember to specify the new basedir when adding new users. This can cause problems with scripts that reference '/home/user/somefile'.

Alternatively, you can move /home to the new drive, leaving the existing drive just for the system. If you do that, create a symbolic link to the new home so no software changes are needed:

ln -s /mnt/newdrive/home /home

Make sure to automount the new drive in /etc/fstab.
 
Old 02-21-2006, 09:10 PM   #3
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Original Poster
Rep: Reputation: 30
its okay i tried to mkfs and all i get is bad block count if i try to mount it basicly same error what of this ?
 
Old 02-21-2006, 09:49 PM   #4
nguyennh
Member
 
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106

Rep: Reputation: 15
Have you formatted your hard drive yet ?
 
Old 02-22-2006, 07:35 AM   #5
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Original Poster
Rep: Reputation: 30
I thought thats what mkfs did
 
Old 02-22-2006, 07:51 AM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yes, that is what mkfs does. What filesystem are you using, and can you post the output of the mkfs?

Are you using the '-c -c' option to check for and map out bad blocks?

Last edited by macemoneta; 02-22-2006 at 07:52 AM.
 
Old 02-22-2006, 07:15 PM   #7
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Original Poster
Rep: Reputation: 30
i am trying to make ext3
with this command mkfs ext3 /dev/hdb

then it returns with this
mkfs 1.23 15-aug-2001 for ext fs 0.5b 95/08/09
mkfs.ext2: bad blocks count - /dev/hdb

and no i am not useing the -c option
 
Old 02-22-2006, 08:47 PM   #8
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Ah, bad syntax.

First fdisk the drive. Delete existing partitions, and add a primary partition for the entire drive (default cylinder extents), and make the partition type 83 (Linux).

then you can format it as ext3 with:

mke2fs -j -m 0 /dev/hdb1

That is assuming that the drive is /dev/hdb; the '1' at the end signifies the first partition.
 
Old 02-23-2006, 05:36 PM   #9
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Original Poster
Rep: Reputation: 30
ahh, Thank you i was wondering what i was doing wrong.
 
  


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
Adding a second hard drive AxXium Slackware 9 03-24-2006 02:27 AM
adding hard drive linoj Linux - General 6 12-25-2004 12:51 PM
Adding a Hard drive jfisk Linux - General 3 08-08-2003 12:42 AM
adding a hard drive Serena Linux - General 2 07-19-2003 05:39 PM
adding hard drive jmarsh Linux - Hardware 3 02-27-2003 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:28 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
Open Source Consulting | Domain Registration