Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: jonathanbrickman0000 on November 14, 2010, 03:57:22 PM

Title: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: jonathanbrickman0000 on November 14, 2010, 03:57:22 PM
I searched for and read several posts discussing automount of CDs, DVDs, and USB drives, the consensus appearing to be additions and changes to udev rules, but did not find any examples.  Anyone have specifics?  Or alternatively, a way to give the 'staff' group permission to use mount/umount?  I could do it with chmod +s, but I understand that's generally not preferred.

J.E.B.
Title: Re: Automount CD+DVD+USB ?
Post by: roberts on November 15, 2010, 01:14:13 AM
The default busybox mount and umount allow normal user access to mount and umount supported drives.
Title: Re: Automount CD+DVD+USB ?, esp. UDF?
Post by: jonathanbrickman0000 on November 15, 2010, 09:22:41 PM
Aha!  I get it; I was missing file systems.  OK.  I found that an iso9660 ISO mounted AOK, but UDF didn't.  I installed filesystems-2.6.33.3-tinycore.tcz, but it still didn't mount the UDF, I still get the little readme.txt.  I also put ntfs-3g and fuse in there, but haven't tested them yet.  Any thought of how to do UDF?

J.E.B.
Title: Re: Automount CD+DVD+USB ?
Post by: maro on November 15, 2010, 11:00:26 PM
I'm not sure, but have you tried: sudo mkdir /mnt/whatever ; sudo mount -t udf /dev/whatever /mnt/whatever ?
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: jonathanbrickman0000 on November 16, 2010, 12:12:24 AM
I'm not sure, but have you tried: sudo mkdir /mnt/whatever ; sudo mount -t udf /dev/whatever /mnt/whatever ?
Hadn't tried it with the 'sudo'.  Apparently without 'sudo' it won't do UDF, but with 'sudo' it will.

Is there an easy way to give the user permission to do removable-media mounts of all kinds, including iso9660, FAT/FAT32, UDF, ext3, reiser, jfs, and ntfs-3g ?  I'm not sure it's enough of a security difference to bother not using 'sudo', but I like to ask anyhow :-)

J.E.B.
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: maro on November 16, 2010, 12:29:39 AM
Good to read that you are making progress. My hunch is that '/usr/bin/rebuildfstab' is not (yet) smart enough to deal with the 'udf' filesystem format. That is not much of a surprise as 'udf' in not part of the Core.

Now, to move things along it would be good to know what 'rebuildfstab' has done so far. So what is the result of: grep whatever /etc/fstab (obviosly using the device name instead of 'whatever'  ;D)
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: tinypoodle on November 16, 2010, 05:48:44 AM
I might have overlooked that detail, but wondering, do you intend to mount UDF readonly or read/write?
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: jonathanbrickman0000 on November 16, 2010, 07:35:07 AM
Definitely readonly, ditto iso9660.  They will be real readable disks only :-), no images, no burners.  

The rest of the filesystems do need to be read/write, which means I may not be able to quite do it all (I understand about ntfs-3g), but I do wonder if the 'coreutils' mount knows how to integrate ntfs-3g like Fedora's; that would be just dandy.  Isn't ntfs-3g still a user-level fuse filesystem?

The /etc/fstab line is:

Code: [Select]
/dev/hdc   /mnt/hdc   auto   noauto,users,exec   0 0 # Added by TC
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: tinypoodle on November 16, 2010, 10:28:26 AM
Definitely readonly, ditto iso9660.  They will be real readable disks only :-), no images, no burners. 

iso9660 is a readonly file system, while UDF is a read/write file system, but there is more procedure involved than simple mounting to actually be able to write to UDF formated disks, that is why I asked what is intended.
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: jonathanbrickman0000 on November 16, 2010, 07:11:56 PM
Gotcha.  I had to bone up on UDF, I see what you mean.  No, we definitely don't need to go there :-)
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: vincentyu1130 on August 13, 2016, 10:19:41 PM
Starting from 2.6.26 Linux fully support all versions of UDF, so why am I still getting "unknown filesystem type 'udf'" when mounting udf based iso in TinyCore? Is TinyCore kernel specially built to omit UDF support?
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: Rich on August 13, 2016, 11:05:03 PM
Hi vincentyu1130
Did you install the  filesystems  extension?
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: vincentyu1130 on August 14, 2016, 12:28:21 AM
I couldn't find anything related to udf with app browser. I'll try lsmod to see of udf is present in the kernel.
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: bmarkus on August 14, 2016, 12:47:34 AM
I couldn't find anything related to udf with app browser. I'll try lsmod to see of udf is present in the kernel.

Do as Rich advised. Install the filesystems-KERNEL.tcz extension (replace KERNEL with version matching your system)
Title: Re: Automount CD+DVD+USB ?, esp. UDF and other filesystems?
Post by: vincentyu1130 on August 14, 2016, 01:13:56 AM
Done as said. Works fine now!!
Thanks.