[opensuse] how to give a name to external HD?
Hello, I have an external USB HD with 4 encrypted partitions (reiserfs). When they get mounted they are named /media/disk-1 etc. I'd prefer if I could give them a fixed name like "backup1" or something... How can I do that? (I don't mean to just mount them on a named mountpoint, I mean that I can give the partition itself a name that will appear no matter to which computer I attach the disk. When I bought the disk it was formatted somehow windowish and had such a name that appeared after mounting...) thanks for hints Daniel -- Daniel Bauer photographer Basel Switzerland professional photography: http://www.daniel-bauer.com erotic art photos: http://www.bauer-nudes.com/en/linux.html Madagascar special: http://www.fotograf-basel.ch/madagascar/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Daniel Bauer wrote:
Hello,
I have an external USB HD with 4 encrypted partitions (reiserfs). When they get mounted they are named /media/disk-1 etc. I'd prefer if I could give them a fixed name like "backup1" or something... How can I do that?
Try giving the filesystem(s) a label. I think that does it. /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
thanks Per, that did it (as root: reiserfstune /dev/dm-n -l "my label") On Thursday 29 May 2008 13.45:32, Per Jessen wrote:
Daniel Bauer wrote:
Hello,
I have an external USB HD with 4 encrypted partitions (reiserfs). When they get mounted they are named /media/disk-1 etc. I'd prefer if I could give them a fixed name like "backup1" or something... How can I do that?
Try giving the filesystem(s) a label. I think that does it.
/Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2008-05-29 at 14:28 +0200, Daniel Bauer wrote:
thanks Per, that did it (as root: reiserfstune /dev/dm-n -l "my label")
Interesting - I didn't know it was possible while mounted. Maybe that's just for reiser. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIPqZ1tTMYHG2NR9URAn3NAJ0TTgCKdMVbbSyddid2F5Z6uHw3pgCeKQnD jAnghfLBNHeuc1r6pn1guZ8= =SROs -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 29 May 2008 14.49:57, Carlos E. R. wrote:
The Thursday 2008-05-29 at 14:28 +0200, Daniel Bauer wrote:
thanks Per, that did it (as root: reiserfstune /dev/dm-n -l "my label")
Interesting - I didn't know it was possible while mounted. Maybe that's just for reiser.
-- Cheers, Carlos E. R.
Oh, I didn't do it while mounted! I unmounted the disks manually before entering the above "tune"-command. saludos Daniel -- Daniel Bauer photographer Basel Switzerland professional photography: http://www.daniel-bauer.com erotic art photos: http://www.bauer-nudes.com/en/linux.html Madagascar special: http://www.fotograf-basel.ch/madagascar/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2008-05-29 at 15:57 +0200, Daniel Bauer wrote:
On Thursday 29 May 2008 14.49:57, Carlos E. R. wrote:
The Thursday 2008-05-29 at 14:28 +0200, Daniel Bauer wrote:
thanks Per, that did it (as root: reiserfstune /dev/dm-n -l "my label")
Interesting - I didn't know it was possible while mounted. Maybe that's just for reiser.
Oh, I didn't do it while mounted! I unmounted the disks manually before entering the above "tune"-command.
Ah, ok. I'm confused because I don't know if you were using the boot.crypto script, mounting is not separated from the creation of the device node. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIPsZwtTMYHG2NR9URAj45AJ0R7JVqGZ87fa2KUNdYfRw2t9vJ6gCfXLRE W5L42VvZSsR4C54t2lVNiyI= =jW8x -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2008-05-29 at 13:40 +0200, Daniel Bauer wrote:
I have an external USB HD with 4 encrypted partitions (reiserfs). When they get mounted they are named /media/disk-1 etc. I'd prefer if I could give them a fixed name like "backup1" or something... How can I do that?
You have to give a label to each partition. This is dependent on the particular filesystem: ext3, xfs, reiserfs... each one has a different utility to add a label. Ah, I see you use reiser; then it is "reiserfstune - --label NAME device". And being encrypted partitions complicates the procedure somewhat: you have to activate the unencrypted device (devmapper or loop) used to access the partition, without mounting it, and this is a thing that the "/etc/init.d/boot.crypto" doesn't do: you have to do it manually. Maybe if you explain what type of encryption you use, like the /etc/criptosomething file, I can help you a bit more. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIPqJ2tTMYHG2NR9URAvw5AKCWxnqHvO8N0ITm0xHU9+ZjaABaFwCfdMeo Rk/cD7Lyh7y2HnAAdZ0Ha34= =BM6j -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Daniel Bauer
-
Per Jessen