Re: Testing changes to fstab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/15/2010 07:29 PM, Robert Moskowitz wrote:
> A long time ago I got burned with a type in /etc/fstab and back then I 
> was told how to test out changes to fstab.
> 
> Well I just added my USB drive to fstab and want to make sure I got it 
> right.  The line I added is:
> 
> /dev/sdb1        /media/usbdrive        ext4    defaults    1 2
> 
> I figure this out from the fstab man page and that the following works:
> 
> mount /dev/sdb1 /media/usbdrive
> 
> But I want to test first before I reboot.  BTW, the messages I now get 
> for this drive during boot are:
> 
> Dec 15 19:56:06 homebase kernel: usb 1-2: New USB device found, 
> idVendor=0bc2, idProduct=3300
> Dec 15 19:56:06 homebase kernel: usb 1-2: New USB device strings: Mfr=1, 
> Product=2, SerialNumber=3
> Dec 15 19:56:06 homebase kernel: usb 1-2: Product: Desktop
> Dec 15 19:56:06 homebase kernel: usb 1-2: Manufacturer: Seagate
> Dec 15 19:56:06 homebase kernel: usb 1-2: SerialNumber: 2GHJTCB4
> Dec 15 19:56:06 homebase kernel: usb 1-2: configuration #1 chosen from 1 
> choice
> 
> Oh, and I used e2label to label the partition the same as its serial #).
> 
> 

A suggestion please.

Instead of using "/dev/sdb1" in /etc/fstab, can you use either,
UUID=uuid-for-the-partition or LABEL=label-for-the-partition?

I speak from personal experience.

At one time, I tried using "/dev/sdf1" for a usb drive.

Then I added another usb device.

Depending how usb devices were discovered,
my usb drive wasn't /dev/sdf1 any more.

When the device is plugged in, even if the device is not mounted,
can you check "ls -l /dev/disk/by-uuid" or "ls -l /dev/disk/by-label"
to learn the uuid or label for the usb drive, respectively?

Since you stated you labeled the partition, 2GHJTCB4,
you should be able to do, in your /etc/fstab,

LABEL=2GHJTCB4 /media/usbdrive        ext4    defaults    1 2

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0JuO4ACgkQyc8Kn0p/AZQyrACdEWkPCbLuz8TiB1vLCmH3eeAS
ow4AnR4ixd/G68+1q27kLzK4NIALOcVp
=6CP2
-----END PGP SIGNATURE-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux