Re: External HDD auto-mounted as root

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

 



On Saturday, March 26, 2011 01:04:31 am JD wrote:
> That said, I do not know of any way that will let you
> connect your drive to any (Linux?) system and expect it to be automounted
> onto some specific mount point (assuming the mount point exists).

F14 at least will take an ext4 formatted disk and automount it to /media/$LABEL where the label is set with e2label.  Likewise with any filesystem F14 supports, using the filesystem-appropriate label utility.

As to ownership, you have to set that after it's mounted with the normal filesystem tools.

Example:
[root@localhost ~]# mount
[snip]
/dev/sdb1 on /media/wd500gbu3-bak type ext4 (rw,nosuid,nodev)
[root@localhost ~]# e2label /dev/sdb1
wd500gbu3-bak
[root@localhost ~]#dmesg
[snip]
[   27.017416] usb 6-1: new SuperSpeed USB device using xhci_hcd and address 2
[   27.029856] xhci_hcd 0000:0d:00.0: WARN: short transfer on control ep
[   27.030227] xhci_hcd 0000:0d:00.0: WARN: short transfer on control ep
[   27.030609] xhci_hcd 0000:0d:00.0: WARN: short transfer on control ep
[   27.031094] xhci_hcd 0000:0d:00.0: WARN: short transfer on control ep
[   27.031281] usb 6-1: New USB device found, idVendor=1058, idProduct=0730
[   27.031290] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   27.031297] usb 6-1: Product: My Passport 0730
[   27.031301] usb 6-1: Manufacturer: Western Digital
[   27.031306] usb 6-1: SerialNumber: YOUDIDNTTHINKIDLEAVETHISHEREDIDYOU
[   27.121613] Initializing USB Mass Storage driver...
[   27.121766] scsi2 : usb-storage 6-1:1.0
[   27.121876] usbcore: registered new interface driver usb-storage
[   27.121879] USB Mass Storage support registered.
[   29.104203] scsi 2:0:0:0: Direct-Access     WD       My Passport 0730 1012 PQ: 0 ANSI: 6
[   29.104608] scsi 2:0:0:1: Enclosure         WD       SES Device       1012 PQ: 0 ANSI: 6
[   29.107469] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   29.107640] scsi 2:0:0:1: Attached scsi generic sg3 type 13
[   32.934134] sd 2:0:0:0: [sdb] 976707584 512-byte logical blocks: (500 GB/465 GiB)
[snip]

Works just like automount of a USB flash drive does.
-- 
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