Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
hi,
i would like to create a partition to store my files because mi root partition is becoming too small... so i created a partition with the utility cfdisk (ext2), edited the fstab file, but:
1) i can mount it only as root
2)it mounts the partition in read only.
how can i manage to mount in read/write the partition using a normal account?
did you allow for the partition to be mounted by 'users' rather than owner and to be mounted 'rw' (read, write) rather than 'ro' (read only) in the fstab file also?
ok it's better if i told you step by step what i did:
1)root console --> cfdisk --> "type" of partition Linux (i suppose it's ext2..?) --> write.
2)edited fstab... here you got what i wrote
/dev/hda7 /mnt/dati ext2 noauto,user 0 0
now when i mount (mount /mnt/dati) i get
mount: wrong fs type, bad option, bad superblock on /dev/hda7,
or too many mounted file system
.....what can i do?!?!
p.s. i get this error both with normal user and root
changing 'user' to 'users' will allow you to acces the partition when not logged in as root.
add 'rw' to the end of those options to make it look like this:
noauto,users,rw
that will allow you to access the partition as read+write
its possible you could leave the fs type as auto rather than ext2 and let it auto-detect the fs type... but i could be wrong about that. seems like i remember reading something about that possibly messing up file systems it was a monday or the date was divisible by two, or some other esoteric reason.
best to make the other changes i posted above, reboot, and try it again.
might be helpful if you posted your entire /etc/fstab file too.
edit: and just to be sure, you have created the directory you're trying to mount the partition on, right? /mnt/dati (or whatever) is actually there, within the /mnt directory? the mount command doesn't create that for you...
It doesn't appear like you formatted the partition.
Once you have created the partition you need to format it with a file system. To format an ext3 file system:
mke2fs -j /dev/hda7
Then your /etc/fstab file should be:
/dev/hda7 /mnt/dati ext3 noauto, users 0 0
The difference between the options user and users is:
user - Allows an ordinary user to mount the file system but only that user that mounted can unmount.
users - Allows any user to mount and unmount the file system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.