Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th December 2011, 09:32 AM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Automounting hard drive - fscking unhappy!

I have an external hard drive that I use for data and media storage, and I'm attempting to get it to mount automatically. My computer very plainly doesn't like what I've done so far, though!

Based on this, having mounted the drive:
Code:
$ mount
/dev/sdf1 on /media/Neko.Storage type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) [Neko.Storage]
I added this to /etc/fstab:
Code:
/dev/sdf1 /media/Neko.Storage         fuseblk  defaults        1 2
I restarted, and fsck threw a bit of a fit at me and put me in recovery mode - commenting out that line fixed the problem, and now I'm back to square one.

Evidently, I've done something wrong My first assumption based on the error messages is that fsck doesn't recognise the 'fuseblk' entry. I think the filesystem is ntfs (which presumably is what would replace fuseblk), but I'm not certain - is there any way to check this?

That said, is there any value in fscking the drive, or would that '2' be better set to '0'?

Finally, are there any steps I need to take beyond the /etc/fstab configuration?

Many thanks in advance!
Reply With Quote
  #2  
Old 19th December 2011, 10:01 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfirefox
Re: Automounting hard drive - fscking unhappy!

Simply make a mount point, get the UUID of the partition and mount that partition. Using my disk as an example.

PHP Code:
mkdir /mnt/storage
blkid 
/dev/sdd1 
/dev/sdd1: LABEL="sata500" UUID="b7fc2042-40be-46b9-9cce-69a5b043e044" TYPE="ext4"

Using copy and paste, add the UUID on a new line in /etc/fstab. Remember to remove the 6th character which is a ". Then finish off the line.
PHP Code:
UUID=b7fc2042-40be-46b9-9cce-69a5b043e044 /mnt/storage ext4 defaults 0 0 
PHP Code:
mount /mnt/storage 
This should mount at every boot. This is also an extremely basic method of mounting a partition. You may want more options but this should get you started.

In the case of an NTFS partition a basic fstab line would be
PHP Code:
UUID=b7fc2042-40be-46b9-9cce-69a5b043e044 /mnt/storage ntfs-3g defaults 0 0 
fdisk will tell you if it's ntfs or other.
PHP Code:
fdisk -/dev/sdd 
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 19th December 2011, 10:53 AM
Jean Pierre Offline
Registered User
 
Join Date: Feb 2011
Posts: 73
linuxfedoraseamonkey
Re: Automounting hard drive - fscking unhappy!

Quote:
That said, is there any value in fscking the drive, or would that '2' be better set to '0'?
Yes for setting to '0'. The last parameter is a request to do a file system check at boot time (see "man fstab"), but :
1) nobody has developed an ntfs file system checker,
2) had it been developed, it would last several minutes. Are you sure you want to spend that delay during boot ?
Reply With Quote
  #4  
Old 19th December 2011, 11:01 AM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Automounting hard drive - fscking unhappy!

Working perfectly - thanks, Glennzo!

As a point of curiosity, if in future, I were to boot without that drive attached, would it just not mount it and move on, or would it likely throw a hideous error?

And thanks for the extra info Jean - much appreciated!
Reply With Quote
Reply

Tags
automounting, drive, fsck, fscking, fstab, hard, unhappy

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automounting hard drives ohter than the system drive pinenut Using Fedora 4 5th October 2009 09:10 PM
Not automounting usb hard drive? daviddoria Using Fedora 13 18th July 2008 09:38 PM
external usb hard drive disappears after automounting pabeecroft Hardware & Laptops 38 18th September 2007 06:17 PM
Automounting NTFS partitions from USB hard disk mattrose85 Using Fedora 3 5th April 2006 06:50 AM
Problems automounting USB Hard Drive Reflux Hardware & Laptops 0 30th May 2004 06:15 AM


Current GMT-time: 10:36 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat