[opensuse] mounting a mac os drive in opensuse
I am trying to mount a mac os drive (from my son's broken mac) into linux to get the data off of it. I actually successfully did this with the same drive about 6 months ago when I was using 11.4. I installed hfsutils, used fdisk to check which device the drive is when I plugged it in, and it is /dev/sda1. So I made the directory /mnt/macdrive and then as root typed the following with the following result: linux-aw90:/ # mount -t hfsplus /dev/sda1 /mnt/macdrive mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so so I checked dmesg | tail and I get this for the last couple of lines: [ 874.947485] hfs: unable to find HFS+ superblock [ 899.247767] SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=48:5b:39:f3:76:92:c0:3f:0e:7e:fa:f9:08:00 SRC=192.168.0.1 DST=192.168.0.151 LEN=78 TOS=0x00 PREC=0x00 TTL=64 ID=398 DF PROTO=UDP SPT=1025 DPT=137 LEN=58 I don't follow that last line except that I see a mac address, my default gateway, and my ip address. Don't understand the other things. So I was thinking that maybe it is hfs and not hfs+, so I tried to mount it as hfs instead: linux-aw90:/ # mount -t hfs /dev/sda1 /mnt/macdrive mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so same result. Any ideas? -- G.O. Box #1: 12.1 | KDE 4.8.2 | AMD Athlon X3 | 64 | nVidia C61 GeForce 7025 | 4GB RAM Box #2 12.1 | KDE 4.7.2 | Pentium 4 (2core) | 32 | Intel 82915G | 2GB RAM Lap #1: 12.1 | KDE 4.8.2 | Core2 Duo T8100 | 64 | Intel 965GM | 3GB RAM Lap #2: 12.1 | KDE 4.8.2 | Core Duo T2400 | 32 | NVIDIA Quadro NVS 120 | 2GB RAM learning openSUSE and loving it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/06/12 08:13, George Olson pecked at the keyboard and wrote:
I am trying to mount a mac os drive (from my son's broken mac) into linux to get the data off of it. I actually successfully did this with the same drive about 6 months ago when I was using 11.4.
I installed hfsutils, used fdisk to check which device the drive is when I plugged it in, and it is /dev/sda1. So I made the directory /mnt/macdrive and then as root typed the following with the following result:
linux-aw90:/ # mount -t hfsplus /dev/sda1 /mnt/macdrive mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
so I checked dmesg | tail and I get this for the last couple of lines:
[ 874.947485] hfs: unable to find HFS+ superblock [ 899.247767] SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=48:5b:39:f3:76:92:c0:3f:0e:7e:fa:f9:08:00 SRC=192.168.0.1 DST=192.168.0.151 LEN=78 TOS=0x00 PREC=0x00 TTL=64 ID=398 DF PROTO=UDP SPT=1025 DPT=137 LEN=58
I don't follow that last line except that I see a mac address, my default gateway, and my ip address. Don't understand the other things.
So I was thinking that maybe it is hfs and not hfs+, so I tried to mount it as hfs instead:
linux-aw90:/ # mount -t hfs /dev/sda1 /mnt/macdrive mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
same result. Any ideas?
Try mounting without specifying the filesystem type. Linux is usually smart enough to figure it were as we mere mortals sometimes get it wrong. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/07/2012 03:30 AM, Ken Schneider - openSUSE wrote:
On 05/06/12 08:13, George Olson pecked at the keyboard and wrote:
Try mounting without specifying the filesystem type. Linux is usually smart enough to figure it were as we mere mortals sometimes get it wrong.
I did that, and it mounted. Thanks! Weird thing was, the mac drive actually has 2 partitions, and I finally figured out using yast expert partitioner that it was sda2 that I need to mount for the data. The partition table is of type GPT, and there is a warning that says fdisk doesn't support GPT. I guess that is why fdisk would not show the entire partition table for this drive. It only showed /dev/sda1, and /dev/sda2 wasn't even listed. the reason #mount -t hfsplus /dev/sda1 /mnt/macdrive didn't work was because /dev/sda1 is some kind of mac boot partition format and is not hfs+. -- G.O. Box #1: 12.1 | KDE 4.8.2 | AMD Athlon X3 | 64 | nVidia C61 GeForce 7025 | 4GB RAM Box #2 12.1 | KDE 4.7.2 | Pentium 4 (2core) | 32 | Intel 82915G | 2GB RAM Lap #1: 12.1 | KDE 4.8.2 | Core2 Duo T8100 | 64 | Intel 965GM | 3GB RAM Lap #2: 12.1 | KDE 4.8.2 | Core Duo T2400 | 32 | NVIDIA Quadro NVS 120 | 2GB RAM learning openSUSE and loving it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 5/6/12 6:22 PM, George Olson wrote:
On 05/07/2012 03:30 AM, Ken Schneider - openSUSE wrote:
I did that, and it mounted. Thanks! Weird thing was, the mac drive actually has 2 partitions, and I finally figured out using yast expert partitioner that it was sda2 that I need to mount for the data. The partition table is of type GPT, and there is a warning that says fdisk doesn't support GPT. I guess that is why fdisk would not show the entire partition table for this drive. It only showed /dev/sda1, and /dev/sda2 wasn't even listed.
the reason #mount -t hfsplus /dev/sda1 /mnt/macdrive didn't work was because /dev/sda1 is some kind of mac boot partition format and is not hfs+.
You are correct. The first partition is an EFI Boot partition and it is actually FAT formatted. Parted does support GUID partitions and would show all of the partitions. This is likely what YaST is using in the backend anyway. For future reference, the second line you received when checking dmesg is unrelated:
[ 899.247767] SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=48:5b:39:f3:76:92:c0:3f:0e:7e:fa:f9:08:00 SRC=192.168.0.1 DST=192.168.0.151 LEN=78 TOS=0x00 PREC=0x00 TTL=64 ID=398 DF PROTO=UDP SPT=1025 DPT=137 LEN=58
This is just output from your firewall dropping some traffic.
participants (3)
-
George Olson
-
Ken Schneider - openSUSE
-
Steven Susbauer