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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux