 |
 |
mounting external hd
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2002
Location: Santa Claus
Status:
Offline
|
|
I can't seem to figure this out, and I'm assuming it's extremely simple, but the usual linux help channels confuse me beyond measure, so I figured somebody here could help me.
I have a successful install of YDL 2.2 (Intranet/Internet Server, no X window or any GUI). I also have a SCSI hard drive connected to it, ID 4, which I have initialized as HFS in the MacOS. My question is, how the hell do I access it from Linux?
|

¬ thinking takes a lot you see more than many ask of me
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Montreal
Status:
Offline
|
|
You have to edit the file /etc/fstab. For a zip drive, it would be "/dev/sda /mnt/zip hfs rw,noauto, user 0 0". Replace sda by your disk (i don't remember what it is for scsi disk) and zip by the personal name of your disk. Then in the terminal, you type "mount -t hfs /dev/your disk /mnt/name of disk".
You can create a folder (name of disk) in "mnt" directory and put an alias of it on the desktop. Maybe there's a utility in ydl that manage the disk once you have edit the fstab file. I run Mandrake on my G4, so i'm not to familiar with ydl.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Apr 2002
Location: England
Status:
Offline
|
|
Just to flesh the last reply out a bit...
You don't need to edit fstab for a one-off mount, but you do if you want to be able to mount disks as a user, or have them automount on startup.
with the edited fstab, you would only need to type mount /mnt/zip or mount /dev/sda to get it to mount.
anyway, the drive should be /dev/sda1 (first partition on first scsi disk) you can check by looking at what the system sees on startup, if it goes past too quickly, you can type dmesg once you log in to give you the info, and then scroll back up, or pipe it to more, or something similar.
zips generally don't have a partition table on them, so you just mount the device.
The device will be something different (like /dev/scsi/bus0/disk0/part1) if you have devfs, most people don't.
|
|
Secret
4 Macs, 6 Amigas, 3 SparcStations, an Atari ST, an Acorn, and N+1 PCs.
I'm such a geek.
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2002
Location: Santa Claus
Status:
Offline
|
|
Hmmm ..... I'm getting closer, but not quite there.
In the dmesg, I read "Attached scsi disk sdc at scsi2, channel 0, id 4, lun 0" ... this is the disk which I wish to mount
Back in the terminal, edited fstab ... added line "/dev/sdc1 /mnt/fwb hfs rw,noauto,user 0 0"
At the command, "mkdir /mnt/fwb"
Then
"mount -t hfs /dev/sdc1 /mnt/fwb"
and I get back ...
"mount: wrong fs type, bad option, bad superblock on /dev/sdc1, or too many mounted file systems"
Is it possible that it's formatted incorrectly? If so, how do I reformat it?
|

¬ thinking takes a lot you see more than many ask of me
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Apr 2002
Location: England
Status:
Offline
|
|
there are two potential causes of this problem, one is that you formatted with HFS+, the other is that Linux can't handle the Mac partition table, It's been a while since I ran Linux on a Mac, so my memory is somewhat hazy on the specifics.
anyway, to check how the disk is partitioned (it's entirely possible that what you want to mount has some partition number other than 1) you'll have to look at it using some kind of partition table editor, usually I'd use fdisk, but, my recollection of the matter is that the standard version of fdisk isn't able to handle mac partitioning properly, this may be different for YDL though, I was using Debian, and on a 68k machine.
in any case, typing "fdisk /dev/sdc" can't hurt as long as you remember not to write the partition table, alternatively there's cfdisk, or disk druid, though the latter isn't always installed.
|
|
Secret
4 Macs, 6 Amigas, 3 SparcStations, an Atari ST, an Acorn, and N+1 PCs.
I'm such a geek.
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|