Software :: Change Default Noexec To Exec For All Partition In An External Drive
Jan 15, 2010
Whenever I plug an external harddrive to a CentOS system,all partitions mounted will have noexec that makes my binaries or script files not executable.
Quote:
[root@centos52-64-dell ~]# mount
/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
[code]....
I have to remount it using, e.g.,
mount -o remount,exec /dev/sdb1
But I am sick and tired of doing it everyday. What I can I do ?I don't want to use /etc/fstab to solve this problem becauseit will cause booting problem (curable though) when the hard drive is not around.
View 1 Replies
ADVERTISEMENT
Jul 18, 2009
How to change the default noexec when an external hard drive is plug to CentOS through usb ?
View 4 Replies
View Related
Aug 15, 2011
When my external USB-HDD with NTFS auto-mounts, the default permissions are set to drwx------ 1 userid users. So only I have read-write but all others have no permissions at all. This is annoying because I have pictures on this drive that I share via an apache web server running as wwwrun. So I wonder how I can change the default permissions to something like rwxr--r-- so that apache can access the pictures?
View 3 Replies
View Related
Feb 20, 2010
When I plug in my external USB Hard drive which is formatted as a single NTFS partition, it is recognized and mounted automatically, a nautilus window pops open. Unfortunately it is not writable. The reason is: the partition is mounted "ntfs" (which lacks write support) instead of "ntfs-3g". This is the output of mount after plugging in the drive:
$ mount | grep sdc1
/dev/sdc1 on /media/4EBC5FB82435B0EE type ntfs (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,dmask=0077)
I want this partition to be writable by just plugging it in.
The partition should not have any errors because a) I fsck'ed it windows and b) mounting it manually works:
$ sudo mount -t ntfs-3g /dev/sdc1 /media/disk_/
$ mount | grep sdc1
/dev/sdc1 on /media/disk_ type fuseblk (rw,allow_other,blksize=4096)
$ devkit-disks --mount-fstype ntfs-3g --mount /dev/sdc1
Mounted /org/freedesktop/DeviceKit/Disks/devices/sdc1 at /media/4EBC5FB82435B0EE
$ mount | grep sdc1
/dev/sdc1 on /media/4EBC5FB82435B0EE type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
$ gnome-mount -nbtd /dev/sdc1
$ mount | grep sdc1
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
How can I get ntfs drives to be mounted as writable by default, preferrably without having to modify fstab?
View 1 Replies
View Related
Aug 22, 2010
i have set up my Apache2 server and i have this question. Because my netbook (eeePC 701 4g surf) has a very small SSD Drive (4GB) is it possible to set the default directory of apache to be an external USB Drive? And if it is, how?
View 2 Replies
View Related
Feb 4, 2010
I am looking for a default, or starting "exclude list" for system backups. We are currently using Symantec Backup Exec, but I also do not think that is important to this question. I would think that the Oracle "lock" files and the /var/run/*.pid files can be excluded from the backup, and probably the dell file also. Can some provide a list of files/directories that can be excluded (from backup) for RHEL 5?
View 1 Replies
View Related
Jul 8, 2010
I'm trying to format/repartition a 250 gig external Seagate drive. I get the following error:
Code:
Error creating partition: helper exited with exit code 1: In part_add_partition: device_file=/dev/sdc, start=32256, size=250056705024, type=0x83
Entering MS-DOS parser (offset=0, size=250059350016)
MSDOS_MAGIC found
[code]....
View 4 Replies
View Related
Mar 1, 2011
I have Ubuntu 10.10 and Windows7 installed as dual-boot on my PC. When the machine starts up, Ubuntu is first in the list of boot options. After 10 seconds GRUB automatically boots that partition. I want to make the partition for Windows7 the default. How can I do that? I know some Unix, e.g. how to cd, gedit, etc..
View 2 Replies
View Related
Mar 27, 2011
I'm trying to change the permissions of my external USB drive that i've plugged into my machine. It still reads user root and group root. I've tried chown -R kuier /home/kuiper/file Then chgrp -R users /home/kuiper/file But it still doesn't change permissions. I've also tried editing /etc/group and adding my name to plugdev group. nothing seems to be working?
View 1 Replies
View Related
Mar 21, 2009
Computer hardware is not my bag. I accidentally installed ubuntu on external F drive, thinking it was C drive, unaware that ubuntu installs on drive with most available space. Installation involved partitioning the drive in about half. So, before I install it on C drive, I want to restore my F drive. I deleted partition using XP Disk Management tool and tried to use gParted on Parted Magic live boot cd to resize remaining partition that contains my data. But it doesn't seem able to expand the good partition to reclaim the 'unallocated' space. How do I accomplish this? Must I backup and reformat?
View 9 Replies
View Related
Apr 3, 2011
I have the following "setup:"
iMac (no internal drive/dead) --------- (Firewire) ------- [[MAC OS X]]
|
|
|[code]...
I routinely use the firewire drive to boot MAC OS X.However, I would like to boot from the linux partition of the USB drive. This linux partition had linux installed on it from a live cd, and during that process, I told the installer to install GRUB on the usb drive (which happened to be /dev/sdd).My question is, how do I get this disk to show up during the iMac option-boot? Currently, only the firewire MAC OS X option shows up. I have read about rEFIT, but that appears to install it to the Mac OS X disk (would that still work?)...Also mentioned was installing rEFIT to the internal EFI system partition, but I don't know if that is wise.
View 1 Replies
View Related
Jan 15, 2010
I just bought a new external 1 TB HP hard drive that came with two partitions.One larger for storage and another 700 MB partition called hplauncher as a sub-file of what shows as a CD drive called HP virtual CD 4607 which held files for windows automatic back up. Which I don't need.Both the CD and launcher drives do not allow for deletion or formatting. The larger drive does.I am viewing it in the Palimpsest Disk Utility that cam with my Ubuntu 9.10 clean install.
View 8 Replies
View Related
Feb 14, 2011
Been using a SeaGate FreeAgent external drive for past 6 months. Suddenly the ext2 partition (/dev/sdb2) won't mount, while the NTFS partition (/dev/sdb1) does.I've been allowing automount, no entry in /etc/ fstab.When the NTSF partition mounts there appears an entry
View 7 Replies
View Related
Mar 27, 2010
My brother has an external hard drive that has some personal data on it that he doesn't want to lose. He was reinstalling windows on his machine and deleted both the partition on his internal drive and on his external drive. He installed windows on his internal drive only though. I want to be able to reaccess that data from the drive. All the data should still be on the drive since so write cycles have been done to overwrite it.
I guess deleting the partition removed the partition table or something so the drive doesnt mount. I would prefer to use linux (but windows is ok too) and a free as in beer tool preferably. there are normal recovery tools (I have used get data back before) that scan for any files anywhere that has been overwritten but I don't really need things that have been overwritten; just the data that is still there but not availible because it cant be mounted.
View 3 Replies
View Related
Aug 30, 2011
is there a way of sharing an ext3/ext4 formatted partition on an external USB drive between different users (uids) on different Linux machines without creating a group for this purpose, setting the group ownership of the partition to this group and adding each respective user to the group on every machine?This would mean that I need to have root privileges on every machine... which I may not have in some cases.I'm using the partition to store the code I'm developing on Linux and I would like the option to be safe... if possible.I could use a vfat partition but then I have no control of the rw rights + I cannot develop directly in the dir: I would always have to tar.gz the directory, extract, work, tar.gz, copy to the external drive.
View 2 Replies
View Related
Apr 8, 2010
I've got an external hard drive with one large data partition on it. I also have four computers to connect it to (individually, not at the same time). Three machines are running Slackware and one is running Ubuntu 9.10. I need to be able to just plug the drive into whichever machine, mount it (preferably to the same location each time) and not have to worry about user permissions and such. Do I just chmod 777 all the files and folders or is there a better method for different 'users' to access the same partition? And how about mounting to the same location each time?
Now the second part of my question I'm pretty sure I'm not able to do but just in case..... is there any way to encrypt the information safely and make it compatible with a Windows XP machine?
View 4 Replies
View Related
Feb 3, 2011
I am keen to start using Ubuntu and have installed it on one of 4 partitions on my new 1 TB external HD. I got to the reboot stage where I was expecting a new boot screen where I could decide to use either XP or Ubuntu. But there is no mention of Ubuntu just XP and the volume I installed Ubuntu on has disappeared. I can find the other 3 volumes on My Computer.
View 3 Replies
View Related
Apr 21, 2010
I tried two times to make an new partition (after the FAT partition on it) on my external hard drive with YaST>Partitioner.Fist I had tried ext3 now I have ext2 on it.Both times the partition (or the corresponding folder in /media) was only writeable to the superuser/root but not to a normal user (readable to the normal user). Root is the owner.The FAT-Partition on the same external drive is owned by the normal user who was logged in as I plugged the USB-cable in.I can unmount both partitions als normal user in natilus.1. Can I start nautilus as root to change the permissions?2. What have I done wrong? Should I use an SuSE Live-CD or an CD with an special partitioning-program instead?ng X20) openSuse 11.1 and Gnome 2.24.1 (mostly, 1 account is using KDE) and Kernel Linux 2.6.27.45-01.1-pae. "/home" is on an separated partition (as part of an extended partition). I have also 2 NTFS partitions for Windows XP (System and Data), and a FAT, a root (/) and a swarp partition.
View 9 Replies
View Related
Jul 14, 2010
What im trying to do is install ubuntu on to an external hard drive, partition it and make it work. ive got a problem, as i have 200GB of games and other things already on that drive, before you say "copy it to another drive and then back" i cant, i dont have any other drives apart from my internal which has only got 20 gig left
View 5 Replies
View Related
Aug 10, 2011
I have a shared, family computer which has USB drives attached to it. Multiple users can be logged in, that sort of thing. All of the users have been added to "Access external storage devices automatically", however I've noticed that when one user plugs in a USB device, the other users can't see it without unmounting/remounting. When a drive is mounted, it seems to mounted at:
drwx------ 5 jdoe jdoe 4096 2011-08-10 12:03 DriveName/
What I want to do is change the default mount group settings, to:
drwxrwx--- 5 jdoe family 4096 2011-08-10 12:03 DriveName/
I know I can do this through fstab, but as far as I know that forces you to name the drive/mount point and that's not what I'm looking for, what if a user adds a NEW usb device and wants it shared with the other users?
View 1 Replies
View Related
Aug 9, 2010
My hosting company said: You need to unmount the partition with exec permissions, install memcached and re-mount it with no-exec as a security measure.
Code:
[root@server tmp]# pecl install memcache
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl
channel-update pecl.php.net" to update
[code].....
View 4 Replies
View Related
Feb 9, 2010
i needed to change my external hard drive's file system from ext3 to fat32, to use it in windows, which i did the simple way: i shrunk the ext3 partition, made a fat32 partition, copied the files over, removed the ext3 and made the fat32 bigger. unfortunately, while gparted was making the partition larger, my computer shut down. i lost all my files and the partition messed up immediately. i made a new fat32 partition, after deleting the old one, but noticed that gparted was showing 100 gigs already in use (???). so now i have a 300 gb hard drive with only 200 gb i can use; i ran df to make sure gparted wasn't messing up, but indeed it shows the partition as being only 200 gigs in size. i haven't tried making any other kind of partition yet, such as ext3, for fear of losing my files again, and because it wouldn't be permanent anyway, because i need those files in windows and stupid microsoft won't make their OS ext3 compatible.
View 2 Replies
View Related
May 2, 2010
OpenSUSE 11.2 server, Gigabyte GA-MA790X-UD4P sda for system, 3 ext4 partitions, working fine.sdb promise RAID1 for data, 1 ext4 partition, working fine.sdc is an eSATA docking station for data backup, 1 encrypted ext4 partition -- here lies the problem.
This configuration has been functional for months until I decided to add two more external drives (sdc) to rotate through backups. I had difficulty with encyption on the first new drive and eventually decided to start over. Using the gui Yast Expert Partitioner, I deleted the single partition. That began a real nightmare...
Since deleting the partition, the system detects drives inserted in the docking station, but does not report them (including a different fully functional drive and a brand new unused drive). I have tested all drives on other computers and they function perfectly. I have rebooted the system several times while troubleshooting this issue.
Could not recreate the partition on server (since it does not recognize the drive), so I used Gparted on another computer - it all went without a hitch, formatted ext4. But when I placed the drive in the dock, the drive still was detected but not recognized.
Details:
BIOS lists the eSATA drive
Entering Yast Expert Partitioner, error message follows:
The partitioning on disk /dev/sdc is not readable by the partitioning tool parted, which is used to change the partition table.
You can use the partitions on disk /dev/sdc as they are. You can format them and assign mount points to them, but you cannot add, edit, resize, or remove partitions from that disk with this tool.
Yast partitioner shows drives: sda, sda1, sda2, sda3, sdb, sdb1 sbc is not listed.
# fdisk sdc results in: Unable to open sdc
# dmesg | grep tail reports:
[48442.370779] sd 0:0:0:0: [sdc] Unhandled error code
[48442.370793] sd 0:0:0:0: [sdc] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
code....
So how did partition deletion cause this issue, and how do I correct the problem? It is possible that my difficulties encrypting the first new drive are related (it's not my first time doing it successfully). It seems the problem is in the Kernel or configuration. I have invested many hours in forums and on google - tried dozens of possible fixes. I'm beginning to suspect system corruption or a bug, however all other system functions are working perfectly.
View 5 Replies
View Related
May 2, 2010
Recently my laptop broke down and wont start up. I'm currently trying to recover my files to my mac with an IDE to USB cable. It recognized my windows partition fine and I was able to get all my files off of that, but the majority of my stuff is on the ext4 partition that I have on it. Does anyone know how to access the ubuntu partition of this hard drive from my mac?
View 2 Replies
View Related
May 14, 2010
I'm new to the ubuntu forums as well as ubuntu. I'm excited to learn more about linux itself as well as ubuntu. I got ubuntu 10.04 running on my toshiba L505D laptop by disabling acpi in the boot commands. My first question is how do i do this permanently, is this bad, and would updating fix the issue? If so how would I go about updating.
Secondly, when the external hard drive I installed ubuntu on is not plugged in to the laptop, GRUB rescue comes up. I kind of like this because it provides a level of hardware security. I would however like to know how to load my windows partition encase the external hard drive fails.
View 2 Replies
View Related
Nov 15, 2010
I've been running Linux for a year on our family computers (one desktop, one laptop and two netbooks). I've run into a problem with the encrypted ext4 partition (270GB) on a LaCie external hard drive which also has a NTFS partition (50GB) which is not encrypted . First two times I tried using the encrypted ext4 partition (from two different computers) it worked fine but now I can't access it at all. I can still access the NTFS partition.Encrypted external hard drive partition will unlock but won't mount (or unmount). The computer says "Opening 320GB Hard Disk" but after a minute says, "Unable to mount location. DBus error org.freedesktop.DBus.Error.NoReply"Disk utility (GUI for gparted I believe) states that the encrypted partition (/dev/sdb1) is unlocked and the underlying partition (/dev/dm-0) is not mounted but it has a "busy circle sign" on it that will not turn off. The NTFS partition on the same drive mounts and accesses normally.
But if I try to unmount the NTFS partition, it says: "Unable to stop drive. One or more partitions are busy on /dev/sdb"If I try to shut down the computer, it is unable to shut down because (I assume) it can't shut down that drive either. So I have to just turn off the computer.fdisk states that /dev/dm-0 doesn't have a valid partition table [full output attached]fsck suggests: "Filesystem mounted or opened exclusively by another program?"ps axuf shows some processes running on /dev/dm-0 but killinghem doesn't release the drive either. [full output attached]I checked /etc/blkid.tab (suggested in one vaguely related thread) and there's no actual file only a broken link pointing to /dev/.blkid.tab (which doesn't exist). I tried deleting this link and rebooting but that didn't change anything.when I finally gave up my data as lost, I tried to format the partition (using Disk Utility) and it refused saying, "One or more block devices are holding /dev/sdb"
View 1 Replies
View Related
Jun 19, 2011
How do I change the partition label of a drive in openSuse. I am using KDE. I have this howto: Editing FAT32 Partition Labels using mtools But its too long and requires to edit configuration files, when actually for removable media this is a very long cycle.
View 7 Replies
View Related
Jan 16, 2011
I was trying to change the mounting point of a usb external drive from '/media/disk' to '/media/Movies'
Here is were the stupid part takes over... I right clicked on the desktop icon for the device and selected Properties. From there I selected the Volume tab and in there I changed the mounting point to '/media/Movies' It accepted it and said the changed would take place when I unmounted it and remounted it. However, when I did this it now says it cannot be mounted as it says mount_point contains invalid characters usually /
Unfortunately, now I cannot get back into the properties to remove my error.
View 4 Replies
View Related
Apr 5, 2011
I have a 1T Western Digital external hard drive. As usual my first thing to do was use cfdisk to wipe out the existing partitions and create new ones. When I plug it in, it mounts a "partition" which does not show up in fdisk, and it mounts it as if it were a CD (ie. /dev/srx instead of /dev/sdx) labeled WD Smart Media or something like that.
View 4 Replies
View Related
Jul 18, 2010
Just installed 11.3 on my computer, however when I connect an external NTFS harddisk I receive an error message. When I open dolphin to connect to an internal NTFS partition I receive the message:
org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org. freedesktop.hal.storage.mount-fixed auth_admin_keep_always <--
Anyone having an idea how I can fix this?
View 9 Replies
View Related