[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lost /usr partition



Okay, my question wasn't clear, but I figured it out, so here is what I 
did.  After mounting /dev/hdb1 on /mnt of hda, as suggested below by 
Ian, I went to / and did an archive copy of home onto /mnt/home. cp -a 
home /mnt/home.  This moved the home directory and its children to /home 
of hdb.  Then I changed the jumpers on hdb from slave to master and 
removed the damaged drive, the old hda.  I moved the connector for the 
new hda to the end of the IDE cable and rebooted.  I still have some 
problems but they are unrelated to any of this.  Thanks again to Ian 
Lee.


On Mon, 17 Sep 2001 10:23:52 Phil Reardon wrote:
> Thanks Ian, thats almost it. I will install debian on hdb with a /, /usr 
> and a /homepartitions. Now how can I move the info under /home on hda to 
> /home on hdb?  Then I will do a low level format on hda to rehabilitate 
> that drive for use as a backup device.
> 
> On Mon, 17 Dec 2001 15:29:27 Ian Lee wrote:
> > If you just want /home on the new hardrive.  Create a partition of the 
size
> > you want using a partition tool.
> > I would then test to make sure linux can see it and mount it using the 
mount
> > command
> > somthing similar to
> > 
> > mount /dev/hdxx -t filesyste(ext2 for linux) /mnt
> > 
> > you may want to copy any files accross in home, make sure ownership stays
> > with the user
> > if this changes, set it back with chown.
> > 
> > Do this as root
> > Then modify /etc/fstab, you should see a line similar to (hdb7 is my
> > partition)
> > 
> > /dev/hdb7    /home       ext2    rw    0    2
> > 
> > Change the /dev/hdxx to whatever the new partion is.
> > 
> > This part can be found using the dmesg command
> > hda <- primary master
> > hdb < primary slave
> > hdc <- seconard master
> > hdd <-secondard slave
> > 
> > 1 to 4(?) are for primary partitions and 5 to (however many linux can
> > handle) are logical.
> > 
> > reboot and it should mount your new partition as /home
> > If things do go wrong, linux and root shouldwork happily enough to fix any
> > problems
> > 
> > This can be repeated for however many partitions you want to mount.
> > 
> > I hope this helps Ian.
> > 
> > ----- Original Message -----
> > From: "Phil Reardon" <pcreard@home.com>
> > To: <debian-user@lists.debian.org>
> > Sent: Monday, September 17, 2001 11:49 AM
> > Subject: lost /usr partition
> > 
> > 
> > > Recently I lost the /usr partition on my IDE drive.  I was unable to
> > > fsck or boot or reinstall (RH7.1).  So I installed debian base (potato)
> > > without any /usr and am able to get to /home and can see all my files.
> > > I want to move /home to a new second drive I have installed but am
> > > unsure how to do this.  Should I put potato on the second drive, or just
> > > make a /usr and /home partitions, or something else.  I would appreciate
> > > any suggestions.
> > >
> > > Phil Reardon
> > >
> > >
> > > --
> > > To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> > > with a subject of "unsubscribe". Trouble? Contact
> > listmaster@lists.debian.org
> > 
> > 
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001
> > 
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact 
listmaster@lists.debian.org
> 
> 





Reply to: