LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   useradd command problem (https://www.linuxquestions.org/questions/linux-server-73/useradd-command-problem-623423/)

rohit_67066 02-24-2008 12:07 AM

useradd command problem
 
hai


iam using rhel 5 and i use lvm partion installation.

my problem is

when i type useradd raghu or useradd -d /home/raghu -m raghu command

it will take so much of time[like the cursor will blink for long time and then it will create ] to create new user.

can u help me to create faste useraccounts


i got a message in /var/spool/mail/root

--------------------- Kernel Begin ------------------------


WARNING: Kernel Errors Present
(reserved error code) -- (asc=0x ...: 3 Time(s)
Error: Medium error -- ...: 21 Time(s)
Unrecovered read error -- (asc=0x11, as ...: 18 Time(s)
Buffer I/O error on device hda, l ...: 34 Time(s)
Contact your BIOS vendor to see if the E752x error registers can be ...: 2 Time(s)
e752x_edac: probe of 0000:00:00.0 failed with error -12 ...: 2 Time(s)
end_request: I/O error, dev hda, sector ...: 21 Time(s)
hda: media error (bad sector): er ...: 21 Time(s)
hda: media error (bad sector): st ...: 21 Time(s)

---------------------- Kernel End -------------------------

jschiwal 02-24-2008 12:45 AM

You probably want to attend to the hard drive issue. It is probably time for a full backup. Either there is a problem with that driver or the drive may be going bad. Was that message just during boot up or do you see more of them latter on?

mtimbro 02-25-2008 10:21 AM

fsck /dev/hda
 
Hi there,

Id' strongly suggest that you'd backup your system (if it's not already done) and then you should file system check your hda drive.

For this, you have to boot your machine in single user mode or go to it from your normal operating level.

Type init 1 after warning users :-).

Halt the grub menu by hitting the space bar when the countdown comes.

You can then choose 'e' when the menu displays; to edit the boot paramters, select the line that starts with kernel, for the kernel you want to boot. Go to the end of the line and type single as a seperate word (press the spacebar) and then type single. Press Enter to exit edit mode. Back at the GRUB screen, type b to boot into single user mode.

Once there, un-mount the partition that's causing you grief, then:

>fsck -y /dev/hda 'or you can specify the partition if you know it.

It might take a while depending on your drive space.

Hope this helps.


All times are GMT -5. The time now is 12:02 AM.