DebianThis forum is for the discussion of Debian Linux.
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.
I'm using Debian 9 Stretch. I like using floppies. Yeah, I still use floppies. I love them.
Anyway, I can mount and format them fine (right now they're formatted as fat) but I can only write to them as root, I can't write to them as a normal user. I would like to be able to write to them as a normal user. Is there any way to fix that?
Also, I'm going to format my floppies as ext2 (can't be a newer ext as I have another computer running Debian 2.1 that only uses ext2), I would like to be able to still write to them as a normal user after I've formatted them to ext2. Is that possible as well?
If you need anymore info, let me know.
Thanks
Last edited by Elderking1986; 08-30-2017 at 06:08 PM.
How would I find the permissions of the floppy drive? I apologize, I'm fairly good with Linux to a extent but I don't have much experience when it comes to drive permissions.
There's still a group called floppy. Is the normal user member of the floppy group?
Yes, I'm a member of the floppy group. Here's the output of "groups eric":
Code:
eric@THEMASTER:~$ groups eric
eric : eric cdrom floppy audio dip video plugdev netdev bluetooth scanner
eric@THEMASTER:~$
That's one of the first things I tried after Googling. I should note that there is no entry for the floppy drive in fstab. Gnome disks is set up to automate the mounting of the floppy drive.
Here's a cropped screenshot of the gnome disks program showing the auto-mount for the floppy drive: http://i.imgur.com/FhuNoHq.jpg
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by Elderking1986
How would I find the permissions of the floppy drive? I apologize, I'm fairly good with Linux to a extent but I don't have much experience when it comes to drive permissions.
While I'm not sure why anyone would still be using floppy disks, would it not be the mount point like any other disk/storage device, mounted to the system? I would check what they are on the mount point, your floppy disk is mounted to.
i have to run modprobe FIRST
then i can make a folder in /mnt and then run Mount it mount the floppy drive
seeing as you ( and i ) can NOT buy any new 3.5 "mac" disks any more ( nor a 5.25 real floppy )
-- tossed out a unopened box of 25 last year seeing as i do not have a 5.25 drive anymore
because of this the current kernels do NOT even look for a 3.5 mac drive any more
so you have to manually probe for it , then mount it
While I'm not sure why anyone would still be using floppy disks, would it not be the mount point like any other disk/storage device, mounted to the system? I would check what they are on the mount point, your floppy disk is mounted to.
Hope this helps.
The floppy disk gets mounted to /media/eric/disks. But for some reason the "disks" directory doesn't get created until the floppy disk is actually mounted by Gnome Disks. After it's unmounted, the "disks" directory gets deleted.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by Elderking1986
The floppy disk gets mounted to /media/eric/disks. But for some reason the "disks" directory doesn't get created until the floppy disk is actually mounted by Gnome Disks. After it's unmounted, the "disks" directory gets deleted.
Maybe manually mount your floppy disk, to a mount point that you CAN set your own permissions on?
i have to run modprobe FIRST
then i can make a folder in /mnt and then run Mount it mount the floppy drive
seeing as you ( and i ) can NOT buy any new 3.5 "mac" disks any more ( nor a 5.25 real floppy )
-- tossed out a unopened box of 25 last year seeing as i do not have a 5.25 drive anymore
because of this the current kernels do NOT even look for a 3.5 mac drive any more
so you have to manually probe for it , then mount it
I did. I ran modprobe which got the floppy working, then I created a floppy.conf file in /etc/modules-load.d to load the module on boot. It works great. I can mount and format the floppy fine, I just can't write to it as a normal user.
I'm trying to fix it so I can do everything via GUI like I do my USB drives without having to mount it as root via terminal.
I edited the mount options in Gnome Disks to mount it to /media/eric/floppy and edited the permissions of the floppy directory so I can write to it but after the floppy got mounted to it, only root can write to it. Odd.
So you decisively ignore my question and will not check the ownership and permissions? I see, good luck.
I didn't ignore you. I'm just a little busy trying to get this working. That's all.
I created a "floppy" directory to mount the floppy to and gave it RW permissions so I can write to it but that didn't work either. After some more Googling, I edited the mount options in Gnome Disks and inserted "users,rw,uid=1000" and now I can mount and write to my DOS formatted floppies. But for some reason it won't mount my ext2 formatted floppy.
Here's the output of dmesg | tail after trying to mount my ext2 floppy:
Code:
eric@THEMASTER:~$ sudo dmesg | tail
[85116.003636] EXT4-fs (fd0): mounting ext2 file system using the ext4 subsystem
[85117.052365] EXT4-fs (fd0): mounted filesystem without journal. Opts: (null)
[85402.645571] EXT4-fs (fd0): Unrecognized mount option "uid=1000" or missing value
eric@THEMASTER:~$
So the uid=1000 option is causing it to not mount my ext2 floppy and I don't know why. I'm just confused.
I don't NEED my floppies formatted as ext2 but I prefer it.
Sorry for making you think I ignored you.
Last edited by Elderking1986; 08-30-2017 at 02:27 PM.
Ok, I fixed it. I have to mount each floppy individually after formatting it as ext2 and running this command:
Code:
sudo chown eric:eric /media/eric/floppy
That's where I was F'ing up I think because I was trying to just change the permissions of the floppy folder itself without having mounted the floppy first.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.