Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-08 Thread Lowell Gilbert
Henry Olyer henry.ol...@gmail.com writes:

 I had an old FBSD 7.2 CD. good enough for this I thought.

 I booted from that but now I need to mount the file systems on my hard
 drive.  How do I do that?

 I agree,, once I get the /etc file system mounted I can edit the file.

 Okay, next..

 How do I do an fsck on the /usr file system when coming up?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RCCONF-READONLY
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-07 Thread Chris Rees
On 7 May 2011 04:31, Yuri Pankov yuri.pan...@gmail.com wrote:

 On Fri, May 06, 2011 at 10:06:31PM -0400, Henry Olyer wrote:
  Woe is me.
 
  First, I simply messed up, happens to us all from time to time.  I lost
  power on an laptop running 8.2.
 
  Restarted it but for some reason the fsck didn't run and I lost some
/usr
  files.
 
  I tried to do an fsck manually but because it's mounted I got nowhere.
 So I
  put a comment (#) in front of the /usr line for the /etc/fstab file.
 
  Now, I can't boot.
 
  I need what's on my disk -- of course!

 Boot to single user mode (4 in the boot menu), remount / read-write -
 mount -u -o rw /, edit /etc/fstab (you'll probably need to mount /usr
 manually if what's in /rescue doesn't work for you), reboot.

 You can run fsck from single user mode, as well.


 HTH,
 Yuri

Easiest way in single user if vi complains about termcap and you don't
understand ed...

As Yuri suggested:

# fsck /
# mount -ie /

Then you can just use sed in place;

# sed -i.bak -e 's,#\(.*/usr\),\1,' /etc/fstab

# fsck /usr
# reboot

Hope that helps!

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-06 Thread Henry Olyer
Woe is me.

First, I simply messed up, happens to us all from time to time.  I lost
power on an laptop running 8.2.

Restarted it but for some reason the fsck didn't run and I lost some /usr
files.

I tried to do an fsck manually but because it's mounted I got nowhere.  So I
put a comment (#) in front of the /usr line for the /etc/fstab file.

Now, I can't boot.

I need what's on my disk -- of course!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-06 Thread Ryan Coleman
Boot to a boot disk.. anything... CD, DVD, USB

Load up vi - you can probably do this from a live linux distro.

Unedit the line.

Save.

Quit.

Reboot.

You're golden.


On May 6, 2011, at 9:06 PM, Henry Olyer wrote:

 Woe is me.
 
 First, I simply messed up, happens to us all from time to time.  I lost
 power on an laptop running 8.2.
 
 Restarted it but for some reason the fsck didn't run and I lost some /usr
 files.
 
 I tried to do an fsck manually but because it's mounted I got nowhere.  So I
 put a comment (#) in front of the /usr line for the /etc/fstab file.
 
 Now, I can't boot.
 
 I need what's on my disk -- of course!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-06 Thread Henry Olyer
I had an old FBSD 7.2 CD. good enough for this I thought.

I booted from that but now I need to mount the file systems on my hard
drive.  How do I do that?

I agree,, once I get the /etc file system mounted I can edit the file.

Okay, next..

How do I do an fsck on the /usr file system when coming up?




On Fri, May 6, 2011 at 10:32 PM, Ryan Coleman edi...@d3photography.comwrote:

 Boot to a boot disk.. anything... CD, DVD, USB

 Load up vi - you can probably do this from a live linux distro.

 Unedit the line.

 Save.

 Quit.

 Reboot.

 You're golden.


 On May 6, 2011, at 9:06 PM, Henry Olyer wrote:

  Woe is me.
 
  First, I simply messed up, happens to us all from time to time.  I lost
  power on an laptop running 8.2.
 
  Restarted it but for some reason the fsck didn't run and I lost some /usr
  files.
 
  I tried to do an fsck manually but because it's mounted I got nowhere.
  So I
  put a comment (#) in front of the /usr line for the /etc/fstab file.
 
  Now, I can't boot.
 
  I need what's on my disk -- of course!
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-06 Thread Yuri Pankov
On Fri, May 06, 2011 at 10:06:31PM -0400, Henry Olyer wrote:
 Woe is me.
 
 First, I simply messed up, happens to us all from time to time.  I lost
 power on an laptop running 8.2.
 
 Restarted it but for some reason the fsck didn't run and I lost some /usr
 files.
 
 I tried to do an fsck manually but because it's mounted I got nowhere.  So I
 put a comment (#) in front of the /usr line for the /etc/fstab file.
 
 Now, I can't boot.
 
 I need what's on my disk -- of course!

Boot to single user mode (4 in the boot menu), remount / read-write -
mount -u -o rw /, edit /etc/fstab (you'll probably need to mount /usr
manually if what's in /rescue doesn't work for you), reboot.

You can run fsck from single user mode, as well.


HTH,
Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org