Bash parameter expansion
Jamon Camisso
jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Mon Aug 23 07:24:43 UTC 2010
On 8/22/2010 6:36 PM, Giles Orr wrote:
> With Debian's recent change to the way it handles device names at
> boot-up, I can't count on / being on sda anymore. Today it's on sde,
> but what I've read suggests that that may change. This messes up my
> automatic backup of the MBR, so I'm trying to figure out how to
> determine this value automatically. What I've come up with so far is
> this:
Try using blkid - assign your partitions labels and address them by that
name or do without and use a uuid since those won't change unless you
make them change yourself:
/sbin/blkid -l -device -t LABEL=ROOTPARTITIONNAMEHERE
/sbin/blkid -l -device -t UUID=12341234-1234-1234-1234-1234123412
Jamon
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list