LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-27-2008, 05:44 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Question Can Ubuntu 7.10 be run without UUIDs?


Well it seems that those UUIDs are busting my silicons again. Here is the situation:

My PC consists of a hard drive rack with several removable hard drives (SATA 80GB) on which I install various operating systems. I have XP, Ubuntu - Production (for which I am careful to document any changes), Ubuntu - test (which was cloned from Ubuntu - Production and which I use to test things before I install them on Production). Inside the PC is a fixed SATA 320GB formatted with NTFS. The 320GB drive is accessible from all OSes and auto mounts and appears on the Ubuntu desktop as "Quite Large" which is the NTFS label. Until...

I recently installed 7.10 on another drive to try out the upgrade process to 8.04 LTS. Other than the upgrade taking a long time because of all the users hitting the server and the fact that 8.04 broke my marginal xsane scanner capability (I think) no big deal. Until...

I booted the PC with my Ubuntu - Production disk installed. The "Quite Large" icon representing the NTFS drive was not on the desktop. I can select Places; Computer; Quite Large; and mount it. However, I cannot access it with gnome-commander. "No permission to mount" error even though it appears to be mounted.

After a couple of hours of booting different configurations, comparing files such as /etc/fstab, testing, tweaking, cussing etc. I tried to manually mount the NTFS drive from the command prompt on the Production disk. I got a message to the effect "can not find UUID blah blah blah".

I then compared the fstab files. On Production and Test (remember this was cloned from Production) the UUDI for /dev/sdb1 (my NTFS partition) was the same. On the "newest" Ubuntu install it was different. It seems that the installation process "discovered" the 320GB drive, assigned it a new UUID and wrote the UUID to the drive. I copied the "new" UUID to fstab on the older installs and the automatic mounting works as before and the icon is on the desktop.

I have had some previous run ins with UUIDs when doing backup and restore between hard drives. I was advised to "just say no to UUIDs" however, the process to do this was not explained. I tried removing them from fstab and the grub boot list and managed to get things rather messed up.

Can someone please explain to me how to dispense with UUIDs for good? If it is possible?

TIA,

Ken
 
Old 04-27-2008, 06:35 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Same as always - use device designations; /dev/sda3 (whatever is appropriate). For all my systems I eventually dispense UUID/LABEL, as I am always screwing around with drives/partitions. It was introduced because of the libata namespace change (when /dev/hda became /dev/sda) - for the convenience of the distro devs/maintainers, not the users.
Ubuntu installs usually mess with the UUID on swap as well ...
 
Old 04-28-2008, 11:52 AM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Well I gave it a try again. I think I should go back to vi (or perhaps CP/M - bet that would run like a scalded dog on a Pentium 4). Anyhow gedit showed me entries in fstab which looked like this:

Quote:
# /dev/sda2
UUID=9deaf70a-dcb4-43f7-91ea-3c1d8a66ed84 /home ext3 defaults 0 2
So I simply deleted the UUID= expression which of course gave me:

Quote:
# /dev/sda2
/home ext3 defaults 0 2
In effect I commented out my entire fstab I think this is what happened the last time I played with removing UUIDs. Word wrap - wonderful NOT!

I have also removed UUIDs from /boot/grub/menu.lst and all is working well. Thanks for motivating me to finally fix this!

I can see how UUIDs would be helpful in some cases where data storage is removed and replaced. However, in my case I am removing and replacing the OS disk. The data disk always is in the same place and I do not need different installs of the OS calling it different UUIDs.

Regards,

Ken
 
Old 04-28-2008, 01:00 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Neither UUIDs nor sd/hd identifiers are reliable. The real problem in this case is that Ubuntu inherits a serious bug from Debian, which still fails to handle hard drives correctly if they are connected to more than one controller. The solution is easy but it takes a bit of work. You have to look in /dev/disk and use IDs to identify your partitions, both in fstab and in in GRUB. You would identify a partition on a SATA drive as:

/dev/disk/by-id/scsi-(etc. - just copy the information from the /dev/disk directory)
 
Old 04-28-2008, 01:13 PM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks jay73. At the moment I only have a single controller - 2 SATA connections on the motherboard - and I only use 2 drives at any given time. I will keep your advice in my reference file in case I ever need to add more storage or create a more complicated configuration.

Regards,

Ken
 
Old 04-28-2008, 01:23 PM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by taylorkh View Post
Well I gave it a try again. I think I should go back to vi (or perhaps CP/M - bet that would run like a scalded dog on a Pentium 4). Anyhow gedit showed me entries in fstab which looked like this:
Okay, first thing to understand--any line which begins with # is a comment. The line is ignored.

Quote:
So I simply deleted the UUID= expression which of course gave me:
You can't just delete the UUID= field. The first field is the field which tells the computer where the heck this file system is. This can be UUID=sfasdfw or it can be /dev/sda1 or it can be something else, but it has to be SOMETHING.

The line which starts with "#" is JUST a comment. It's a helpful comment, since it tells you which device the next line is talking about, but it is for YOUR benefit, not the computer's. The computer ignores it.

If you want to modify your fstab, you can delete the UUID= field, but you must replace it with something else, like /dev/sda1.

So this has nothing to do with word wrap.
 
  


Reply


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
How do I get Ubuntu to run games? Game Pro Linux - General 2 03-02-2008 06:45 PM
run .iso on ubuntu rizalman_almasi Linux - Newbie 4 05-10-2007 12:35 PM
Is it possible to run ubuntu 6.10 on kernel 2.4?? maximum Ubuntu 2 12-24-2006 12:41 AM
generating uuids with uuid_gen ( libuuid ) jetley Linux - Newbie 0 05-19-2004 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:34 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