Linux - GeneralThis 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
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi everyone. I have an issue with a new external hard drive I bought the other day. I split it into two partitions and formatted them both to use the ext3 file system. However, I only have read permissions to the drives. When I run mount, I get this:
Quote:
/dev/hdb1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.20-16-generic/volatile type tmpfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda1 on /media/Music type ext3 (rw,nosuid,nodev)
/dev/sda2 on /media/Samba-Share type ext3 (rw,nosuid,nodev)
/dev/sda1 and /dev/sda2 are the two partitions of the external hard drive.
I also tried chmodding both partitions to include write access to no avail. Could anyone help me with my dilemma?
Use the "chown" and "chmod" commands as root to change the ownership and permissions of an ext3 filesystem.
I would recommend using the "user" option in your /etc/fstab entry. Also use either a LABEL=<label> or UUID=<uuid number> entry instead of a device. An external USB or Firewire drive may use a different device the next time you reboot.
Here is an example of an XFS filesystem on an external drive:
The user lets me as a normal user mount the drive without using sudo. The noauto will prevent the system from stalling during a reboot if the drive isn't available.
As an alternative you could rely totally on the udev/hal system to automount the drive when you insert it.
Thanks for your help! What ended up fixing my problem was putting the following lines into my fstab:
Quote:
# Entry for Music
LABEL=Music /media/Music ext3 defaults,user 0 0
# Entry fo Samba-Share
LABEL=Samba-Share /media/Samba-Share ext3 defaults,user 0 0
I took out noauto because I want them to mount on boot. Afterwards, I chmodded both drives (/media/Music and /media/Samba-Share) to give everyone write access.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.