The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 moving hard drives between to machines
Author: bb 
Date:   02-12-02 20:13

ok howdy all been a bit since i been around these parts

here's the situation my friend had a hd on his windows machine that gave him nothing but trouble

he purchased a new one and said i could have the old one

took it home and mounted it on my home box with no problems in two hours i had the thing half full of shn files (if you dont know about shns read etree.org)

so i mounted the drive as /shn now after doin so i thought hey wouldnt it be cool if i could take this drive and bring it up to my ftp server here at work

ok great but on that machine there is already a partition named /shn ???

so as i see it i have two options:

change the mountpoint to /shn3 -> is this easy? not sure if i can do this thru sysinstall barely investigated so far

or just mount hook it up to the other machine (with an existing /shn) and see what happens? -> what would happen? im brave but not willing to lose 12-15GB of shn files (some of which are not backed up)

thoughts comments flamming?

hope everyone stateside enjoyed the turkey!

bb


ps if you're into dling shns head here -> sloth.sharinthegroove.org/shn

Reply To This Message
 
 Re: moving hard drives between to machines
Author: .daniel.schrock 
Date:   03-12-02 05:16

you can change the mount point by editing /etc/fstab.

the mount point isn't encoded anywhere on the disk. name it what you want. /shn3, /shn10023, /shiznit, /whatever

Reply To This Message
 
 Re: moving hard drives between to machines
Author: bb 
Date:   03-12-02 15:09

well that went up in smoke real quick!

the drive pooped on me big time and now i cant boot!

everytime i try to boot it trys to run an fsck on that drive but it cant complete it

then i get that press return for /bin/sh message if i try a manual fsck from there it hangs also?

is there a way for me to remove that line from /etc/fstab and then issue a command to continue booting?

any help is appreciated

thanx

bb

Reply To This Message
 
 Re: moving hard drives between to machines
Author: .daniel.schrock 
Date:   03-12-02 15:50

yea, you can use single user mode. fsck is going to take a while if that disk is large but i'm not sure why booting was affected if this was only a storage disk.

try single user mode again, fscking only root and other 'vital' partitions, then comment out line in the /etc/fstab that you don't want.

then, if the new disk is in the system, try mounting it somewhere:
mount /dev/ad1s1a /mnt
# don't use /dev/ad1s1a, find out what you have and use that. you can check the disklabel for that info.

Reply To This Message
 
 Re: moving hard drives between to machines
Author: bb 
Date:   03-12-02 17:26

hi dan thanx for the help

fsck will not finish

when i get into single user mode i dont have access to vi? how else can i remove the bad drive from /etc/fstab as i believe that is the major issue for me here

the files on the poop drive have already been written off by me i have most of them backed up elsewhere

it seems i only have access to the / partition not /usr or /var

when i do a df i only see the / partition

still searching for clues

bb

Reply To This Message
 
 Re: moving hard drives between to machines
Author: bb 
Date:   03-12-02 18:17

problem solved

when i had the shell all i had to do from there is a mount -a which mounted the other available drives

then i had access to vi and could edit /etc/fstab accordingly thanx for the help everyone!

bb

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org