Mailinglist Archive: opensuse (2271 mails)
| < Previous | Next > |
Re: [SLE] Newbie Question - Adding Hard Drive.
- From: Kenneth Schneider <suselist@xxxxxxxx>
- Date: Fri, 16 Apr 2004 13:03:06 -0400
- Message-id: <1082134985.10219.34.camel@xxxxxxxxxxxx>
On Fri, 2004-04-16 at 11:53, David Rankin wrote:
> Mates,
>
> I have 8.2 pro on /hda, cdrw on /hdc and another 20G drive I want to add
> as /hdc and move the cd to /hdd. The 20G drive has 9.0 pro on it that I
> thrashed. After I install the 20 G as /hdc, I would like get your help with
> just the basic names of the cmd line tools to do the following.
>
> (1) partition and reformat /hdc to ext2 as the /home partition;
> (2) move my existing /home from /hda to /hdc; and
> (3) hopefully not screw up my 8.2 install on /hda.
>
> I can handle the /etc/fstab entries.
>
> Just a link to a page with this info would be fine.
I would recommend connecting the drive to /dev/hdb rather then mix a
cdrw drive and a hard drive on the same ide controller. You'll have far
fewer problems I/O that way.
as root in run level 3:
(1) install the hard drive on hdb
(2) fdisk the drive as one partition (you can use YaST for this and #3)
(3) mkfs.ext2 /dev/hdb1
(4) mount the partition to a temporary mount point
mount /dev/hdb1 /temp
(5) copy the /home data to the temp mount point
(cd /home;tar cf - *)|(cd /temp;tar xvf -)
(6) umount /temp
(7) mv /home /home.old (assuming on the root filesystem)
(8) add mount point in /etc/fstab
(9) mkdir /home; mount /dev/hdb1 /home
(10) login as user on another tty to test
If you have no errors after logging in as a normal user you should be
safe to go. And you never needed to reboot after adding the 2nd drive
just init 5 as root.
--
Ken Schneider
unix user since 1989
linux user since 1994
SuSE user since 1998 (5.2)
> Mates,
>
> I have 8.2 pro on /hda, cdrw on /hdc and another 20G drive I want to add
> as /hdc and move the cd to /hdd. The 20G drive has 9.0 pro on it that I
> thrashed. After I install the 20 G as /hdc, I would like get your help with
> just the basic names of the cmd line tools to do the following.
>
> (1) partition and reformat /hdc to ext2 as the /home partition;
> (2) move my existing /home from /hda to /hdc; and
> (3) hopefully not screw up my 8.2 install on /hda.
>
> I can handle the /etc/fstab entries.
>
> Just a link to a page with this info would be fine.
I would recommend connecting the drive to /dev/hdb rather then mix a
cdrw drive and a hard drive on the same ide controller. You'll have far
fewer problems I/O that way.
as root in run level 3:
(1) install the hard drive on hdb
(2) fdisk the drive as one partition (you can use YaST for this and #3)
(3) mkfs.ext2 /dev/hdb1
(4) mount the partition to a temporary mount point
mount /dev/hdb1 /temp
(5) copy the /home data to the temp mount point
(cd /home;tar cf - *)|(cd /temp;tar xvf -)
(6) umount /temp
(7) mv /home /home.old (assuming on the root filesystem)
(8) add mount point in /etc/fstab
(9) mkdir /home; mount /dev/hdb1 /home
(10) login as user on another tty to test
If you have no errors after logging in as a normal user you should be
safe to go. And you never needed to reboot after adding the 2nd drive
just init 5 as root.
--
Ken Schneider
unix user since 1989
linux user since 1994
SuSE user since 1998 (5.2)
| < Previous | Next > |