Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Mandriva

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-2008, 10:05 PM
Dale
 
Posts: n/a
/mnt/backup problems

I just installed 2008.1 in separate part. from
my 2008.0
My problem is I have all my backups on /mnt/backup on
my 2008.0
I went into mcc and local disks and found my
part. for /mnt/backup which did not have a mount point
defined.
I gave it /mnt/backup which it was before and it is in
/etc/fstab but it is empty.
I booted into 2008.0 and looked in /mnt/backup
and my files are there.PHEW....Scared me....
What do I need to do to see them while
running 2008.1 ?

Another little funny thing...in 2008.0 fstab the part.
start like this dev/hdd dev/sda ,etc.
In 2008.1 they have weird names like uudef....
whats that all about ?
Tia,Dale

Reply With Quote
  #2 (permalink)  
Old 07-18-2008, 10:25 PM
Aragorn
 
Posts: n/a
Re: /mnt/backup problems

On Saturday 19 July 2008 00:05, someone identifying as *Dale* wrote
in /alt.os.linux.mandriva:/

> I just installed 2008.1 in separate part. from
> my 2008.0
> My problem is I have all my backups on /mnt/backup on
> my 2008.0
> I went into mcc and local disks and found my
> part. for /mnt/backup which did not have a mount point
> defined.
> I gave it /mnt/backup which it was before and it is in
> /etc/fstab but it is empty.
> I booted into 2008.0 and looked in /mnt/backup
> and my files are there.PHEW....Scared me....
> What do I need to do to see them while
> running 2008.1 ?


Make sure that the word *auto* is listed in the comma-separated field with
the mount options for this filesystem.

> Another little funny thing...in 2008.0 fstab the part.
> start like this dev/hdd dev/sda ,etc.
> In 2008.1 they have weird names like uudef....
> whats that all about ?


Those are UUIDs, unique identifier codes assigned to each filesystem when it
is created. It's an analog to using labels instead of device names, so
that the proper filesystem will always be mounted on the proper mountpoint,
even after deleting or recreating partitions.

--
*Aragorn*
(registered GNU/Linux user #223157)
Reply With Quote
  #3 (permalink)  
Old 07-18-2008, 10:42 PM
David W. Hodgins
 
Posts: n/a
Re: /mnt/backup problems

On Fri, 18 Jul 2008 18:05:25 -0400, Dale <dwinters6@verizon.net> wrote:

> I went into mcc and local disks and found my
> part. for /mnt/backup which did not have a mount point
> defined.
> I gave it /mnt/backup which it was before and it is in
> /etc/fstab but it is empty.


After creating the directory to be used as a mountpoint, you have
to mount the filesyste. If the entry has been added to /etc/fstab, and
doesn't have the noauto option, then it will be mounted during startup.

> In 2008.1 they have weird names like uudef....


Read "man fstab".

There are three ways you can identify a filesystem in fstab. Device, Label,
or Uniniversal Unique IDentifier. You can assign a label when the filesystem
is formatted, or after, using the appropriate command for the type of filesystem,
such as tune2fs for ext2/ext3, reiserfstune, or xfs_admin. A useful command for
finding info on a filesystem is vol_id.

For example, I have a backup filesystem on /dev/hda18.

$ /sbin/vol_id /dev/hda18
ID_FS_USAGE=filesystem
ID_FS_TYPE=xfs
ID_FS_VERSION=
ID_FS_UUID=245d306c-4800-415f-af8c-821c34a94947
ID_FS_UUID_ENC=245d306c-4800-415f-af8c-821c34a94947
ID_FS_LABEL=backup
ID_FS_LABEL_ENC=backup
ID_FS_LABEL_SAFE=backup

To identify the filesystem in /etc/fstab, I can start the line with
/dev/hda18 or LABEL=backup or UUID=245d306c-4800-415f-af8c-821c34a94947.

Because I added the noauto option, the filesystem is only mounted, when I
manually mount it. When it isn't mounted, /mnt/backup is just a directory,
which by default is on the root filesystem.

Be careful. If you try to copy files to /mnt/backup, when the filesystem
has not been mounted, you'll be copying them to the root filesystem, which
can make rebooting difficult, if it becomes full. If you copy files to
the directory, and then mount the filesystem, the files in that directory
will be hidden. The only way to access them, is to first unmount the filesystem.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Reply With Quote
  #4 (permalink)  
Old 07-18-2008, 10:56 PM
David W. Hodgins
 
Posts: n/a
Re: /mnt/backup problems

On Fri, 18 Jul 2008 18:25:33 -0400, Aragorn <aragorn@chatfactory.invalid> wrote:

> Make sure that the word *auto* is listed in the comma-separated field with
> the mount options for this filesystem.


Shouldn't that be 'Make sure the word "noauto" is not listed?

> Those are UUIDs, unique identifier codes assigned to each filesystem when it
> is created. It's an analog to using labels instead of device names, so
> that the proper filesystem will always be mounted on the proper mountpoint,
> even after deleting or recreating partitions.


I'm sure you're aware, but want to make sure it's clear, that the uuid for
a file sytem will be changed, if you format it. For example, if you use
diskdrake in 2008.1 to create and format partitions for installation of 2009.0,
it will add entries to /etc/fstab, using the uuid (if you didn't specify a label).
You then install the 2009.0, allowing it to format the filesystem(s). When
you reboot back to 2008.1, it won't find the uuids that are specified in
/etc/fstab.

In my opinion, it's better to always use device names, or labels. If you use
labels, it's up to you to ensure they are unique.

Be careful with using uuid in /etc/lilo.conf, as well.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Reply With Quote
  #5 (permalink)  
Old 07-19-2008, 07:43 AM
Aragorn
 
Posts: n/a
Re: /mnt/backup problems

On Saturday 19 July 2008 00:56, someone identifying as *David W. Hodgins*
wrote in /alt.os.linux.mandriva:/

> On Fri, 18 Jul 2008 18:25:33 -0400, Aragorn <aragorn@chatfactory.invalid>
> wrote:
>
>> Make sure that the word *auto* is listed in the comma-separated field
>> with the mount options for this filesystem.

>
> Shouldn't that be 'Make sure the word "noauto" is not listed?


If the mount options include the word /defaults,/ then you are indeed
correct. However, on my own systems I don't use the /defaults/ keyword and
I rather specify each mount option individually, which makes it easier to
set up and maintain my */etc/fstab* and to make small modifications. ;-)

>> Those are UUIDs, unique identifier codes assigned to each filesystem when
>> it is created. It's an analog to using labels instead of device names,
>> so that the proper filesystem will always be mounted on the proper
>> mountpoint, even after deleting or recreating partitions.

>
> I'm sure you're aware, but want to make sure it's clear, that the uuid for
> a file sytem will be changed, if you format it.


That is correct. The UUID will be created as part of the formatting
process, which I normally do not describe as formatting because of
the /format/ command - which is a text processing utility - and so I
typically refer to this as "creating a filesystem".

And just as you would be wiping out all files on a partition with the
creation of a new filesystem, you would also be overwriting the UUID with a
new one.

> For example, if you use diskdrake in 2008.1 to create and format
> partitions for installation of 2009.0, it will add entries to /etc/fstab,
> using the uuid (if you didn't specify a label).
> You then install the 2009.0, allowing it to format the filesystem(s).
> When you reboot back to 2008.1, it won't find the uuids that are specified
> in /etc/fstab.
>
> In my opinion, it's better to always use device names, or labels.


Device names are the most easy to use, in my humble opinion, but through the
now widespread use of the /udev/ system, device names are no longer
absolute. Labels are just as easy to use, but not every filesystem gets a
label by default.

UUIDs are less easy to use because of the lengthy and cryptic looking
string, but every formatted partition will normally always have a UUID and
this UUID won't change unless you reformat the filesystem, as you described
above.

There's no general consensus anymore about which is best and which isn't,
given that all three methods have their flaws. I myself still used device
names because I'm used to it, but that does not mean that I think that it's
the best way. UUIDs are probably a better idea on a static system.

> If you use labels, it's up to you to ensure they are unique.


And that could be a problem on a very elaborate system... :-/

> Be careful with using uuid in /etc/lilo.conf, as well.


.... Or in */boot/grub/menu.lst* for that matter... ;-)


--
*Aragorn*
(registered GNU/Linux user #223157)
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Mandriva


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:35 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109