LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-03-2006, 10:03 AM   #1
Abnoba12
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 2, Fedora Core 6, UNBUNTU
Posts: 22

Rep: Reputation: 15
Hard drive upgrading


I have an old 10gb hard drive and I wanted to upgrade and put in a 30gb drive. I put the 30gb drive in the machine as a slave. My Drives are /dev/hda = 10gb original, /dev/hdb = CD-Rom, and /dev/hdc = 30gb.

hda partitions: hda1 = 1gb /boot, hda2 = 8.8gb free space, hda3 = linux-swap 200mb (I think they were around these values)

I used the command: dd if=/dev/hda of=/dev/hdc

Now my 30gb drive has an exact copy of hda.

hdc1 = 1gb /boot, hdc2 = 8.8gb free space, hdc3 = linux-swap 200mb, hdc4 = 20gb free space.

I took out the 10gb drive and put in the 30 and the computer is exactly the same as before, but I want to use the extra 20gb of space. I’m not sure what type of partition to make hda4 (was hdc4). Just experimenting I made hda4 the standard ext3 and then mounted it. It worked, but I have to mount the drive every time I reboot.

Would be nice to have a little more of an explanation if someone would be so oblgiged. I did read http://www.linuxquestions.org/linux/...a_Linux_System and looked around the internet for more help, but most of it is over my head yet.
 
Old 08-03-2006, 10:20 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
What do you want to do, have hda4 mount automatically when you boot? That's what is sounds like to me.

First, create a mount point.
Code:
# mkdir /new_20GB_mount_point
Second, edit /etc/fstab to tell the system where to mount it.
Code:
# gedit /etc/fstab
Add a line to fstab such as
Code:
/dev/hda4  /new_20GB_mount_point   ext3   defaults   0 0
Third, reboot and your new 20GB volume should be mounted at /new_20GB_mount_point.

Here is a short primer on editing fstab.
 
  


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
upgrading laptop hard-drive microsoft/linux Linux - Laptop and Netbook 28 03-01-2006 10:34 AM
Upgrading to 9.1 Professional via same hard drive drunkardhu SUSE / openSUSE 2 03-31-2005 10:17 PM
upgrading hard drive pi_squared Linux - Hardware 5 12-21-2004 08:12 PM
Upgrading Hard Drive Comatose51 Linux - General 1 09-06-2003 01:42 AM
Upgrading from Redhat 8.0 to 9.0 from hard drive koiphish Linux - General 5 07-05-2003 02:47 AM

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

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