Programming :: Setting ACL As Mount Option Using Awk And Sed Script

Apr 24, 2010

I am creating a script for making a public folder in linux. The idea behind is to allow any user to write files in this folder and further each of those files can be used by any user. For this purpose I am using acl. This first requires to set acl as mount option in /etc/fstab which I need to do with help of (awk and sed) command available in linux.

The line below is the fstab entry which I need to make change in.
UUID=e9a3db4b-d8c0-40b4-a661-131e13afea1e
/ext3 relatime,errors=remount-ro 0 1

I want my script to identify this line (most probably with / which denotes the mountpoint) and then add (acl,) without brackets in options. Currently I use the command as below
sed 's/realtime/acl,relatime/' /etc/fstab
but the above command is in reference with (realtime) what I am planning is that my script should be able to find the line which has / and then go to options and add acl there.

View 3 Replies


ADVERTISEMENT

General :: Invalid Mount Option When Attempting To Mount The Volume

Jun 30, 2010

I have two internal hard drives.I just installed Debian Lenny in the smaller 80GB. But when I try to access the other hard drive it shows:

"Invalid mount option when attempting to mount the volume"

info:

-The 80GB is on dual boot with Windows 7 and Debian Lenny.

-The 500GB secondary hard drive is NTFS filesystem.

View 1 Replies View Related

General :: "Invalid Mount Option When Attempting To Mount The Volume" On Plugging USB

Jan 18, 2010

I plugged in USB(single fat32 partiton of 2GB) and got message window Cannot mount volume. Invalid mount option when attempting to mount the volume.

[Code]...

Also did check in gparted , dosfsck and fsck.vfat but no errors reported.

View 5 Replies View Related

General :: Setting Up Menu.lst Option For Usb Drive?

Feb 25, 2010

since my computer don't support booting from USB, can we set it up in the menu.lst option so it will read?

View 1 Replies View Related

Ubuntu :: HPLIP Option Not Present When Setting Up Printer?

Apr 20, 2010

I just built a system and put a fresh install of ubuntu 9.10 on it. I have two other systems with 9.10 as well. On both of them the printer (an HP Officejet Pro 7680 set up directly on the network) is shown as an HPLIP printer with a URI that starts with hp:/net/ . When trying to set up this printer on the new machine the option for HPLIP is not present and the URI starts with dnssd://. I can only set up as and LPD Network Printer or an Appsocket/JetDirect network printer. Yes I have the hplip stuff installed on the new machine. My main concern is actually using the scanner function with Xsane. The other two machines scan just fine, the new one can't find any devices. I think this must be connected with the lack of HPLIP functions. This is with the AMD64 bit version of 9.10

View 1 Replies View Related

Ubuntu :: Setting Up User-callback Option In Back In Time Application?

Jan 22, 2011

I am trying to understand these two examples for setting up user-callback option in back in time application. I am trying to modify this to suit my needs, Back in time homepage has some basic info, but very terse, same with the man page. The following two examples are the only references I could find. first one from here - [URL] I don't want email to be sent, just an update to the log file will be fine.

[Code]....

View 1 Replies View Related

Ubuntu :: Set Default Mount Option Of USB Hdd

Mar 25, 2010

i am using ubuntu 9.10 x64 version

when i plug a USB hdd, it is auto mounted

from the log:

Mar 21 06:34:23 universe ntfs-3g[5066]: Version 2009.4.4 external FUSE 27
Mar 21 06:34:23 universe ntfs-3g[5066]: Mounted /dev/sdd (Read-Write, label "xxx", NTFS 3.1)
Mar 21 06:34:23 universe ntfs-3g[5066]: Cmdline options: rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,d mask=0077

[Code]....

I want to set the default mount option to "noatime, nodiratime", but where can i set it?

I know i can do this in fstab, but i do not want to add lot of entries there

View 5 Replies View Related

Debian :: Mount Option Is Invalid

Jul 11, 2010

i just installed Debian 5.0.5 ! and i used guided partition (option one) while installing BUT immediately i cannot access my Windows drives C & D. if i click it , it says "Invalid mount option when attempting to mount the volume C " how to fix it?

View 9 Replies View Related

Slackware :: Can't Mount Nfs Directory Without Option

May 22, 2010

