Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-13-2005, 11:42 PM   #1
Registered: Oct 2004
Posts: 43

Rep: Reputation: 15
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:
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:
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/
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:
Acer Aspire 1680

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

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
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,

Last edited by cyu021; 10-13-2005 at 11:52 PM.
Old 10-14-2005, 01:30 PM   #2
Registered: Aug 2003
Distribution: Debian
Posts: 150

Rep: Reputation: 15
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

Hope this helps
Old 10-16-2005, 08:53 AM   #3
Registered: Oct 2004
Posts: 43

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I use "" for building an executable program? wuzhong Linux - Networking 1 10-06-2004 11:00 AM
Trouble making the "pmandel" executable in MPICH jonhoward42 Linux - Software 1 05-10-2004 05:35 AM
Compile errors "can't create executable"! bruno buys Conectiva 5 12-11-2003 12:21 PM
USB2.0 and Mandrake 9.1 "ehci-hcd" driver jmcollin92 Linux - Hardware 0 10-23-2003 10:56 AM
Pre-Build Executable "No Such File or Directory" problem Archeress Linux - General 2 08-17-2002 09:26 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration