General :: Can't Execute A Script On A Mounted External Drive?

Jan 23, 2010

The /mnt/ext is mounted to an ext2 filesystem, an external hard drive. For some reason I can't run scripts from there. Please see the session below.

luntain@plato /mnt/ext $ echo "echo success" > k.sh
luntain@plato /mnt/ext $ chmod 777 k.sh
luntain@plato /mnt/ext $ ./k.sh

[code]....

View 2 Replies


ADVERTISEMENT

General :: External Hard Drive Mounted As Read-only

Mar 16, 2011

I administer a remote server via SSH that runs CentOS 5.5. I have been unsuccessful in all my attempts to write to two different external USB hard drives with a single ext3 partition when logged in as root.

When attempting to create a "test" directory I get one of two messages:

Quote:

Both drives *appear* to have filesystem issues. When I run an fsck on either drive, I get:

Quote:

Keep in mind this is a newly-formatted, empty drive.

Not putting stock in the odds that I've had two hard drives (different sizes and brands) with the exact same hardware problem, I'm going to assume this is a software issue, although maybe it isn't. Hence, my post in "Linux - General". I've heard talk elsewhere of controller (chipset) issues coming into play. Is this valid?

Okay, here's the information you'll need to make a diagnosis....

Here's the output of a "df -h" command:

Quote:

Here's the contents of my /etc/fstab:


Quote:

Here's the output of "cat /etc/mtab":

Quote:

Here's the output of a mount command:

Quote:

Here's the output of fdisk on the device in question:

Quote:

The number of cylinders for this disk is set to 48641.

There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):

I've got someone with access to the box if necessary. But it might take days to implement solutions since this isn't his full-time job. Remote solutions are, therefore, preferable.

View 13 Replies View Related

General :: External Drive Read Only - WARNING! Running E2fsck On A Mounted Filesystem May Cause SEVERE Filesystem Damage

Mar 24, 2010

I've had a look at some similar threads but as I'm very new to linux they're already a bit technical for me. Sorry, this calls for someone with patience. I gather from other threads that disconnecting an external drive without unmounting is a no-no, and this seems to be the likely cause. Now the disk is read only and I'm unable to change any settings through the usual control panel on ubuntu. I'm just not familiar with the terminal instructions. I tried to cut and past a few command lines from other threads but I got some warnings that proceding could damage data. Like this one: WARNING! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage.

View 5 Replies View Related

OpenSUSE Hardware :: USB Weirdness - Mounted External Drive Changes Device IDs

Jun 5, 2010

[openSUSE 11.1, kernel 2.6.27.45-0.1-Default, Gnome 2.26.3] I have a problem where I have an external USB drive which mounts at boot, with /home aboard it along with several data-only partitions, and if I try to add another USB drive *after* boot, the system changes the device IDs previously given to the original drive. The already running sdb now becomes sdc. If a user or processes are attached to /home when this occurs they are left in the twilight zone and stuff starts crashing. An added weirdness is the newly added drive isn't stealing the sdb ID, the added drive becomes sdd instead, and nothing at all is left at the sdb ID.

Note:

- System boots from sda, a non-USB drive with the system as well as /swap onboard, that should be uninvolved with the problem.

- Among the 4 partitions of the boot-mounted USB drive there are 2 lux-encrypted partitions (ext3). One is /home (originally encrypted under 10.3 and added back after machine upgraded to 11.1) and another being a data directory (later encrypted under 11.1).

- The problem _may_ occur only when the additional added drive is also lux-encrypted, but this may or may not be always true as I have limited other USB stuff to test with, most of it is also lux-encrypted.

View 1 Replies View Related

Ubuntu :: External Hard Drive Connected But Not Shown Mounted

Aug 12, 2010

Hard drive is connected to my Inspiron 1525 via USB, plugged in and I'm not seeing the new drive mounted. Restart doesn't fix things and manually trying to mount /dev/sdb1 doesn't work either. The drive I got is preformatted as NTFS and I've been using a logical partition formatted as NTFS as a sort of share drive between my Windows partition and Ubuntu partition, so I know I have NTFS set up properly. This is the hard drive I'm working with for reference.

View 3 Replies View Related

Debian Configuration :: External NTFS Drive Not Mounted Writable By Default?

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

General :: Owner Could Not Execute Files Until Mounted In Fstab?

Nov 17, 2009

I'm trying to understand the last few hours... I installed slackware 13 yesterday in a multiboot system. On a seperate hdd from all the OS's I have my mp3 collection......I could play the mp3's as root after manually mounting sdb, but as a user I was unable to play them even though I chown'ed and chmod'ed 777 until I mounted sdb in fstab. The second drive was formatted ntfs by vista.

View 3 Replies View Related

OpenSUSE Install :: Cannot Execute On Mounted Partition?

Oct 3, 2010

recently i did a fresh install of 11.3 on an ext4 partition. My data disk is a ext3 and the new system mounts it during boot.I can write to it but i can not execute programs from this partition.in fstab i can not find something like "noexec"permissions of mount folder looks ok for me. e.g. execute compiled "hello world"

me:~/datadisk> ./hello
bash: ./hello: Permission denied
me:~/datadisk>

[code]...

View 6 Replies View Related

General :: Ubuntu - Find The Device Associated With A Mounted USB Drive?

Jun 23, 2010

How do you find the device (e.g. /dev/*) for a mounted USB drive in Linux (Ubuntu 10.04)? I'm trying to format a Cruzer USB flash drive, and when I plug it in, the icon for the mounted filesystem appears on my desktop. However, when I open GParted, it doesn't list the filesystem as an option to partition.

The recommendations I've found through Google include monitoring tail -f /var/log/messages, which they claim should list the device name when the drive is mounted, but this never happens for me. I've also read that the USB drive would usually be linked to /dev/sdb, but this appears as a broken link on my filesystem. How else would I find the device?

View 3 Replies View Related

General :: Both Users Unable To Share Mounted Drive?

Aug 18, 2010

Noticed this in both Ubuntu 10.04 & now Mint 9, both Gnome. I didn't have PCLinuxOS2010 KDE installed long enough to experience it so I don't know if it's a property of Linux or part of Gnome.I have two users, both myself and my wife, and I noticed thatn I mount an internal SATA drive I can only see/access it under the user that mounted it. In order for the other user to see it I need to un-mount the drive. Drive is a 1TB SATA formatted NTFS.I can't imagine this is normal and the 2nd drive is shared for pics/data/etc. Strange quirk is that my install is on a partitioned primary drive, 320gb, that also has Windows on it so the OS must access the drive in order to boot - both users can see the mounted 215gb Windows NTFS partition simultaneously.Is there a setting that needs to be changed or is this normal?

View 8 Replies View Related

General :: Cannot Use GUI To Open/list A Mounted Hard Drive

Jun 12, 2011

My version of linux has a bunch of GUI icons on the left hand side of the screen (vertical). Most are links to programs.You click the GUI icon and the program opens. When I mount my internal hard drive it adds a GUI icon for the drive. The problem is when I click on this new GUI icon it automatically loads K3b and gives an error message instead of giving me a list of what is on my drive. I deleted the program K3b and tried un-mounting then re-mounting the drive. I then tried the new GUI icon for the drive and now it automatically opens Dragon Player.

View 1 Replies View Related

General :: Setting Execute Permissions On Second Hard Drive

Apr 4, 2011

I am running Linux Mint on my primary hard drive, and I would like to access some folders I have on my second hard drive, which has Windows XP installed on it. However, whenever I try to use these folders, I am greeted with the error message, "The file is not marked as executable." While I know how to set files as executable whenever I am using folders on my Linux drive, whenever I try to set such permissions on my XP folders, I can't seem to make it work. The files revert to their former status, and I'm told that I don't have permission. Should I set the files as sharable from within XP, so that they aren't marked as read-only? Or is there another solution I've missed?

View 8 Replies View Related

General :: Vodaphone Huawei K3520 / Cannot Execute Pen Drive?

May 7, 2010

I cannot execute my pen drive, how can I make ubundu read it and have internet?

View 10 Replies View Related

General :: Cp -ru -> Using The Recursive Copy And Update From Internal Drive To A Mounted Nas

May 4, 2011

I've mounted my NAS drive under the /media/ directory. I've copied a bunch of files from my current /var/www directory, using cp -Rpv (preserve). Now I want to do a cp -Rup /var/www/ /media/magneto/testing.cdw/ Based on the fact that these are two different file systems, i.e. one is a networked NAS connected through Samba, and the other is my computers internal drive. Will I run into problems with the date and time? how can I check before I run the copy?

View 4 Replies View Related

General :: CentOS - Disable Disk Check In Mounted USB Drive?

Aug 6, 2010

Is there a way to disable disk checks in a mounted usb drive? I have a 500GB usb mounted drive in my CentOS machine and everytime I reboot my system, it does disk checks which is a long painstaking process.
/mnt/sdb1

View 4 Replies View Related

Hardware :: External HDD Changes Locations In /dev While Mounted?

Feb 23, 2010

I've got an external HDD from Iomega that I've been using for over a year and lately it's been doing this thing where it suddenly changes from /dev/sdg to /dev/sdh while the partition on it is still mounted, seemingly at random. I'm often (not always) able to look at the contents of the partition, but it gives me I/O errors followed by a list of files and directories.

I am using slackware64 13.0 running kernel 2.6.29.6. Below I've provided the relevant lines from dmesg (edited out irrelevant lines to keep post under max character limit.) I'm beginning to suspect NFS has something to do with this, but I can't even begin to imagine how.

When this happens I'm able to umount -l the partition and remount it using the new /dev/sdh1 but eventually the same thing just happens and the whole drive switches back to /dev/sdg. This problem persists between reboots. It's also happened with an ext3 filesystem, in fact I switched to ext2 because it kept telling me "Aborting journal" and I was afraid I would get a corrupted journal and perhaps a destroyed file system.

About 8 months ago I was doing some work at my brother's place and while down on the floor fiddling with cables I yanked this whole drive off the desk and it smashed into the floor (while spinning probably, I'm pretty sure this model is disk based.) I've been expecting to see some strange behavior since that happened, but it took a while and I can be certain this is related to that incident, although I'm rather convinced it is.

Code:
sd 5:0:0:0: [sdg] 976773168 512-byte hardware sectors: (500 GB/465 GiB)
sd 5:0:0:0: [sdg] Write Protect is off
sd 5:0:0:0: [sdg] Mode Sense: 34 00 00 00
sd 5:0:0:0: [sdg] Assuming drive cache: write through

[code]....

View 5 Replies View Related

Hardware :: External HDD Won't Stay Mounted ?

May 14, 2011

My external hard drive randomly unmounts in the middle of file transfers.

The system is Debian Wheezy with sda as single-partition ext4. I have an INEO I-NA212-J USB 2.0 enclosure with 2xHDD single-partition ext2 which are recognized as sdb & sdc.

When files are transferred from the external to sda, the system will unmount the external drive at random times. When that happens, "fdisk -l" no longer reports sdb & sdc, but does show the drives as sdd & sde and they can be mounted. I have to reboot the machine to have it see the drives as sdb & sdc again.

When transferring from sda to the external, the unmounting is less frequent but I get file corruption. For example, a large directory seemed to transfer successfully, but the result showed as a single executable file and the displayed file properties were just long strings of numbers. Deleting the file did not reclaim the space.

There seems to be no pattern to the failure. I have checked for file size, number of files, system uptime, transfer time, etc. I have so far not seen it happen while there is no activity. The problem is the same whether there are 1 or 2 drives in the enclosure. However, I have used USB thumb drives and microdrives (both vfat) without problems.

For mounting, I have tried both "mount" and "pmount", and for file management both Xfe and Midnight Commander.

View 3 Replies View Related

Software :: Ubuntu Installed On External Hard Drive, Can't Startup Without External Hard Drive?

Jan 14, 2009

I have 2 ubuntu's: 1 on my ineternal hard drive, 1 on my external

When I startup without my ext drive =>GRUB error 21.

And when I plug it in I can choose: the standard ubuntu kernel is the one on my external, and the original one is listed under other...

I'd like to be able to startup without external hard drive and make the ubuntu on my internal drve the standard.

View 14 Replies View Related

Ubuntu :: Add More Space - C Drive Is Mounted And The E Drive Will Not Mount

Jan 19, 2011

I have just installed Xubuntu and suprisingly it did not ask me to create a partition within its installer like Ubuntu does. So now, I am left with 150mb of free space. I want to expand that amount. The problem is, I do not know where it has been installed on. I have a C and an E drive. Currently, the C drive is mounted and the E drive will not mount even if i press the mount button. Does anyone have a solution?

View 8 Replies View Related

Programming :: Execute External Program Using C?

Mar 30, 2011

Assume two applications, Application A and Application B. Both are written in C language.I had tried to use system() function in Application A to execute Application B. It success, but Application A cannot continue its own tasks before Application B exit. I want Application A to execute Application B, but Application A can continue its tasks without waiting for Application B to exit.

View 3 Replies View Related

General :: Upgrade Internal 2.5" Hard Drive Vs External Usb Hard Drive For An Old Laptop?

Jan 25, 2010

I got a dell inspiron 1501 laptop with a 80Gb sata drive what is the best solution to add data storage space for someone that love to have multiples operating systems at hand Note: I use mostly linux so I won't need to change my laptop for many years maybe ...

View 2 Replies View Related

General :: Is Ubuntu Like Windows Can Download Ubuntu To Flash Drive / External Hard Drive

Mar 8, 2011

Is Ubuntu like windows and can you download Ubuntu to a flash drive or external hard drive and if so what kind?

View 4 Replies View Related

Ubuntu Installation :: External Harddisk Is Not Mounted - Not Visible?

Apr 7, 2010

I use dual booting, vista ubuntu 9.10. I have just bought a new 1T external harddisk i have used it on windows to backup some files. Now I want to backup some documents in ubuntu, but the harddisk is not visible, I can't see it, ok I think the term in Linux is that it is not mounted. Is there something else one should do ?

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf959a599

[Code]...

View 4 Replies View Related

Ubuntu Installation :: USB Keys Or External Harddisk Can Not Be Mounted?

Apr 8, 2010

I tough that my computer could not mount external harddisk.Here is my mail about that subject.I use dual booting, vista ubuntu 9.10.I have just bought a new 1T external harddisk i have used it on windows to backup some files.Now I want to backup some documents in ubuntu, but the harddisk is not visible, I can't see it, ok I think the term in Linux is that it is not mounted..Disk /dev/sda: 640.1 GB, 640135028736 bytes255 heads, 63 sectors/track, 77825 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk identifier: 0xf959a599

Device Boot Start End Blocks Id System
/dev/sda1 1 1176 9437184 27 Unknown
/dev/sda2 * 1176 52188 409761792 7 HPFS/NTFS
/dev/sda3 52188 77826 205930496 7 HPFS/NTFS

View 1 Replies View Related

OpenSUSE Hardware :: How To Get 2 TB MYbook Essential External HD Mounted And Readable?

Jul 24, 2011

Is there anyway to get a 2 terabyte NTFS partition mounted in Suse Linux? Would be better to just mount if possible so I could use the storage for both my Linux and windows pcs.

View 2 Replies View Related

OpenSUSE Install :: 11.2 External Encrypted Harddrive Not Correctly Mounted?

Nov 14, 2009

i have an external harddrive which i encrypted scince opensuse 10.2 with luks. Now i installed opensuse 11.2 its impossible to me to mount this drive correctly.

the harddrive was recocnized in my former opensuse 11.0 correctly as luks encrypted and during installation yast installed the kernel module and encrypted the harddrive so that i regulay could mount it on boot by giving the password for that harddrive. Scince opensuse 11.2 however yast thinks this is an dmcrypted partitoon and tries to unlock the harddrive using dmcrypt which of course fails.

does somebody know how i can encrypt and mount the externeal drive automaticly?

i have made a backup of /etc before i made a new installation of opensuse 11.2. is the possible to use the old fstab entries for that after installing luks?

View 8 Replies View Related

Ubuntu Servers :: Mounted External Drives Keep Changing Designation

Mar 7, 2010

I have a headless 8.04 server with 2 USB drives attached. I'm trying to move everything off the 1.5TB drive onto a few 300GB drives (so I can then use LVM on the 1.5TB drive and move everything back onto LVs.)I check the drives using 'fdisk -l'. They show up as sdc1 and sdd1. I mount them and start a cp operation.When I run fdisk again, the drives are no longer sdc1 and sdd1. Now they are sde1 and sdf1 (and of course, they are no longer mounted.

What could be causing this and how do I fix it?I need to fix this ASAP because the 1.5 TB drive seems to be going bad. Every few seconds I hear a big "click" as though the head arms are smacking against a stop. (This is the 2nd brand new 1.5TB drive that has started doing this!)

View 5 Replies View Related

Ubuntu Servers :: Cron Job Backup - External HD No Longer Mounted

Dec 23, 2010

I'm running a cron job every night to dump a MySQL database to an external hard drive. It works, however when I check on it the following morning the external is no longer mounted and the XFS log file is corrupted. If I run

Code:
xfs_repair -L /dev/sdf1
It works, but then I get these issues:
Code:
XFS: Filesystem sdf1 has duplicate UUID - can't mount
I can reset the UUID, but it's difficult to have to do this every day.

View 2 Replies View Related

Debian :: External Mounted Harddisk Safely Umount Automatically?

Jun 1, 2010

Debian if I suspend the PC, will the external mounted harddisk safely umount automatically? I want to make sure that the integrity of my external HDD is not compromised while the PC goes in the suspend mode.

View 4 Replies View Related

General :: Backups To External USB Drive?

Mar 1, 2010

I have a small IT consulting business and I am finding many of my clients couldn't afford Microsoft solutions and thus, going without... So a revelation hit me that I could offer Linux solutions, its just that I'm not a Linux guru... So after much research and installations of nearly every latest Linux distro, I decided on ClearOS as a good option for my clients that just require a good File/Print server, firewall and VPN solution... Everything was going fine until I got to the point where I was trying to get it to do backups to a USB drive... ClearOS does not come with the ability to do such, so from further research I found that I could install Webmin to handle that task and that it would not break ClearOS... Great, its just that its not working... It says its working, but its not.

[Code]...

Next I hit the "Save and Backup Now" button to test it out... all says it goes good... But when I check the device, there's nothing saved to it...

So I create another "Filesystem backup", I select the FlexShare directory that I want backed up and this time I select a local directory for the backup to go to... I hit the "Save and Backup Now" button to test it out. all says it goes good... But once again when I check the directory, there's nothing saved to it.

View 1 Replies View Related







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