From: Ryan N. <ne...@mi...> - 2006-03-09 20:24:59
|
I've partitioned my drive into two hfs+ partitions and one linux swap partition. I've put a fresh ubuntu distribution on the linux drive and moved all the appropriate stuff to /efi/. It boots the kernel but fails to mount the hard disk (any of them). I'm now booting off the Live CD and seeing if I can find anyway to mount any of my partitions. I find that whether they're hfs+, or I use parted to reformat them as ext2, a simple: mount /dev/sda<1-4> /location ... doesn't do it for me. What's the trick to get these GPT formatted drives mounted under linux? Thanks, -Ryan |
From: Miguel F. <mig...@gm...> - 2006-03-10 02:15:19
|
Hi, On 3/9/06, Ryan Newton <ne...@mi...> wrote: > I've partitioned my drive into two hfs+ partitions and one linux swap > partition. I've put a fresh ubuntu distribution on the linux drive > and moved all the appropriate stuff to /efi/. It boots the kernel > but fails to mount the hard disk (any of them). > > I'm now booting off the Live CD and seeing if I can find anyway to > mount any of my partitions. I find that whether they're hfs+, or I > use parted to reformat them as ext2, a simple: > > mount /dev/sda<1-4> /location > > ... doesn't do it for me. > > What's the trick to get these GPT formatted drives mounted under linux? > Be shure the kernel can see your drive (dmesg|grep sda) first, then: You need to have support GPT partition style in the kernel. Also check if the disk partitions are listed in file: /proc/partitions, if not...means kernel isn't seeing the partitions, which should mean kernel doesn't support GPT. Cannot test what I typed since I lack a GPT formated drive. > Thanks, > -Ryan > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Mactel-linux-users mailing list > Mac...@li... > https://lists.sourceforge.net/lists/listinfo/mactel-linux-users > -- Miguel Sousa Filipe |
From: Ryan N. <ne...@mi...> - 2006-03-11 05:56:39
|
Thanks Miguel! (And Toshimitsu, the below should help you as well.) dmesg | grep sda did show that it detected the drive, and further, the partions showed up in /proc/partitions. However, I still got the annoing "(mount: /dev/sda2 already mounted or /mnt/hd busy)" error. But as a result of looking at /proc/ partitions, I noticed that there were also corresponding /dev/dm/<n> devices. I don't really know what these are, but they mounted! Managed to mount ext2 partitions as well as hfs/hfsplus partitions. I'm happy, -Ryan On Mar 9, 2006, at 9:15 PM, Miguel Filipe wrote: > Hi, > > On 3/9/06, Ryan Newton <ne...@mi...> wrote: >> I've partitioned my drive into two hfs+ partitions and one linux swap >> partition. I've put a fresh ubuntu distribution on the linux drive >> and moved all the appropriate stuff to /efi/. It boots the kernel >> but fails to mount the hard disk (any of them). >> >> I'm now booting off the Live CD and seeing if I can find anyway to >> mount any of my partitions. I find that whether they're hfs+, or I >> use parted to reformat them as ext2, a simple: >> >> mount /dev/sda<1-4> /location >> >> ... doesn't do it for me. >> >> What's the trick to get these GPT formatted drives mounted under >> linux? >> > > Be shure the kernel can see your drive (dmesg|grep sda) first, then: > > You need to have support GPT partition style in the kernel. > Also check if the disk partitions are listed in file: > /proc/partitions, if not...means kernel isn't seeing the partitions, > which should mean kernel doesn't support GPT. > > Cannot test what I typed since I lack a GPT formated drive. > > >> Thanks, >> -Ryan >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the >> live webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=110944&bid=241720&dat=121642 >> _______________________________________________ >> Mactel-linux-users mailing list >> Mac...@li... >> https://lists.sourceforge.net/lists/listinfo/mactel-linux-users >> > > > -- > Miguel Sousa Filipe |
From: Toshimitsu T. <t_t...@db...> - 2006-03-11 06:55:59
|
Hi, Ryan. Thank you. I succeeded in it. # ,mkdir /mnt/hd # mount -t hfsplus /dev/dm/1 /mnt/hd On 2006/03/11, at 14:56, Ryan Newton wrote: > Thanks Miguel! > > (And Toshimitsu, the below should help you as well.) > > dmesg | grep sda did show that it detected the drive, and further, > the partions showed up in /proc/partitions. > > However, I still got the annoing "(mount: /dev/sda2 already mounted > or /mnt/hd busy)" error. But as a result of looking at /proc/ > partitions, I noticed that there were also corresponding /dev/dm/ > <n> devices. > > I don't really know what these are, but they mounted! Managed to > mount ext2 partitions as well as hfs/hfsplus partitions. > > I'm happy, > -Ryan -- Toshimitsu Tanaka t_t...@db... http://toshi3.cocolog-nifty.com/blog/ |
From: Miguel F. <mig...@gm...> - 2006-03-11 17:18:16
|
Hi, thats weird, those "block devices" are "device mapper" devices.. I'm curious to know why did the kernel uses device mapper to mount regular partitions.. More information about what it "device mapper" and its purpose here: http://sourceware.org/dm/ http://www.tldp.org/HOWTO/LVM-HOWTO/index.html best regards, On 3/11/06, Toshimitsu Tanaka <t_t...@db...> wrote: > Hi, Ryan. > > Thank you. > I succeeded in it. > > # ,mkdir /mnt/hd > # mount -t hfsplus /dev/dm/1 /mnt/hd > > On 2006/03/11, at 14:56, Ryan Newton wrote: > > Thanks Miguel! > > > > (And Toshimitsu, the below should help you as well.) > > > > dmesg | grep sda did show that it detected the drive, and further, > > the partions showed up in /proc/partitions. > > > > However, I still got the annoing "(mount: /dev/sda2 already mounted > > or /mnt/hd busy)" error. But as a result of looking at /proc/ > > partitions, I noticed that there were also corresponding /dev/dm/ > > <n> devices. > > > > I don't really know what these are, but they mounted! Managed to > > mount ext2 partitions as well as hfs/hfsplus partitions. > > > > I'm happy, > > -Ryan > -- > Toshimitsu Tanaka > t_t...@db... > http://toshi3.cocolog-nifty.com/blog/ > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Mactel-linux-users mailing list > Mac...@li... > https://lists.sourceforge.net/lists/listinfo/mactel-linux-users > -- Miguel Sousa Filipe |
From: Ryan N. <ne...@mi...> - 2006-03-11 18:48:59
|
Yes, with this trick I was able to hack something together that lets me run linux satisfactorily. (I actually needed this, because the compiler I'm using for my work doesn't support Mac/i386 yet.) But I still have to boot of the live CD and then chroot or do some other nasty trick. The reason being that this /dev/dm/<n> solution doesn't seem to work for me when booting off the internal rather than the live CD. I thought it was the same kernel, but I can't get root=/ dev/dm/2 in elilo.conf to work. Oh well, good enough for now until someone makes a more complete release for this platform. -Ryan On Mar 11, 2006, at 1:55 AM, Toshimitsu Tanaka wrote: > Hi, Ryan. > > Thank you. > I succeeded in it. > > # ,mkdir /mnt/hd > # mount -t hfsplus /dev/dm/1 /mnt/hd > > On 2006/03/11, at 14:56, Ryan Newton wrote: >> Thanks Miguel! >> >> (And Toshimitsu, the below should help you as well.) >> >> dmesg | grep sda did show that it detected the drive, and further, >> the partions showed up in /proc/partitions. >> >> However, I still got the annoing "(mount: /dev/sda2 already >> mounted or /mnt/hd busy)" error. But as a result of looking at / >> proc/partitions, I noticed that there were also corresponding /dev/ >> dm/<n> devices. >> >> I don't really know what these are, but they mounted! Managed to >> mount ext2 partitions as well as hfs/hfsplus partitions. >> >> I'm happy, >> -Ryan > -- > Toshimitsu Tanaka > t_t...@db... > http://toshi3.cocolog-nifty.com/blog/ > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the > live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Mactel-linux-users mailing list > Mac...@li... > https://lists.sourceforge.net/lists/listinfo/mactel-linux-users |
From: Toshimitsu T. <t_t...@db...> - 2006-03-10 10:01:07
|
Hi, On 2006/03/10, at 5:24, Ryan Newton wrote: > I've partitioned my drive into two hfs+ partitions and one linux > swap partition. I've put a fresh ubuntu distribution on the linux > drive and moved all the appropriate stuff to /efi/. It boots the > kernel but fails to mount the hard disk (any of them). > > I'm now booting off the Live CD and seeing if I can find anyway to > mount any of my partitions. I find that whether they're hfs+, or I > use parted to reformat them as ext2, a simple: > > mount /dev/sda<1-4> /location > > ... doesn't do it for me. > > What's the trick to get these GPT formatted drives mounted under > linux? I tried live cd on iMac. # mkdir /mnt/hd # mount -t hfsplus /dev/sda2 /mnt/hd The ubuntu 20060301 can mount internal HD,but the ubuntu 20060306 can NOT mount internal HD. (mount: /dev/sda2 already mounted or /mnt/hd busy) What is the difference between 20060301 and 20060306? -- Toshimitsu Tanaka t_t...@db... http://toshi3.cocolog-nifty.com/blog/ |