Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-18-2009, 10:09 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Help Me !! " How a normal user can make a new partiton in Linux Machine"

Dear all,

Please give me the solution for the following:

1. Normal user can able to make a new linux partition and formated by ext3 file system.

2. Usually /etc/shadow file default permission is read only for user. Then how the new password will be updated in /etc/shadow file when normal user chage his old password to new password.

3. I am facing the following issue when i have taken a back of RAID device.

Error: Unable to copy due to I/O device error.

Suituation: Eralier i have configured a SAMBA server for File transger between Linux and Windows. I used Disk Mirroring (RAID 1)
for storage of Datas. Later RAID device was failed. Then i have connected the RAID device in another system and i start to copy the files from New Linux machine to windows machine. During this time i have got the above mentioned error (I/O device error).

So please help me the above mentioned issues.

Thanking You to all.
Old 03-18-2009, 11:14 AM   #2
Senior Member
Registered: Jun 2008
Posts: 1,796

Rep: Reputation: 213Reputation: 213Reputation: 213
The first part, if I understand the problem.

A normal user must have root privileges, usually as su or sudo with the root password, to have access to a systems partitions and its partitioning tools. As partitions can not be changed while they are mounted, and nothing runs without being mounted, a partitioning CD is often used for work on the partitions of an existing installation.

Try opening a terminal and typing "su" or "sudo", depending on your distro. You should be asked for your password. Enter it and then type "fdisk -l" and you will get to see your partition table. You might type "man fdisk" first to see what fdisk is and can do.

Two live-cd partitioners that are used are Parted Magic and GPartedLiveCD, but any linux live-cd should also do the job. Rescue and forensic live-cds also have partitioning tools.

Here is the standard live-cd list.

You might also googe for more information on partitioning and permissions in linux.

For the next time, you might read this and try to edit your post for clarity.

Written English for a non-native speaker can be difficult, but you might get a greater response if the meaning of your post was easier to determine. I guessed what you needed for information, but I might be telling you what you already know.

Good Luck
Old 03-18-2009, 11:15 AM   #3
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
1. What do you mean by 'normal user'. In general, partition editing tools are only available to root, for what is in general very good reason. If you need non-root people to be able to use them, it's worth looking at sudo.
If by 'normal user' you mean 'someone unfamiliar with Linux', gparted is a graphical partion editor. You shouldn't go anywhere near it without a solid understanding of partitioning, though.

2. The user runs the `passwd` command. This is setuid to root. When you setuid a program, you make it always run as a particular user. So the user cannot edit /etc/shadow, but passwd can. This would be a reasonable solution to 1., as well, though generally less secure than sudo.

3. Which system produced the error? The Windows one or the Linux one? What, exactly, were you doing?
Old 03-18-2009, 06:10 PM   #4
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,499
Blog Entries: 4

Rep: Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951
For fairly obvious reasons, "normal users" are forbidden to alter system-wide resources. This includes the ability to access disk-volumes directly, e.g. to repartition them.

Can you please better-describe what you are trying to achieve?
Old 03-24-2009, 11:52 AM   #5
LQ Newbie
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
the following is partition command,default format is EXT3

fdisk /dev/sdf(after mounting your disk,run dmesg | grep sd, replace "f" depending on the result for dmesg)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
Partition number (1-4): 1
First cylinder (1-621, default 1):<RETURN> Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-621, default 621): <RETURN> p
Device Boot Start End Blocks Id System
/dev/sdf1 1 621 395104 83 Linux

If you type something wrong, hit q to exit without saving changes.

Last edited by ckua; 03-24-2009 at 11:54 AM.
Old 03-24-2009, 04:30 PM   #6
Registered: Mar 2009
Distribution: Fedora, Slackware
Posts: 104

Rep: Reputation: 21
If your replacement RAID device signals an 'I/O device error' then you are out of luck - it seems that both devices have some hardware problems. You should run fschk anyway, just to make sure that it's not a problem with the file system, something that can be cured.

Linux Archive

Last edited by JaksoDebr; 04-02-2009 at 05:05 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access "man pages" as normal user - temp filename creation error. uncle-c Linux - Newbie 2 03-11-2008 01:10 PM
"su root" fails when I connect with normal user thru SSH AlinFaur Linux - Security 5 02-22-2006 11:26 PM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 02:05 PM
normal user want to perform "init 6" by using " sudo acbenny Linux - General 3 08-08-2004 07:41 AM
Accessing windows drive from my "normal" user. At0mic_PC Slackware 6 08-01-2003 11:33 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration