LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-26-2010, 11:31 AM   #1
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Rep: Reputation: 0
partition unusable after filesystem creation


hi all,

I have newly created filesystem on one of my partitions. After that I am not able to paste anything into it. What is the reason?
Even after mounting it also?


Thanks in advance,
Chaitanya.
 
Old 11-26-2010, 11:48 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,516
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
What are the permissions set up by a) the mount and b) the root directory of the file system?

To answer the first, tell us what the device is (example /dev/sdb1) and the output of cat /proc/mounts and what is the output of ls -ld of the mount point directory (example: if mounted at /mnt/hd of ls -ld /mnt/hd).
 
Old 11-27-2010, 12:03 AM   #3
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
the device is /dev/sda10

output of /proc/mounts
-------------------------
dev/sda7 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/chaitanya/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=chaitanya)
/dev/sda8 on /media/Ubuntu type ext3 (rw,nosuid,nodev,uhelper=udisks)
/dev/sda10 on /media/8738e73c-a76b-4b9d-90ba-0af71794928a type ext2 (rw,nosuid,nodev,uhelper=udisks)

--------------------------------------------------------

chaitanya@chaitu:~$ ls -ld /dev/sda10
brw-rw---- 1 root disk 8, 10 2010-11-27 09:22 /dev/sda10

---------------------------------------------
 
Old 11-27-2010, 01:53 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,516
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
IDK what uhelper=udisks does but the ls output makes the root directory of the file system writeable only by root and logons in the disks group -- and directory contents listable by no logons which is not going to be much use.

Which distro are you using?
 
Old 11-27-2010, 01:58 AM   #5
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
mine is ubuntu 10.04 ...?

> output makes the root directory of the file system writeable only by root and logons in the disks group -- and directory
> contents listable by no logons which is not going to be much use.

I didnot understand what u meant to say. Plz elaborate it a bit more.

Chaitanya.
 
Old 11-27-2010, 02:36 AM   #6
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 847

Rep: Reputation: Disabled
Looks like there is an issue with permissions on the partition (since you say that root can write to it).
If you want the partition to be accessible to all (read and write) the best option is to add it in /etc/fstab. Read the man page for fstab.
Hope this helps.
 
Old 11-27-2010, 02:41 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,516
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Quote:
Originally Posted by chaitanyajun12 View Post
I didnot understand what u meant to say.
Which part did you understand and which did you not understand?
 
Old 11-27-2010, 03:10 AM   #8
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
i mean which output ..?
actually the whole thing is not clear for me..!
 
Old 11-27-2010, 03:14 AM   #9
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
i mean what is the output..?
actually the whole thing is not clear for me.?

and after we create a filesystem in a partition it must be added in the fstab for reading and writing into it.?
 
Old 11-27-2010, 05:00 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,516
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Quote:
Originally Posted by chaitanyajun12 View Post
the device is /dev/sda10

output of /proc/mounts
-------------------------
[snip]
/dev/sda10 on /media/8738e73c-a76b-4b9d-90ba-0af71794928a type ext2 (rw,nosuid,nodev,uhelper=udisks)[snip]
chaitanya@chaitu:~$ ls -ld /dev/sda10
brw-rw---- 1 root disk 8, 10 2010-11-27 09:22 /dev/sda10
The output of the ls command shows that logon root and (logons in the) disk group have read and write permission but not execute; everyone else has no permissions at all. More information about ls command output here. A full explanation including the effect of execute permission (or not) on a directory here. In simple terms a directory needs to be rwx for the user for everyday use.
 
Old 11-27-2010, 08:25 AM   #11
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
sir,

but i have another partition /dev/sda3 (primary partition)

chaitanya@chaitu:~$ ls -ld /dev/sda3
brw-rw---- 1 root disk 8, 3 2010-11-27 19:39 /dev/sda3

even its permissions are the same but i am able to read and write into it.

Chaitanya.
 
Old 11-28-2010, 06:18 AM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,516
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Quote:
Originally Posted by chaitanyajun12 View Post
sir,

but i have another partition /dev/sda3 (primary partition)

chaitanya@chaitu:~$ ls -ld /dev/sda3
brw-rw---- 1 root disk 8, 3 2010-11-27 19:39 /dev/sda3

even its permissions are the same but i am able to read and write into it.

Chaitanya.
Sorry for my oversight -- you gave ls -ld output for the file system's device file, not for its mount point directory. If it is still mounted at the same place (as shown by the /proc/mounts file) then please post the output of /bin/ls -ld /media/8738e73c-a76b-4b9d-90ba-0af71794928a
 
Old 11-29-2010, 12:14 AM   #13
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
/bin/ls -ld /media/8738e73c-a76b-4b9d-90ba-0af71794928a/
--------------------------------------------------------------

drwxr-xr-x 3 root root 4096 2010-11-26 23:14 /media/8738e73c-a76b-4b9d-90ba-0af71794928a/
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with creation of filesystem g-string 3 Linux - Hardware 2 07-01-2010 03:55 PM
Increasing the size of an extended partition to allow the creation of a new partition chakkerz Linux - Server 4 05-18-2010 10:18 PM
[SOLVED] ubuntu 9.10 partition issue - unusable space eeeBu Linux - Newbie 8 11-21-2009 01:22 PM
Partition & filesystem creation question Chantale Linux - Newbie 4 05-18-2006 10:15 AM
About ext2 filesystem creation 7ux_spirit Linux - Newbie 1 04-30-2004 02:23 PM


All times are GMT -5. The time now is 05:40 AM.

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