You are not logged in.
Pages: 1
hi,i have a 86.5 GB ext3 partition that i use for storage.its entry is there in /etc/fstab.i hve two non-root accounts on my system,one of which mounts that partition,while the other doesn't.how do i make the other mount it as well?it succesfully mounts other partitions,viz sda7(ext3),sda6(root partition),sda8(swap) and sda1(ntfs).
Offline
It's probably a difference in the groups they're a part of. Try to cat /etc/group and compare the two users.
-mS
Offline
to expound on the above just a bit:
mount takes a bunch of options that can be specified in /etc/fstab.
'user' let's a user mount it, 'users' lets all users mount it, and 'group' lets members of the owning group mount it.
[23:00:16] dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32] dr_kludge | can you guess what i'd call it?
[23:01:16] dr_kludge | nosilla.
[23:01:32] dr_kludge | i really should be going to bed. i'm giggling madly about that.
Offline
i tried mounting the mesda5 as follows:
[sonu@arch ~]$ sudo mount /media/sda5
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
mount: /dev/sda5 already mounted or /media/sda5 busy
mount: according to mtab, /dev/sda5 is already mounted on /media/sda5
[sonu@arch ~]$ fdisk -l
Cannot open /dev/sda
[sonu@arch ~]$
but when i open nautilus i don't see that partition.
Offline
What the output of
# mount
?
-mS
Offline
the following is the output of cat /etc/group:
[sonujha@arch ~]$ cat /etc/group
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:
disk::6:root
lp::7:daemon,sonujha,quadshot
mem::8:
kmem::9:
wheel::10:root,sonujha,quadshot,sonu
ftp::11:
mail::12:
uucp:x:14:
log::19:root
smmsp::25:
games::50:
network:x:90:
video:x:91:sonujha,root,quadshot,sonu
audio::92:sonujha,root,quadshot,sonu
optical::93:sonujha,hal,quadshot,sonu
floppy:x:94:hal
storage:x:95:sonujha,hal,quadshot,sonu
power:x:98:sonujha,quadshot,sonu
nobody::99:
users::100:sonujha,quadshot,sonu
locate:x:21:
http:x:33:
scanner:x:96:
dbus:x:81:
sonujha:x:1000:
hal:x:82:
policykit:x:1001:
avahi:x:84:
camera:x:97:
gdm:x:1002:
quadshot:x:1003:
sonu:x:1004:
[sonujha@arch ~]$
the group sonujha has no trouble loacating that partition,but i can't see or use that partition in the group sonu.the following are the contents off my fstab file:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
#/dev/cdrom /media/cdrom auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
UUID=26c0405d-1389-4c95-af30-348bf932e930 swap swap defaults 0 0
UUID=8fb2110a-e5f9-4185-bdbc-cfcf12bff661 / ext3
defaults,noatime,noadiratime 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 users,noauto,exec,utf8 0 0
/dev/sda1 /media/sda1 ntfs nls=iso8859-1,auto,users,umask=000 0 0
/dev/sda5 /media/sda5 ext3 errors=remount-ro,auto,users 0 0
/dev/sda6 /media/sda6 ext3 errors=remount-ro,auto,users 0 1
/dev/sda7 /media/sda7 ext3 errors=remount-ro,auto,users 0 0
/dev/sda8 /media/sda8 swap sw,auto,users 0 0
what do i do now?
mild edit by Mr Green
Offline
What the output of
# mount
?
-mS
We need to see where its mounted!
Mr Green I like Landuke!
Offline
df -h
is another command which will show you where all your disks are mounted
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
here it is:
[sonu@arch ~]$ mount
/dev/sda6 on / type ext3 (rw)
none on /dev type ramfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda1 on /media/sda1 type ntfs (rw,noexec,nosuid,nodev,nls=iso8859-1,umask=000)
/dev/sda5 on /media/sda5 type ext3 (rw,noexec,nosuid,nodev,errors=remount-ro)
/dev/sda7 on /media/sda7 type ext3 (rw,noexec,nosuid,nodev,errors=remount-ro)
[sonu@arch ~]$
as you can see all the partitions are ro,and i can't write anything to them.
Offline
here it is:
[sonu@arch ~]$ mount
/dev/sda6 on / type ext3 (rw)
none on /dev type ramfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda1 on /media/sda1 type ntfs (rw,noexec,nosuid,nodev,nls=iso8859-1,umask=000)
/dev/sda5 on /media/sda5 type ext3 (rw,noexec,nosuid,nodev,errors=remount-ro)
/dev/sda7 on /media/sda7 type ext3 (rw,noexec,nosuid,nodev,errors=remount-ro)
[sonu@arch ~]$as you can see all the partitions are ro,and i can't write anything to them.
That's because you are remounting them as read-only on errors (atleast the sda5 and sda7) Do you see any errors while mounting them the first time? Unmount the drives and then mount them again in terminal to see if there were any errors
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
i unmounted the two drives that were visible in nautilus(sda1 and sda7).then,did the following:
onu@arch ~]$ sudo mount /media/sda1
Password:
[sonu@arch ~]$ sudo mount /media/sda7
[sonu@arch ~]$ sudo mount /media/sda8
mount: unknown filesystem type 'swap'
[sonu@arch ~]$ sudo mount /media/sda5
mount: /dev/sda5 already mounted or /media/sda5 busy
mount: according to mtab, /dev/sda5 is already mounted on /media/sda5
[sonu@arch ~]$
as you can see i could successfully mount those two partitions,but its not the same about sda5.
Offline
Your entry for sda8 is wrong. It should be
/dev/sda8 swap swap defaults 0 0
For sda5 try
# sudo umount /media/sda5
# sudo mount /media/sda5
and see what it spits out.
-mS
Last edited by aglarond (2009-02-06 17:48:00)
Offline
Hmmm - I'm wondering if some process is hugging it (at r/o) which is why you cant umount/mount.
Try to work from a console only (ie no X), do a 'df' command and if it's mounted, first umount it and then try to mount again (as r/w)
Offline
i did the df command from the console,and there i saw that it was mounted.
i also did the following after starting gnome:
[sonu@arch ~]$ fd
bash: fd: command not found
[sonu@arch ~]$ fdisk -l
Cannot open /dev/sda
[sonu@arch ~]$ sudo mount /media/sda5
Password:
mount: /dev/sda5 already mounted or /media/sda5 busy
mount: according to mtab, /dev/sda5 is already mounted on /media/sda5
[sonu@arch ~]$ sudo umount /media/sda5
[sonu@arch ~]$ sudo mount /media/sda5
[sonu@arch ~]$ cd /media/sda5/LAN downloads
bash: cd: /media/sda5/LAN: Permission denied
[sonu@arch ~]$ cd /media/sda5/music
bash: cd: /media/sda5/music: Permission denied
[sonu@arch ~]$ cd /media/sda1/windows
[sonu@arch windows]$
so,i could unmount sda5,and then mount it back.but i was unable to open a directory 'music" in sda5,unlike the directory 'windows' in sda1(the one containing windows).
Offline
it's all about permissions.
you can't run fdisk as a normal user unless that user belongs to the group that owns the block device (i.e.: 'disk' on my system.).
you mounted /dev/sda5 on /media/sda5 as root (using 'sudo'), so that filesystem is owned by root:root. that's why user sonu can't access it. see my post above for advice on using options in fstab to allow users to mount the device so they can access it.
[23:00:16] dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32] dr_kludge | can you guess what i'd call it?
[23:01:16] dr_kludge | nosilla.
[23:01:32] dr_kludge | i really should be going to bed. i'm giggling madly about that.
Offline
Try running all of the following:
# ls -ld /media/sda1
# ls -ld /media/sda5
# ls -ld /media/sda5/music
and compare the permissions. It may just be that they're set wrong on the drive.
-mS
Offline
Pages: 1