The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
fsck bug in Solaris 8 Maillot Jaune SUN Solaris 1 11-28-2006 12:34 PM
fsck run efang SUN Solaris 2 07-20-2006 12:49 AM
fsck - what should be done? duke0001 UNIX for Dummies Questions & Answers 3 11-22-2005 09:10 PM
fsck run_time_error SUN Solaris 5 09-14-2005 07:16 AM
fsck with Linux Breen UNIX for Advanced & Expert Users 2 08-27-2002 10:08 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-26-2002
rpatrick rpatrick is offline
Registered User
  
 

Join Date: Mar 2002
Location: Quincy
Posts: 2
fsck -y

Once in a while, I would think it advisable to run fsck -y to check the disk.
Should I sign in as su or sudo?
What is the difference and which is preferred?

Thank you in Advance!
  #2 (permalink)  
Old 03-27-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
You should probably take it down to single user, so you can unmount all filesystems. In that case, either log in as root or use "su -".

In some cases (like Linux, not too sure about others), it would actually even be easier (better?) to reboot, boot up off of a floppy (so no disk partitions are mounted), and run it from there.
  #3 (permalink)  
Old 03-27-2002
killerserv's Avatar
killerserv killerserv is offline Forum Advisor  
Unix Predator
  
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
sudo is configurable to the point that can drive a micro-manager to ecstacy. It can also be a very simple config. It does log commands executed which is nice, especially on systems where more than one person have/need root access.

sudo is most useful on systems that are already setup and are just being adminned. There's a time and place for su and sudo each. sudo shouldn't be considered a global replacemnt for su as it isn't always needed.

Check out your Unix man page for Sudo or Su and decide which gets better for your use.
  #4 (permalink)  
Old 03-27-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Quote:
especially on systems where more than one person have/need root access.
And even better, you don't necessarily have to give the user root access. They can simply execute a command / script as another specified user as well, so they have no root access at all. You can also set it up so that everyone in one group can use sudo, rather than having to set it up for each individual person.

See if you have it installed and check the man page. If not, see here:
http://www.courtesan.com/sudo/
  #5 (permalink)  
Old 03-27-2002
rpatrick rpatrick is offline
Registered User
  
 

Join Date: Mar 2002
Location: Quincy
Posts: 2
fsck -y it works!

Well, it works well!
For those who use a Macintosh(and I am one) this is "part of" Disk First Aid being built in.
The steps follow:
sudo ShutDown Now Hit return
Enter password
You are "sudo user"
You are in single user mode:
type fsck -y
The disk is checked. If you receive a "message" that the Macintosh appears to be OK type reboot.
This saves a CD Rom Start which is slow as molasses.
If errors are found they will be repaired -y for yes repair.
Wonderful to learn this.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0