PDA

View Full Version : How To needed - USB hdd on CC



plafitracer
2007-07-14, 14:39
Hi all,

Being an absolute Linux / Clarkconnect newbie, I could use a little help to find my 500GB USB harddisk, that I have a bit of music on.

I have installed CC and SS as per the fine instructions found here: http://www.ulverston.myzen.co.uk/mini-itx/index.htm

I just can't figure out how to get my USB disk mounted.

Please post step by step instructions, thanks.

bukharin
2007-07-14, 17:51
Type dmesg, and look for an entry like this after your plug in the hard disk:


usb 1-1: new high speed USB device using ehci_hcd and address 7
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access WD 3200JB External 0108 PQ: 0 ANSI: 0
SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
sdb: sdb1
sd 1:0:0:0: Attached scsi disk sdb
usb-storage: device scan complete

From the above, my hard disk is /dev/sdb, and sdb1 is the partition with all of my data.

Once you have that information, you need to mount that partition. First create a mountpoint - eg, /mnt/music:


mkdir /mnt/music

Then mount the drive there:

mount /dev/sdb1 /mnt/music

If this works, you can look into mount-time options and so on.

Good luck!

Havoc
2007-07-15, 04:07
Sometimes you need to add the filesystem in the mount command. The above looks then like this:
"mount -t vfat /dev/sdb1 /mnt/music"

Vfat is used for all fat types. If it is "ext2" or "ext3", then use that.

plafitracer
2007-07-15, 10:18
I thank you, gentlemen, for your answers that really works - most of my woes are now over...

Havoc
2007-07-15, 11:39
If you want it to be there each time you start your server you need to add a line in /etc/fstab. This line will look like



/dev/sdb1 /mnt/music vfat notail,user 0 0

Replace /dev/sdb with your disk id, vfat with your filesystem and /mnt/music with the place in your tree where you want the disk to appear.

daveaphillips
2007-07-15, 14:13
Hello mate,

Not sure if you are still having troubles...

http://wiki.slimdevices.com/index.cgi?MusicOnLinuxUSBHardDrives

I'm also a new Linux user, but with Ubuntu, and about a week ago got cooking with SS thanks to this wiki. I don't know how similar our OS are, but maybe it will help.

Cheers,

Dave