LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   partition unusable after filesystem creation (https://www.linuxquestions.org/questions/linux-general-1/partition-unusable-after-filesystem-creation-846724/)

chaitanyajun12 11-26-2010 11:31 AM

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.

catkin 11-26-2010 11:48 AM

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).

chaitanyajun12 11-27-2010 12:03 AM

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

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

catkin 11-27-2010 01:53 AM

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?

chaitanyajun12 11-27-2010 01:58 AM

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.

honeybadger 11-27-2010 02:36 AM

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.

catkin 11-27-2010 02:41 AM

Quote:

Originally Posted by chaitanyajun12 (Post 4172449)
I didnot understand what u meant to say.

Which part did you understand and which did you not understand?

chaitanyajun12 11-27-2010 03:10 AM

i mean which output ..?
actually the whole thing is not clear for me..!

chaitanyajun12 11-27-2010 03:14 AM

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.?

catkin 11-27-2010 05:00 AM

Quote:

Originally Posted by chaitanyajun12 (Post 4172383)
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.

chaitanyajun12 11-27-2010 08:25 AM

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.

catkin 11-28-2010 06:18 AM

Quote:

Originally Posted by chaitanyajun12 (Post 4172677)
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

chaitanyajun12 11-29-2010 12:14 AM

/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/


All times are GMT -5. The time now is 08:37 PM.