LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-18-2009, 02:18 PM   #16
kristhor
Member
 
Registered: Sep 2008
Distribution: Debian, Ubuntu
Posts: 75

Original Poster
Rep: Reputation: 15

yes Im very sure it works im just not sure how to set it up with my system as I explained above. Did you look at the link?
 
Old 04-20-2009, 02:36 PM   #17
kristhor
Member
 
Registered: Sep 2008
Distribution: Debian, Ubuntu
Posts: 75

Original Poster
Rep: Reputation: 15
it seems you cant use the labels in scrpits and configuration files. For example you cant do:

sudo fdisk -l LABEL=Home instead of sudo fdisk -l /dev/sdb5

it just says cant open device. So if your using device-mapper for encrypted partitions you cant use label in the files that refere to the partition being encrypted. Im no expert but I spent days trying to make this work with labels and it just wont accept it.
 
Old 04-29-2009, 08:20 PM   #18
kristhor
Member
 
Registered: Sep 2008
Distribution: Debian, Ubuntu
Posts: 75

Original Poster
Rep: Reputation: 15
Solved!!

I finally found a way to make this work. Too recap the problem in short:

creating a bootable external usd hard disk with multiple distros.
Linux could name the usb drive /dev/sdb or /dev/sdf etc depending on what computer u plug in to or even at random for same computer or other usb devices are allready plugged in.
Could be solved with partition labeling, but does not work for for example encrypted partitions that use device-mapper (LUKS, dm-crypt), as I could not pass labels in scripts(crypttab etc)

soulution was to create a custom rule in /etc/udev/rules.d/ where you either change the name of the device from sdx to whatever you like or create a symlink. For more on writing udev rules check out:

http://www.reactivated.net/writing_udev_rules.html

Hope this helps someone else, cos this was driving me nuts for a long time.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
installing GRUB 2, grub-install problem r00tb33r Linux - Software 1 02-26-2007 09:42 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration