LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   executable doesn't work on 2.5" USB2.0 HD (https://www.linuxquestions.org/questions/linux-hardware-18/executable-doesnt-work-on-2-5-usb2-0-hd-372855/)

cyu021 10-13-2005 10:42 PM

executable doesn't work on 2.5" USB2.0 HD
 
Hi folks,

I bought a 2.5" 80G USB2.0 HD and partitioned it into two 40G partitions, NTFS and EXT3 respectively. I mount the EXT3 with the following command:
Code:

mount /dev/sda2 /mnt/usb2
I also made myself the owner of /mnt/usb2, thus, I am able to read, write and create files in /mnt/usb2. However, I encountered an odd problem when I was setting up a cross-compiling environment, that is, I can not do "make menuconfig" in /mnt/usb2. I got the following msg and the console just went freeze:
Code:

make menuconfig
rm -f include/asm-arm/arch include/asm-arm/proc
(cd include/asm-arm; ln -sf arch- arch; ln -sf proc- proc)
rm -f include/asm
( cd include ; ln -sf asm-arm asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/mnt/usb2/home/cyu021/Desktop/eos/research/implementation_dvs_io_rt/microtime/s3c2410/linux/scripts/lxdialog'
make[1]: Leaving directory `/mnt/usb2/home/cyu021/Desktop/eos/research/implementation_dvs_io_rt/microtime/s3c2410/linux/scripts/lxdialog'
/bin/sh scripts/Menuconfig arch/arm/config.in
Using defaults found in arch/arm/defconfig
Preparing scripts: functions, parsing............................................................................done.

Neither can I run any executable resides in /mnt/usb2, I got permission denied regardless I log in as a regular user or root (doing "su").

Here is some info about my working environment:
Code:

HW:
Acer Aspire 1680

cat /proc/version
Linux version 2.6.12-1-386 (horms@tabatha.lab.ultramonkey.org) (gcc version 4.0.2 20050917 (prerelease) (Debian 4.0.1-8)) #1 Tue Sep 27 12:41:08 JST 2005

lsusb
Bus 004 Device 002: ID 04b4:6830 Cypress Semiconductor Corp. USB-2.0 IDE Adapter
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 003: ID 04fc:0013 Sunplus Technology Co., Ltd
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000

dmesg | grep hd
Kernel command line: root=/dev/hda7 ro
    ide0: BM-DMA at 0x1860-0x1867, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1868-0x186f, BIOS settings: hdc:DMA, hdd:pio
hda: TOSHIBA MK6025GAS, ATA DISK drive
hdc: UJDA760 DVD/CDRW, ATAPI CD/DVD-ROM drive
hda: max request size: 128KiB
hda: 117210240 sectors (60011 MB), CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
Adding 1164672k swap on /dev/hda5.  Priority:-1 extents:1
EXT3 FS on hda7, internal journal
hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
ReiserFS: hda6: found reiserfs format "3.6" with standard journal
ReiserFS: hda6: using ordered data mode
ReiserFS: hda6: journal params: device hda6, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hda6: checking transaction log (hda6)
ReiserFS: hda6: Using r5 hash to sort names
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)

dmesg | grep sda
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: assuming drive cache: write through
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: assuming drive cache: write through
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
EXT3 FS on sda2, internal journal

Has anyone ever encountered this problem?
All comments/suggestions are welcomed.

Thanks in advanced,
James

valerie_tux 10-14-2005 12:30 PM

You will probably need to fix your /etc/fstab file, or add more parameters at the time mount which is "exec".
By default the drive is added in a manner where no executable files are allowed any permission. And no matter which user you run as it will not work. Here is a line from my fstab which might give you a hint as to what to do.

/dev/sda1 /usbdrive auto rw,noauto,user,exec 0 0

I am not sure how you'd do it from the command line :D

Hope this helps

cyu021 10-16-2005 07:53 AM

YUPIE! The "exec" part works smoothly.
You just saved me lots of trouble from moving data around all the time, thanks for the help :-)


All times are GMT -5. The time now is 04:13 AM.