mounting external hard drive

pinniger
Posts: 4
Joined: Mon Jun 28, 2010 11:21 am

mounting external hard drive

Postby pinniger » Wed Jun 30, 2010 8:04 am

Ok, installed amahi via express cd (which was great), then I added two usb hard drives. I followed the wiki for adding a second hard drive except I used fdisk and mkfs.ex3 to format the disks. then i ran hda-diskmount and got this..

Code: Select all

**************************************************************** Ignoring /dev/sda1 - already in /etc/fstab or mounted **************************************************************** Mounted /dev/sdb1 as '/var/hda/files/drives/sdb1' (read-write) You may want your system to mount it every time you boot. To do so, add this line VERY CAREFULLY to /etc/fstab and reboot: UUID=F8FC641EFC63D582 /var/hda/files/drives/sdb1 ext4 defaults 1 2 **************************************************************** Mounted /dev/sdc1 as '/var/hda/files/drives/sdc1' (read-write) You may want your system to mount it every time you boot. To do so, add this line VERY CAREFULLY to /etc/fstab and reboot: UUID=959b66d4-533c-411f-a5e6-ad33b4a54621 /var/hda/files/drives/sdc1 ext4 defaults 1 2 **************************************************************** All Linux, Windows and Mac partitions on non-removable disks have been mounted
Perfect!

I check the disks in the dash board and everything looked great. I wanted to add them to the storage pool, so I followed that guide in the wiki. when I added the uuid lines to the fstab file, and then run "mount -a" I get this message "mount: special device UUID=F8FC641EFC63D582 does not exist"

I'd also like to mention that these are identical drives, and when I ran mkfs.ext3 on sdc, it only took 10 minutes or so, sdb took 2 days to complete, maybe the drive is failing? but then why does it mount ok when I run hda-diskmount?

Anybody know what is going on with this?

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: mounting external hard drive

Postby gboudreau » Fri Jul 02, 2010 11:41 am

Your sdb drive is very probably dying.
It can mount sometimes, but will disappear soon afterwards, and won't be re-mountable until you reboot, where the same will happen again.
You can check /var/log/messages to look for errors; there's probably a lot of them, very cryptic error messages about ATA or something like that.
- Guillaume Boudreau

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: mounting external hard drive

Postby moredruid » Fri Jul 02, 2010 11:24 pm

you can run smartctl on all your drives to check for their health (SMART output).

Code: Select all

root@host# smartctl -a /dev/sdb
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

pinniger
Posts: 4
Joined: Mon Jun 28, 2010 11:21 am

Re: mounting external hard drive

Postby pinniger » Sat Jul 03, 2010 8:53 am

after I manually mount it, it stays mounted, it just doesn't mount when added to fstab...

results of smartctl...
It says the disk passed, so I assume its ok...for now.

Code: Select all

smartctl 5.39.1 2010-01-28 r3054 [i386-redhat-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Model Family: Western Digital Caviar Green family Device Model: WDC WD10EAVS-00D7B1 Serial Number: WD-WCAU4C784263 Firmware Version: 01.01A01 User Capacity: 1,000,204,886,016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Sat Jul 3 10:55:27 2010 CDT SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x82) Offline data collection activity was completed without error. Auto Offline Data Collection: Enabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: (24600) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off supp ort. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 255) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x303f) SCT Status supported. SCT Feature Control supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_ FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0027 158 156 021 Pre-fail Always - 7066 4 Start_Stop_Count 0x0032 098 098 000 Old_age Always - 2342 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 100 253 000 Old_age Always - 0 9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 6222 10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0 11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 13 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 5 193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 2315 194 Temperature_Celsius 0x0022 121 103 000 Old_age Always - 29 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA _of_first_error # 1 Short offline Completed without error 00% 6151 - SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: mounting external hard drive

Postby moredruid » Sun Jul 04, 2010 4:24 am

after I manually mount it, it stays mounted, it just doesn't mount when added to fstab...
aha...
can you show us the /etc/fstab line you've added?
and can you make sure it's the same as the one listed when you give the following command:

Code: Select all

root@host# ls /dev/disk/by-uuid
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

AndrewKevin
Posts: 1
Joined: Thu Sep 30, 2010 12:00 am

Re: mounting external hard drive

Postby AndrewKevin » Thu Sep 30, 2010 12:04 am

You have to log in as root and then do

mkdir /mnt/harddrive
mount -t vfat /dev/sda1 /mnt/harddrive

______________________________________________________
Network Storage solutions | Portable Hard Drives

Who is online

Users browsing this forum: No registered users and 27 guests