I can't mount nfs directory without option "-o nolock".NFS server is slackware 11 and client is Slackware 13 (full installation).I tested with Centos 5.4 and works fine. Using which rpc.lockd print is no rpc.lockd and slackware 11 is /usr/sbin/rpc.lockd.following services starting on client using rc.rpc ( rpc.statd and rpc.portmap)

View 2 Replies View Related

Ubuntu :: Setting Up 64bit - Received A Black Drop-down Page Listing - With No Exit Option

Mar 1, 2010

I am interested in trying 64bit Ubuntu Cloud ... downloaded the file ...copied to disk ... ran the installation disk (many more setup questions that were a bit more complicated than 32bit) but successfully completed ... required to remove disk and restart ..after restart I received a black drop-down page listing (with no exit option) requiring that I enter my user name and password ... all good so far but then I was asked to enter my root administrator account number which apparently requires a sudo command. nothing I have tried in sudo commands works and my computer was blocked thereafter so I had to reinstall Ubuntu 9.10 32bit in order to just make this request...

View 4 Replies View Related

Ubuntu :: Cannot Mount, Bad Fs, Option Or Superblock FSCK?

Aug 23, 2011

The HDD is a 500GB internal SATA, The smart claims that the "file system is not clean" but is still green.FSCK ran a few errors and using fsck i copied a new superblock from a backup location, It still won't let me mount and FSCK is still trying to fix a TON of errors. I'm sorry I don't know any of this yet, but I'm concerned that FSCK could be destroying the data on the drive, for example photos and other important things. FSCK is coming with a lot of things to fix, It's gone from trying to fix errors in free blocks of group #1 to over #3000.. Is this safe? Will this work? Can I get rid of whatever caused this problem in the first place?

View 1 Replies View Related

Red Hat / Fedora :: What Function From 'nodev' Mount Option Is?

May 12, 2010

does someone know what the function from "nodev" mount option is?i'm in a middle of study for OS Hardening, and one of them is Red Hat.From what i get until now, nodev means don't set a character / special devices access in a partition.I don't really understand it, maybe someone can give real example how do this option behave within the system? and what is the side effect turning this option in a filesystem?

View 3 Replies View Related

CentOS 5 :: Can't Mount DVD - Wrong Fs, Bad Option, Bad Superblock?

May 14, 2010

I am having trouble mounting DVD+Rs. I get the following error whenever I try -mount: block device /dev/hda is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/hda, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so

View 8 Replies View Related

Debian :: Invalid Option When Attempting To Mount Volume

Feb 19, 2016

i can not enter to my partition when i try that thing , i got this message:

1- Invalid mount option when attempting to mount the volume.

2 - You are not privileged to mount this volume.

first message it is about entering (( Windows OS partition )) (( NTFS ))

second message it is about entering other partiton with (( FAT32 ))

View 3 Replies View Related

Fedora :: How To Mount Flash Drive - No Option On GParted

Apr 21, 2011

I had to unmount a flash drive in GParted to format it, now I want to mount it again so I can use it, GParted does not get me a "mount" option and it does not automatically mount. How do I mount it so I can use it to make a Fedora Live USB? I am using Fedora 14 KDE BTW...

View 6 Replies View Related

OpenSUSE :: [11.2 Gnome] Where To Set Shortname=winnt Mount Option

Dec 23, 2009

Where do I set the default mount options for automounted removable drives, like memory cards?Right now the cards are being mounted with shortname=lower. That option causes my (vfat) memory card's files to appear with lowercase letters, but I'm more used to have 8.3-style msdos filenames as uppercase, (unless specifically mixed case). I've tried editing the setting in gconf, as well as editing /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi, nothing works. Mount keeps using shortname=lower, regardless of what settings I put in those 2 locations.Searching the forums gave me those 2 locations above, and nothing too current.

View 9 Replies View Related

Ubuntu Installation :: XFS - Which UTF8 Mount Option In Fstab

May 9, 2010

I have since quite a long time the problem that files using special characters in their filenames are not displayed in various applications. In console or Thunar I have a special "white questionmark in a rhombus" sign for every special character. It is an XFS partition. I have read a few times that this can be solved by using the iocharset=utf8 option in /etc/fstab, but this option is not recognized and the mount inhibited.

I used other options: utf8 as well as nls=utf8, but that was not recognized neither. What option do I need to specify to enable utf8 for XFS ? Samba works. That means I can play an MP3 file in Windows exported from the XFS disk using Samba, although the special character is then shown as "_" in Windows..

View 4 Replies View Related

Ubuntu :: New Clean Install - Option For Mount Point

Jul 14, 2010

I have made a clean install number of times. At the point where you (I always do this) manually select the partition where you want Ubuntu to be installed there is a option where you want the Mount Point. The options are / /boot /home /tmp /usr etc. up to now I have always used / but I'm not sure effect choosing some of the options would be.

View 1 Replies View Related

Fedora Installation :: Clicked Network Icon On The Right Top Corner Of The Screen, Only Two Option Came Out:Wired - Cable UnpluggedNetwork Setting?

Jun 6, 2011

just installed Fedora 15 on my laptop Samsung RF511Everything works perfectly fine but It seems that I cannot connect to the internet.When I clicked Network icon on the right top corner of the screen, only two option came out:Wired - cable unpluggedNetwork setting.How do I solve this problem. Since the laptop is not connected to the internet, I cannot use command yum.P.S. Samsung RF511 using Broadcom.

Another question, My laptop has two graphic cards. Intel and Nvidia Optimus.Can Fedora 15 use the Nvidia card?Please tell me step by step or send me a link tutorial for beginner to setup my internet since I am very new at linux.

View 5 Replies View Related

General :: Know If Noatime Or Relatime Is Default Mount Option In Kernel?

Aug 1, 2011

I was trying to know if relatime or noatime was set on a filesystem, but i didn't found the information, neither in /etc/fstab, neither in kernel boot options.

First of all, it seems clear that i don't have the "normal" behaviour on atime:

root@antec:/tmp# rm -f test.txt; echo a>test.txt
root@antec:/tmp# stat test.txt | grep -i 2011
Access: 2011-08-01 21:54:30.000000000 +0200
Modify: 2011-08-01 21:54:30.000000000 +0200

[Code]....

- Is noatime or relatime a default mount options, and if yes, from which kernel release ?

- Is there a way to see the default mount options (ie: how can i see why i don't have the "normal" atime behaviour ?)

View 1 Replies View Related

Fedora Networking :: Mount Shortcut / Option To Add In The Fstab Line To Get The Shortcuts?

Sep 4, 2009

Our office just switched from CentOs to Fedora and I'm trying to get everything set up. Everything is working so farbut im having a problem with my mounted cifs drives. They mount ok, I made directories in /mnt where the drives are readable and accessible. I'm only missing the shortcuts to the mounted drives in nautilus and on the desktop. I've checked the gconf editor and the volumes should be visible.Is there an extra option i have to add in the fstab line to get the shortcuts or something like that?

View 2 Replies View Related

Red Hat / Fedora :: Mount: Wrong Fs Type, Bad Option, Bad Superblock On Server3:/programs

Jan 9, 2011

I have been trying to mount an NFS share from my REHL server for over an hour, and Google was not able to help me. when I use the command:

mount -t nfs server3:/programs /programs

I get the folowing error :

mount: wrong fs type, bad option, bad superblock on server3:/programs,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so

View 4 Replies View Related

Ubuntu :: /etc/mtab And /proc/mounts Do Not Show Tune2fs Mount Option

May 23, 2011

I just discovered that you can automount an ext4 filesystem with acl enabled by running "tune2fs -o acl". (I knew about tune2fs but did not dare to use it until now). However, the acl mount option does not show up in /etc/mtab and /proc/mounts. Can I ignore this, or is there a way of telling the system about the actual mount options?

Edit: I can do "tune2fs -l <device> | grep acl | awk '{print $4}'" and if that isn't empty I can update /etc/mtab with "mount -f -o remount,acl <device>", but like the udev rule I previously messed with this seems lumberingly unelegant to me.

View 2 Replies View Related

Ubuntu :: Mount A Dvd When The BIOS Does Even Have A Setting For DVD's?

Mar 3, 2010

do you mount a dvd when the BIOS does even have a setting for DVD's?

View 4 Replies View Related

Fedora Hardware :: Hard Drives Keep Crashing - Mount: Wrong Fs Type, Bad Option, Bad Superblock

Aug 26, 2010

I am writing as yesterday, my fourth hard drive within 2 years crashed. Is that normal? One was crashing 2 years ago, one in winter 2009 and 2 just within 2 weeks. What can be the reason for so many crashes? I heard maybe the power supply? How can I find out if that's broken? The voltages at least in BIOS seem normal. The SATA controller? How do I know if its broken? Can I just but one PCI-E card with SATA adapters? Is it the motherboard? Theres not much more in my computer... As well, its wired that my good-old 160 GB drive never crashed, only constantly the bigger ones. Here some typical error code from mount and dmesg:

Code: mount: wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error

ata2.00: status: { DRDY ERR }
ata2.00: error: { UNC }
ata2.00: configured for UDMA/133
ata2: EH complete
ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata2.00: BMDMA stat 0x4
[Code]....

View 8 Replies View Related

General :: Installing Cent OS Using Windows - Mount Iso File To Virtual Drive There Is No Autoplay Option

Feb 22, 2011

I downloaded centos from their official bittorrent.It contained two iso files and md5sum.txt,sha1sum.txt and sha256sum.txt and also md5sum.txt.asc,sha1sum.txt.asc and sha256sum.txt.asc.Now when I mount iso file to virtual drive there is no autoplay option.Can you tell me how to install it.I dont see any setup file?

View 3 Replies View Related

Fedora :: Setting Internal Media Mount Name

Aug 25, 2009

My hard drive is partitioned in 12 partitions (for various reasons) anyways I am having two issues when I mount my data partition. Firstly I can only write/edit files on the partition when I am under root. Second when it mounts it uses the drive's UUID as the mount name in /media (so it is horribly long!) is there a way I can force it to mount under a different name? I tried right clicking on the drive like I am able to do in Ubuntu and set a "mount point" but Fedora does not have this option.

View 3 Replies View Related

Ubuntu :: Hard Disc Failure - Error Mounting: Mount: Wrong Fs Type, Bad Option, Bad Superblock ?

Apr 18, 2011

Ubuntu 10.04 has just failed to load from my hard drive, so I've resorted to booting from CD just to get the machine going.I'm wondering if my main boot drive has gone caput??When trying to mount it using DISK UTILITY...get the message: Error mounting volume

Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,missing codepage or helper program, or other error.In some cases useful info is found in syslog - try dmesg | tail or so

View 5 Replies View Related

Ubuntu Installation :: "Delay Prior To Thermal" - No Option To Disable This BIOS Setting ?

Oct 14, 2010

H/W : Intel 1.6GHz, BioStar U8548

S/W : Ubuntu 8.04 + RTAI + EMC2 (CNC controller)

In configuring CNC controller system, latency-test must be run to find maximum jitter of the system. It counts about 17,000 ns for few minutes, then it suddenly rise to 260,000 ns. It is impossible to control CNC with such large jitter.

In tracing this problem, I found that Award BIOS setting "Delay Prior to Thermal" is firmly engaged in making a problem. When I set this setting to 4 minutes, it makes large jitter periodically with exact 4min 15sec period. When I changed this setting to 8 minutes, its jitter is 8min 15sec period.

But, there is no option to disable this BIOS setting.

I heard that ACPI enabled OS can take over the ACPI function of the BIOS (which may include this "thermal" setting), but RTAI tuned kernel don't include ACPI modules.

Is there any solution to this problem ? If I recompile kernel with RTAI with ACPI processor module enabled, would it be a another problem maker ?

View 1 Replies View Related

Fedora Servers :: Setting Up A FTP / P2P - Mount Point Information

Aug 19, 2011

I have just been gifted with a Linux dedicated server for the next six months, with an option to renew after that time has expired, and I'd like to set it up for FTP/P2P use. I do have some familiarity with Fedora from work, but only as a pre-installed desktop OS. The company providing the server has asked me to choose a OS, so of course I picked the one with which I already have some knowledge. They've also asked me to provide partition and mount point information, and it's here that I'm having some problems. I've spent most of my free time today reading everything I could about partitioning for a server, and I'm still not comfortable making this decision on my own.

The server comes with two drives - one 500GB and one 1TB, and 8GB RAM. My thinking is to use the 500GB drive for the OS, and the 1TB for media storage. I know I still have a good bit of learning to do, but I just want to get the blasted thing set up so I can get on with the hands-on part of figuring out how it works.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved