SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-04-12 23:36:49

cpoakes
#! CrunchBanger
From: Tucson, Arizona
Registered: 2012-05-19
Posts: 202

Fix df command: eliminate root device by UUID

#!/bin/sh
#  Mimic a "normal" mount of root device by translating the device link 
#  (UUID or LABEL) to the actual device.

set -e

[ "$1" = prereqs ] && exit 0

REALROOT=`readlink -f ${ROOT}`
[ "${REALROOT}" ] && echo "ROOT=${REALROOT}" >> /conf/param.conf

exit 0

Last edited by cpoakes (2013-10-05 11:41:46)


programming and administering unix since 1976 (BSD, System III, Xenix, System V, Linux)

Offline

Help fund CrunchBang, donate to the project!

#2 2013-04-14 22:28:06

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,108

Re: Fix df command: eliminate root device by UUID

Thanks!

Offline

#3 2013-10-02 18:08:15

falcon7700
New Member
Registered: 2013-10-02
Posts: 2

Re: Fix df command: eliminate root device by UUID

I've been trying to solve the UUID problem for a while, and a long search led me to this post, where I found "hope"....

However, I use Debian (wheezy) and though it's similar, it's not the same ;-(
The script concatenates some stuff on the end of /conf/param.conf . Since Debian doesn't have this, I guess it must be a Crunchbang thing.  Anyone know how to make this work on standard Debian? Is there an analogue to param.conf?

Offline

#4 2013-10-02 19:47:40

falcon7700
New Member
Registered: 2013-10-02
Posts: 2

Re: Fix df command: eliminate root device by UUID

(answering my own question)
For the Debian users out there, it turns out there is an easier way:
In /etc/default/grub, just uncomment the line:
#GRUB_DISABLE_LINUX_UUID=true

Then run update-grub

Offline

#5 2013-10-05 11:21:20

cpoakes
#! CrunchBanger
From: Tucson, Arizona
Registered: 2012-05-19
Posts: 202

Re: Fix df command: eliminate root device by UUID


programming and administering unix since 1976 (BSD, System III, Xenix, System V, Linux)

Offline

#6 2013-10-05 11:38:14

cpoakes
#! CrunchBanger
From: Tucson, Arizona
Registered: 2012-05-19
Posts: 202

Re: Fix df command: eliminate root device by UUID

Just removed changes from my wheezy system and rebuilt a normal initramfs; reboot and shows UUID.  Reinstalled from my original directions and text rebuilding initramfs; reboot and df shows device.  No clue why it didn't work for you falcon7700 unless perhaps the file was not owner/group root:root. (Modified instructions to reflect this).


programming and administering unix since 1976 (BSD, System III, Xenix, System V, Linux)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo