Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved/workaround]Using partition map labels to mount?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sat Oct 08, 2005 12:36 pm    Post subject: [solved/workaround]Using partition map labels to mount? Reply with quote

Hi guys!

do you know a way, to use the labels set when partitioning the disk of your mac with mac-fdisk for mount?
the partitions numbers are resorted every time you changed something, split a parttition or something... I did this on a few times in a row the last days and it's pretty confusing..
yesterday evening I forgot at least 3 times to update the root-entry in yaboot.conf or run ybin, just to realize after this. that I still didn't update my fstab :roll:

I searched the forums (probably with the wrong keywords ^^), the mount and the mac-fdisk manpage and googled but didn't find anything about mount using the partition map's labels...

so, nothing important, but maybe someone knows it

c yas!


Last edited by Cenrim on Thu Nov 17, 2005 8:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
zeekec
n00b
n00b


Joined: 24 Feb 2004
Posts: 56
Location: Athens, GA, USA

PostPosted: Mon Oct 10, 2005 1:47 pm    Post subject: Reply with quote

I think the command you're looking for is "e2label." It will allow you to use labels in fstab instead of device entries. It won't help with yaboot, but you won't have to keep updating you're fstab.

Erik
_________________
Against stupidity the very gods
Themselves contend in vain.
-Johann Christoph Friedrich von Schiller (1801)
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Wed Oct 12, 2005 10:37 pm    Post subject: Reply with quote

no, didn't mean filesystem labels
I can label ext3, but not HFS+
what I mean is what is displayed the name column of mac-fdisk:
Code:
 # mac-fdisk -l /dev/hda                                                                                             
/dev/hda
        #                    type name                  length   base      ( size )  system
/dev/hda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap bootstrap               1600 @ 64        (800.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 gentoo-boot           409600 @ 1664      (200.0M)  Linux native
/dev/hda4         Apple_UNIX_SVR2 gentoo-root         20561920 @ 411264    (  9.8G)  Linux native
/dev/hda5               Apple_HFS OS_X                20971520 @ 20973184  ( 10.0G)  HFS
/dev/hda6               Apple_HFS Darwin              10485760 @ 41944704  (  5.0G)  HFS
/dev/hda7         Apple_UNIX_SVR2 gentoo-home         10485760 @ 52430464  (  5.0G)  Linux native
/dev/hda8               Apple_HFS data                54294016 @ 62916224  ( 25.9G)  HFS

Block size=512, Number of Blocks=117210240
DeviceType=0x0, DeviceId=0x0

there is a label and it should be possible to use it.. :?
Back to top
View user's profile Send private message
zeekec
n00b
n00b


Joined: 24 Feb 2004
Posts: 56
Location: Athens, GA, USA

PostPosted: Thu Oct 13, 2005 1:27 pm    Post subject: Reply with quote

Sorry, no clue how to use those names. :?

Erik
_________________
Against stupidity the very gods
Themselves contend in vain.
-Johann Christoph Friedrich von Schiller (1801)
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Fri Oct 14, 2005 1:21 pm    Post subject: Reply with quote

Mount doesn't use partition map labels, it uses the LABEL information in the superblock on ext2/3 filesystems. Is that what you are trying to do?
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Thu Nov 17, 2005 8:42 pm    Post subject: Reply with quote

echo6: exactly, I wanted to use the labels from the partition map, cause half of my partitions are HFS+ (OS X, Darwin, data)

well, 'accidently' I found a directory /dev/disk/by-label full of symlinks while playing with the freshly ported hfsplus-tools and guess what, udev found the labels in the HFS+ partitions that only showed up in OS X and Darwin but not in gentoo's mount ^^
and mount /dev/disk/bylabel/data /mnt/data works!

well.. mount still has no clue about those labels, but as long as I can use them :roll:

*add [solved/workaround]*

EDIT1:
hmm.. I'm just thinking.. does udev create those symlinks?
then there could be a problem with using them in a early phase of init..
I only used them to mount my firewire disk and didn't change my fstab...

EDIT2:
well, since udev is one of the first services and checkroot is the next it's no problem
I changed my fstab and it works fine

but still I'm a liitle bit confused, because the label of the hfsplus on my panther partition is "OS X" , the label in the partition map is OS_X and.. wait...
*tests something*

EDIT3:
OK, udev replaces whitespaces in filesystem labels with "_", explains why the link is named "OS_X"

well, almost all filesystems (and both I'm using) support disklabels and together with udev's by-label directory this will work to ^^
_________________
[/garbage]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum