LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-06-2010, 08:10 AM   #1
rusma
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Rep: Reputation: 0
[SOLVED] Need advice on using UUID to idetify usbstick rootdrives


Hi

I'm currently configuring my nslu2 to reboot correctly, having the Debian Lenny Operating System split over two usbsticks - this is quite difficult, i think.

You see, sometimes it boot, sometimes not. Therefore, I've decided to try UUID naming instead of the default sdX naming system. Maybe udev naming too ... dunno.

Here some person says it is important to do one usb stick at a time. How important is this(?) when I have the OS split over two usb-sticks, not just one?

I have not really used udev for other than renaming ethernet and wlan devices; so some tips on using it for renaming usb-devices would be nice. Is renaming on the grounds of UUIDs the most sensible way, you think?

I have set up the cabling to the nslu2 like this:

PHP Code:
   lenny.localnet
   
|
 (
eth0)
   |
[
NSLU2 (Debian Lenny)]---(usb)---[SANDISK 8GB stick (normal writing rate)]
   |
 (
usb)
   |
[
USB HUB]---(usb)---[veeeery large and sleepy external harddrive]
   |
 (
usb)
   |
[
CORSAIR 4G stick (superfast writing rate)] 
/boot, /home, /usr/local and /var/log is on the Sandisk, and /, /tmp, /usr and /var/log is on the Corsair. Is this a good structure? Now, installing packages is damn slow (then it's using the Sandisk), but doing simple editing in Vim and logging in from ssh is like to an ordinary machine with the OS on a harddrive. This is not that bad, since I'm doing editing in Vim more often that installing packages (maybe just once).

Hmm ... quite a few questions here ...

All answers appreciated.

Edit: [SOLVED], just go on with naming by UUID if you boot from several memorysticks. Maybe it is preferable to rebuild the initramfs for each edit to the fstab file ...

Last edited by rusma; 06-08-2010 at 08:04 AM.
 
Old 06-06-2010, 09:59 AM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
You don't need to rename a device to get the UUID. You can get the device's existing UUID with either the vol_id utility, or dumpe2fs (for extn filesystems).

I routinely use UUIDs in /etc/fstab for USB drives (though mainly so that removable drives mount in predictable locations).

Last edited by Robhogg; 06-06-2010 at 10:01 AM.
 
Old 06-06-2010, 12:29 PM   #3
rusma
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Robhogg View Post
I routinely use UUIDs in /etc/fstab for USB drives (though mainly so that removable drives mount in predictable locations).
A predicable location is precisely what I am looking for.

What happens during boot if I use only the UUIDs of the partitions of (for example) the SANDISK, and leave the Corsair as it is (sdbn)?
Will they still be named sda snd sdb during every boot?
How will the names of the drives in the output of df look?
 
Old 06-08-2010, 07:59 AM   #4
rusma
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Original Poster
Rep: Reputation: 0
OK. Seems like it all worked as planned/guessed of at first. Booting from the USB hub does not make any difference now with all the right UUIDs in place. Booting from the USBhub is also preferrable I think, so the NSLU2 card does not have to handle as much throughput and power (it is all handeled to a certain degree by the USB hub).

It seems Squeeze will handle all the UUID values by default.

OT: I have also managed to print a testpage from by Deskjet using hplip
 
  


Reply

Tags
debian, nslu2, uuid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Best Prac Advice Sought: UUID-based labeling SAN-presented LUNS to RHEL4 SteveInTallyFL Linux - Enterprise 3 10-23-2009 11:38 AM
Best Prac Advice Sought: UUID-based labeling SAN-presented LUNS to RHEL4 SteveInTallyFL Linux - Server 1 10-23-2009 03:51 AM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 09:41 PM
some USBstick help please Lleb_KCir Linux - General 13 07-26-2005 01:13 PM
idetify cdrw in cdrom woerns Programming 1 01-17-2005 09:44 AM


All times are GMT -5. The time now is 04:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration