LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 10-05-2006, 12:41 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
About USB enclosure


Hi folks,

FC5_64

Just install an USB enclosure (ATA HD)

# fdisk -l
did not find it.

Please advise how to get it installed. TIA

B.R.
satimis
 
Old 10-05-2006, 07:49 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
What does lsusb say?

Do dmesg or udevmonitor show any action when it's plugged in?

Are you sure the hard drive is working and formatted?
 
Old 10-05-2006, 08:59 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi David the H.

Tks for your advice.

Problem solved after running

# fdisk /dev/sdb
to remove partition.

Then ran
# mke2fs -j /dev/sdb

Now the USB enclosure can be detected whenever plugin

# cp /home/satimis/enclosure.txt /media/disk/
# ls /media/disk/
Code:
enclosure.txt  lost+found
It is now ok

As user
$ cp enclosure.txt /media/disk/
Code:
cp: cannot create regular file `/media/disk/enclosure.txt': Permission denied
I can't copy file on the USB enclosure but I can read it.

Where can I set the permission. TIA


Quote:
What does lsusb say?
# lsusb
bash: lsusb: command not found

Which package I need to install? TIA

Quote:
udevmonitor show any action when it's plugged in?
# udevmonitor
bash: udevmonitor: command not found

Which package I need to install? TIA

# yum list udev
Code:
Loading "installonlyn" plugin
Setting up repositories
core                                                                 [1/3]
core                      100% |=========================| 1.1 kB    00:00
updates                                                              [2/3]
updates                   100% |=========================| 1.2 kB    00:00
extras                                                               [3/3]
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 411 kB    00:05
updates   : ################################################## 1084/1084
Added 189 new packages, deleted 220 old in 3.89 seconds
primary.xml.gz            100% |=========================| 1.5 MB    00:10
extras    : ################################################## 5211/5211
Added 63 new packages, deleted 35 old in 6.62 seconds
Installed Packages
udev.x86_64                              084-13.fc5.2           installed
It is there?

B.R.
satimis

Last edited by satimis; 10-05-2006 at 09:00 PM.
 
Old 10-06-2006, 02:34 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Glad to hear you got it working.

Permissions can be set during mounting or in /etc/fstab, usually by adding the 'user' option. But if you use automounting, it probably will require placing options somewhere else, and I'm not sure what you'd need to do.

(That's one current annoyance with Linux; there's no single, standard way to automount devices right now.)

lsusb is part of usbutils. At least that's the package name under Debian.

You'll only have udevmonitor if you're using udev, which most recent systems do, but older ones may not. It can only be run as root by default in any case (/usr/sbin/udevmonitor). When running, it displays what's happening as you add or remove devices and the /dev entries that get created or removed in response.

Last edited by David the H.; 10-06-2006 at 02:36 AM.
 
Old 10-07-2006, 06:20 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi David the H.,

Tks for your advice.

Quote:
Permissions can be set during mounting or in /etc/fstab, usually by adding the 'user' option. But if you use automounting, it probably will require placing options somewhere else, and I'm not sure what you'd need to do.
I'll use the USB enclosure as portatble storage device on WindowsPC and LinuxPC, but having not figured out following points;

1) FAT32 is running on My WindowsPC, therefore I'm prepared to format USB enclosure as FAT32 system. However can files on ext2/ext3 system be copied/edited on FAT32 system?

2) Can I run following commands to format the enclosure without going to WindowPC?
Code:
# mkfs.vfat -F 32 /dev/sdb
TIA


Quote:
lsusb is part of usbutils. At least that's the package name under Debian.
I have the package installed.

# lsusb
Code:
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 045e:00b9 Microsoft Corp. Wireless Optical Mouse 3.0
Bus 001 Device 001: ID 0000:0000

About "udevmonitor"
# which udevmonitor
Code:
/usr/sbin/udevmonitor
It is already running.


# udevmonitor
Code:
udevmonitor prints the received event from the kernel [UEVENT]
and the event which udev sends out after rule processing [UDEV]
-
It only hung here.

# udevmonitor --env
Code:
udevmonitor prints the received event from the kernel [UEVENT]
and the event which udev sends out after rule processing [UDEV]
-
It also hung here

Others noted with tks.

B.R.
satimis
 
  


Reply


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
External enclosure with USB connection satimis Linux - Hardware 1 04-09-2006 07:20 PM
USB Enclosure & Linux GNewbie Linux - Hardware 5 12-24-2005 04:42 AM
USB hard drive enclosure pafrica Linux - Hardware 2 10-16-2005 11:27 PM
Help with FC3 + LG DVD DL Burner in USB enclosure fwelland Linux - Hardware 3 05-28-2005 08:55 PM
PCMCIA, USB, hd/cd-enclosure install? nycace36 Debian 0 11-19-2004 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:46 AM.

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