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 11-27-2006, 10:50 AM   #1
Xswitch
Member
 
Registered: Jul 2003
Distribution: Ubuntu, Debian
Posts: 139

Rep: Reputation: 15
Mounting USB HDD (New Enclosure)


Here's what I did:

# fdisk /dev/sdb


Command (m for help): p

Disk /dev/sdb: 30.7 GB, 30750031872 bytes
64 heads, 32 sectors/track, 29325 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes



Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4):
Value out of range.
Partition number (1-4): 1
Partition 1 is already defined. Delete it before re-adding it.

Command (m for help): w
The partition table has been altered!

# mkfs.ext3 -v /dev/sdb1

I'm using SuSE 10. When I double-click on "My Computer", the drives shows up, but I'm unable to mount. The error that I get is:

mount: can't find /dev/sdb1 in /etc/fstab or /etc/mtab

How do I properly edit these files in order to be able to use this hard drive?

I tried mounting by doing the following:
# mount /dev/sdb1 /mnt/hd ... This gave me an error.. mnt/hd does not exist.
 
Old 11-27-2006, 10:57 AM   #2
Xswitch
Member
 
Registered: Jul 2003
Distribution: Ubuntu, Debian
Posts: 139

Original Poster
Rep: Reputation: 15
WOW!!!

I just unplugged it, and then plugged it back in, and its working. It now says that I have no permissions.

here's my fstab:

/dev/sda2 / reiserfs acl,user_xattr 1 1
/dev/sda1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/cdrom /media/cdrom subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
none /subdomain subdomainfs noauto 0 0
/dev/cdrom2 /media/cdrom2 subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

Last edited by Xswitch; 11-27-2006 at 10:59 AM.
 
Old 11-27-2006, 01:14 PM   #3
Xswitch
Member
 
Registered: Jul 2003
Distribution: Ubuntu, Debian
Posts: 139

Original Poster
Rep: Reputation: 15
WOW AGAIN!!!

I kept reading, and found out that vfat would better suit my needs.

Here's what I did.

# umount /dev/sdb1

# /sbin/mkfs -t vfat /dev/sdb1

# mount /dev/sdb1


WORKED... I was then able to write to the drive...
 
Old 11-27-2006, 07:32 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Congrats on solving the problem and thanks for posting back with the update
 
  


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
USB HDD Enclosure Xswitch Ubuntu 3 11-22-2006 11:47 AM
IDE HDD enclosure linuxmandrake Linux - Hardware 9 05-27-2006 11:50 AM
Trouble mounting hdd enclosure Eggroll822 Linux - Hardware 5 02-13-2006 02:13 AM
external enclosure for hdd jcwalnut Linux - Hardware 2 09-22-2004 03:58 PM
HFS HDD+USB drive enclosure JoeyJoeJo Linux - Hardware 8 08-19-2003 12:27 PM


All times are GMT -5. The time now is 08:25 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration