PDA

View Full Version : To mount USB memory stick (MAC format) on KNOPPIX



leone25s
11-22-2004, 06:21 AM
Hi, all,

I want to ask a question on how to mount USB memory stick (in MAC format) on KNOPPIX. There is an old page about it, but the solution is just formate USB memory to VFAT or NTFS. The link is at:
http://www.knoppix.net/forum/viewtopic.php?t=3575

Well, as we know, it is just to type this command line to mount USB stick
mount /dev/sda /mnt/sda
or add this line in /etc/fstab and mount /sda
/dev/sda /sda auto noauto,user 0 0

This should work if the file type of the stick is vfat or ntfs. The problem is that there are MAC users. They don't want to format anything to MS-compatible formate. :(

Could anyone tell me how to solve this problem?

/Leone

OErjan
11-22-2004, 06:12 PM
the fileformats of mac should be suported, perhaps not the one used for OSX, but i think so.
using
mount -t auto /dev/sdXY /mnt/sdXY should work.
or perhaps

mount -t auto /dev/sdX /mnt/sdX should work.
atleast if you modprobe for the module to read the filesystem in question, your chanses are atleast good to great to get it working.

modprobe hfs
or

modprobe hfsplus
you could try a few others i guess.

leone25s
11-22-2004, 10:20 PM
mount -t auto /dev/sda /mnt/sda works.

In fact, the system showed me a small trick. Before I upgraded it, the device for the USB stick was /dev/sda; for some unknown reason (maybe I pluged in my friend's on the other USB port), dmesg says:



scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: USB 2.0 Model: Mobile Disk Rev:
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 253952 512-byte hdwr sectors (130 MB)
sda: Write Protect is off
sda: sda1
WARNING: USB Mass Storage data integrity not assured


Now I just mount it on /dev/sda1. Still, it is bit weird why it went to sda1. ... :?

Markus
11-22-2004, 10:56 PM
Now I just mount it on /dev/sda1. Still, it is bit weird why it went to sda1. sda is the whole disk, sda1 is the formatted partition. Same as hda is the first hd and hda1 the first partition on it.

leone25s
11-22-2004, 11:07 PM
sda is the whole disk, sda1 is the formatted partition. Same as hda is the first hd and hda1 the first partition on it.

Thanks. Now I understand. :-)

OErjan
11-23-2004, 06:50 PM
told you it would work:-)

eon
11-24-2004, 05:00 AM
I have been following this thread and hope one of you can help.

I have hfs & hfsplus on my knoppix 3.4 I can modprobe and then lsmod and see that they are installed. I am trying to mount cd's that are formated for hfs & hfsplus and whatever I do to fstab I still get

Could not mount device.
The reported error was:
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems

My dvd drive works fine with iso9660. I have tried every thing I could think of in editing fstab but I still get the above error message.

OErjan
11-24-2004, 08:10 PM
not many CD's are hfs, try iso9660, if that doesn't work i have no idea. will ask my local MAC guru, he uses bsd and Linux aswell so...

eon
11-24-2004, 09:15 PM
Mac CD's are hfs & hfs+ I have found out. And I can get hfsutils to see the disc but I can't actually view it or do anything with it :(
I've been using the "hmount" command and the commandline does indicate that the disk is recognized:
john@ixan:~$ hmount /dev/scd0
/dev/scd0: contains 1 HFS partition
Volume name is "iPhoto Library" (locked)
Volume was created on Wed Dec 31 19:56:08 1969
Volume was last modified on Wed Dec 31 19:56:08 1969
Volume has 0 bytes free
john@ixan:~$ hls /dev/scd0
hls: "/dev/scd0": no such file or directory
john@ixan:~$ hpwd /dev/scd0
Usage: hpwd
john@ixan:~$ hpwd
iPhoto Library:
john@ixan:~$ cd iPhoto Library
bash: cd: iPhoto: No such file or directory
john@ixan:~$ hpwd
iPhoto Library:
I need to look at the manual some more....

eon
11-24-2004, 10:15 PM
I guess I could create a new topic but I don't want to be accused of spamming the list.

I have had some slight progress-I think..

This is my fstab entry for the dvd/cdrom device:
# Added by JY 11-23-04
/dev/scd0 /mnt/hfs defaults,ro,noauto,users,noexec 0 0

and this is the terminal output:
root@ixan:~# hmount /dev/scd0
/dev/scd0: contains 1 HFS partition
Volume name is "iPhoto Library" (locked)
Volume was created on Wed Dec 31 19:56:08 1969
Volume was last modified on Wed Dec 31 19:56:08 1969
Volume has 0 bytes free

But when I click on the desktop icon to view the files I now get this:
Could not mount device.
The reported error was:
mount: only root can mount /dev/scd0 on /mnt/hfs

I also don't know what those dates "1969" are about since the files were created this year. Maybe that's nothing though. I'll keep working on it.

Markus
11-24-2004, 10:40 PM
How about:
/dev/scd0 /mnt/hfs auto defaults,ro,noauto,users,noexec,umask=000 0 0
or:
/dev/scd0 /mnt/hfs hfs defaults,ro,noauto,users,noexec,umask=000 0 0

eon
11-25-2004, 02:56 AM
Thanks for trying and I don't mean to be a failure really :(
I had tried the umask=000 and with 4 0's too. I tried those entries in fstab to no avail :( :( here's the results:

"/dev/scd0 /mnt/hfs auto defaults,ro,noauto,users,noexec,umask=000 0 0"
in fstab gives this:

Could not mount device.
The reported error was:
mount: I could not determine the filesystem type, and none was specified

and " /dev/scd0 /mnt/hfs hfs defaults,ro,noauto,users,noexec,umask=000 0 0"
gives this:

Could not mount device.
The reported error was:
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems

Meanwhile back at the terminal I get this:


john@ixan:~$ hmount /dev/scd0
/dev/scd0: contains 1 HFS partition
Volume name is "MacAddict 29" (locked)
Volume was created on Wed Oct 7 17:01:31 1998
Volume was last modified on Thu Nov 5 14:55:59 1998
Volume has 0 bytes free
john@ixan:~$ ls -l /dev/hdc
brwxrw---- 1 root disk 22, 0 Apr 14 2001 /dev/hdc

Is it really hopeless to mount or I should say access hfs on x86 linux??

Follow-up: Maybe this is a clue, but I'm not sure, anyway I'm using a desktop device icon in kde and I can select the entry I created for hfs in the device tab, but I noticed that after I click on the icon to open and get the error messages above when I look at the device in properties it has defaulted back to the /dev/scd0 /mnt/dvd that the knoppix install set up.