![]() |
HowTo.TroubleshootADriveNotFormattedCondition HistoryHide minor edits - Show changes to markup March 12, 2007, at 10:58 PM
by -- fixed link formatting
Changed lines 82-83 from:
4. Enable Telnet (e.g. via http://192.168.1.77:/Management/telnet.cgi) to:
4. Enable Telnet (e.g. via http://192.168.1.77:/Management/telnet.cgi) March 10, 2007, at 01:48 PM
by --
Changed lines 267-269 from:
I unslung 6.8 to a Hitachi 250GB Deskstor in port 1. When I later added a disk to port 2, it wasn't formatting. In the end I put it on to an XP and did a quick format. Unplugged it put it back in port 2. Did a format again, but df only showed 80GB of space. Bad karma. to:
Another workaroundI unslung 6.8 to a Hitachi 250GB Deskstor in port 1. When I later added another Hitachi disk to port 2, it wasn't formatting. In the end I put it on to an XP and did a quick format. Unplugged it put it back in port 2. Did a format again, but df only showed 80GB of space. Bad karma. March 10, 2007, at 01:47 PM
by -- Not formatted condition - a way around?
Added lines 265-272:
I unslung 6.8 to a Hitachi 250GB Deskstor in port 1. When I later added a disk to port 2, it wasn't formatting. In the end I put it on to an XP and did a quick format. Unplugged it put it back in port 2. Did a format again, but df only showed 80GB of space. Bad karma. I plugged the drive into XP box. This showed the 80GB partition, plus 3 other partitions approximately 150MB each. I deleted all the partitions and then did a FULL FORMAT. I powered the drive off, plugged the drive back in to port 2 and then switched on the drive. Using the web interface, the drive popped up in the disk pages. I then ran the format which worked :D April 15, 2006, at 09:13 PM
by -- Fixed after checking the hard disk
Added lines 258-264:
I checked the hard disk 1 with
Some problems when running three times (killed, memory aborts) and the problems were fixed after rebooting the NSLU2. January 19, 2006, at 07:57 AM
by --
Changed lines 252-255 from:
Note: to:
Another workaround for this problemJanuary 19, 2006, at 07:54 AM
by --
Added lines 249-254:
Note: I've found that the sequence of applying power to the the drive and the NSLU2 helps me solve problems like this. First I switch on the NSLU2 and after a few seconds the drive. December 13, 2005, at 10:18 AM
by -- non-responsive box
Added lines 98-105:
I have symptoms similar to those described here. I have an unslung 5.x box which was working fine until, during a heavy data transfer, the box stopped responding (even to pings). The box boots without the drive, but if I either boot it with the drive, or attach the drive after booting, the box becomes unresponsive (to pings and web access). I can telnet into the box following a diskless boot, and when I then attach the drive, the box remains responsive, but the drive is not automounted. I ran fsck.ext3 on the drive, and it found one small problem, but fixed it. I can ls the drive, but even after multiple successful fscks, the problem remains. Any ideas? --Pat / zippy@cs.brandeis.edu October 31, 2005, at 03:57 AM
by --
Changed lines 144-149 from:
/bin/echo "Starting network:" >> /unslung/rc.1.log; /etc/rc.d/rc.network; check_status
/bin/echo "Restore time and timezone:"; /etc/rc.d/rc.rstimezone; check_status
/bin/echo "Restore usrgrpshares:"; /etc/rc.d/rc.reset_usrgrpshare; check_status
/bin/echo "Generating telnet password:"; /usr/sbin/TelnetPassword?; check_status
/bin/echo "Starting WEB Server:"; . /etc/rc.d/rc.thttpd;check_status
/bin/echo "Starting samba:"; . /etc/rc.d/rc.samba
to:
/bin/echo "Starting network:" >> /unslung/rc.1.log
/etc/rc.d/rc.network; check_status
/bin/echo "Restore time and timezone:"
/etc/rc.d/rc.rstimezone; check_status
/bin/echo "Restore usrgrpshares:"
/etc/rc.d/rc.reset_usrgrpshare; check_status
/bin/echo "Generating telnet password:"
/usr/sbin/TelnetPassword?; check_status
/bin/echo "Starting WEB Server:"
. /etc/rc.d/rc.thttpd; check_status
/bin/echo "Starting Samba:"
. /etc/rc.d/rc.samba
Changed lines 163-170 from:
/bin/echo "Starting INET Server:"; . /etc/rc.d/rc.xinetd; check_status
/bin/echo "Creating ramfs for /tmp:"; /bin/mount -t ramfs none /tmp -o maxsize=512
/bin/echo "Starting QuickSet? Daemon :"; . /etc/rc.d/rc.quickset
/bin/echo "Starting Crond :"; . /etc/rc.d/rc.crond
/bin/echo "Starting Rest Task :"; . /etc/rc.d/rc.local
/bin/echo "Starting UNSLUNG Packages:"; ( . /etc/rc.d/rc.unslung-start )
to:
/bin/echo "Starting inetd:"
. /etc/rc.d/rc.xinetd; check_status
/bin/echo "Creating ramfs for /tmp:"
/bin/mount -t ramfs none /tmp -o maxsize=512
/bin/echo "Starting QuickSet? daemon:"
. /etc/rc.d/rc.quickset
/bin/echo "Starting cron:"
. /etc/rc.d/rc.crond
/bin/echo "Starting Rest Task:"
. /etc/rc.d/rc.local
/bin/echo "Starting Unslung Packages:"
. /etc/rc.d/rc.unslung-start
Changed lines 184-187 from:
/bin/echo "Checking disk status :"; /usr/sbin/CheckDiskFull 2 >/dev/null
to:
/bin/echo "Checking disk status:"
/usr/sbin/CheckDiskFull 2 >/dev/null
Changed lines 236-237 from:
I had a problem where my drive showed up as "Not formated". I formated it and got no errors, and then tried to unsling to it. This didn't work, and at this point the drive still appeared as "Not formated" in the web interface. After first clearing the partition table (the drive was used for other things previously) and reformating again, the problem went away. to:
I had a problem where my drive showed up as "Not formatted". I formatted it and got no errors, and then tried to unsling to it. This didn't work, and at this point the drive still appeared as "Not formated" in the web interface. After first clearing the partition table (the drive was used for other things previously) and reformatting again, the problem went away. October 30, 2005, at 10:34 PM
by -- added one more \'not formatted condition\'
Changed lines 53-73 from:
to:
2005-10-30 unslung 5.5, HD1?-120G (recently replaced) I checked HD1? with 'fsck.ext3 -y -f /dev/sda1' (if not -y, too many questions asked to confirm), after that HD1? didn't want to mount anymore. First fsck gave tons of problems that were fixed by using -y switch. Previous fsck was also done manually (shutdown, disconnect HD, boot, logon, connect HD, umount, fsck) about two weeks ago, also giving plenty of things fixed. Symptoms
After checking output from the first fsck, noticed that journal was removed (partition downgraded from ext3 to ext2 ?). Moved HD to a linux box, and run tune2fs -j /dev/sda1 Reconnected HD back to slug, and it boots fine now. Just wonder, how many people have problems with failing HDs?, corrupted data, not-formatted-conditions, etc. Looking at this page, and mailing lists, not much help is provided for such problems. Not being able to fsck HDs? that are unslung (through the web, or scheduler) is not helping as well. August 22, 2005, at 08:15 PM
by --
Changed lines 19-20 from:
If there are more than the number you expect or this number is > 2 then this is your problem. See FAQ 28. to:
If there are more than the number you expect or this number is > 2 then this is your problem. See this FAQ entry. Changed lines 33-34 from:
After attemping the diversion scripts mentioned below one thing to note is that the mounting procedure is dependent on the order in which the devices are connected to your usb hub. You should connect the hard drive you want to use in the first port of the usb hub and then everything else. If that doesn't work try the last since it may be mounting drives from last to first instead! to:
After attemping the diversion scripts mentioned below one thing to note is that the mounting procedure is dependent on the order in which the devices are connected to your USB hub. You should connect the hard drive you want to use in the first port of the USB hub and then everything else. If that doesn't work try the last since it may be mounting drives from last to first instead! August 22, 2005, at 08:14 PM
by --
Changed lines 37-38 from:
When running 3.17 (and maybe also 3.16) the startup script malfunctions if the file /opt/sbin/insmod (which is a symbolic link to /opt/bin/busybox) is present. Just delete this link (if you really want to run this version of BusyBox? insmod later, you can do that by writing "busybox insmod"). After deleting the link, just reboot and your drive should again be recognized as formatted and your shares available. to:
When running 3.17 (and maybe also 3.16) the startup script malfunctions if the file /opt/sbin/insmod (which is a symbolic link to /opt/bin/busybox) is present. Just delete this link (if you really want to run this version of BusyBox insmod later, you can do that by writing "busybox insmod"). After deleting the link, just reboot and your drive should again be recognized as formatted and your shares available. Changed lines 43-44 from:
to:
Changed lines 48-49 from:
to:
Changed lines 56-57 from:
1. Shut NSLU2 down. to:
1. Shut the NSLU2 down. June 04, 2005, at 07:33 PM
by -- Add information that in some cases, the partition table might need to be reset before formatting the drive
Deleted line 185:
Changed lines 188-194 from:
to:
I had a problem where my drive showed up as "Not formated". I formated it and got no errors, and then tried to unsling to it. This didn't work, and at this point the drive still appeared as "Not formated" in the web interface. After first clearing the partition table (the drive was used for other things previously) and reformating again, the problem went away. To clear the partition table, do something like this (for Disk 1):
April 27, 2005, at 03:03 AM
by -- Fixed formatting
Changed lines 5-32 from:
# Immediately after you determine you have problem after reboot type in:
dmesg > boot.messages
dmesg is used to examine or control the kernel ring buffer.
The program helps users to print out their bootup messages.
The user can then email the boot.messages file to whoever can debug their problem.
# An inital action a user can take is to type:
cat /proc/bus/usb/devices | grep "I\:"
There should only be as many usb-storage devices as you expect to have.
If there are more than the number you expect or this number is > 2 then this is your problem. See FAQ 28.
# Another action a user can take is to type:
ls -l /proc/*_conn
Once again there should be no more than 2 listings.
bash-2.05b# ls -l /proc/*_conn
-r--r--r-- 1 root root 0 Feb 4 19:09 /proc/hd2_conn
-r--r--r-- 1 root root 0 Feb 4 19:09 /proc/hd_conn
You will see hd2_conn for a hard disk on port 2, usb_conn for a flash disk on port 2, hd_conn for a hard disk on port 1 and (for unslung firmware only) hd_conn for a flash disk on port 1 too.
to:
April 27, 2005, at 02:37 AM
by -- none
Added lines 50-51:
February 05, 2005, at 04:37 AM
by --
Added lines 31-32:
You will see hd2_conn for a hard disk on port 2, usb_conn for a flash disk on port 2, hd_conn for a hard disk on port 1 and (for unslung firmware only) hd_conn for a flash disk on port 1 too. February 05, 2005, at 03:47 AM
by --
Changed line 31 from:
to:
After attemping the diversion scripts mentioned below one thing to note is that the mounting procedure is dependent on the order in which the devices are connected to your usb hub. You should connect the hard drive you want to use in the first port of the usb hub and then everything else. If that doesn't work try the last since it may be mounting drives from last to first instead! February 05, 2005, at 12:20 AM
by --
Added lines 3-32:
The following a troubleshooting steps you can follow (as root) to identify the problem # Immediately after you determine you have problem after reboot type in:
dmesg > boot.messages
dmesg is used to examine or control the kernel ring buffer.
The program helps users to print out their bootup messages.
The user can then email the boot.messages file to whoever can debug their problem.
# An inital action a user can take is to type:
cat /proc/bus/usb/devices | grep "I\:"
There should only be as many usb-storage devices as you expect to have.
If there are more than the number you expect or this number is > 2 then this is your problem. See FAQ 28.
# Another action a user can take is to type:
ls -l /proc/*_conn
Once again there should be no more than 2 listings.
bash-2.05b# ls -l /proc/*_conn
-r--r--r-- 1 root root 0 Feb 4 19:09 /proc/hd2_conn
-r--r--r-- 1 root root 0 Feb 4 19:09 /proc/hd_conn
January 28, 2005, at 02:08 PM
by --
Added lines 9-17:
2005-01-28, IRC
January 11, 2005, at 07:29 PM
by --
Changed line 5 from:
When running 3.17 (and maybe also 3.16) the startup script malfunctions if the file /opt/sbin/insmod (which is a symbolic link to /opt/bin/busybox) is present. Just delete this link (if you really want to run this version of BusyBox? insmod later you can do that by writing "busybox insmod"). After deleting the link, just reboot and your drive should again be recognized as formatted and your shares available. to:
When running 3.17 (and maybe also 3.16) the startup script malfunctions if the file /opt/sbin/insmod (which is a symbolic link to /opt/bin/busybox) is present. Just delete this link (if you really want to run this version of BusyBox? insmod later, you can do that by writing "busybox insmod"). After deleting the link, just reboot and your drive should again be recognized as formatted and your shares available. January 11, 2005, at 07:28 PM
by --
Added lines 1-10:
NewsflashThe source of many of these cases have now been found.When running 3.17 (and maybe also 3.16) the startup script malfunctions if the file /opt/sbin/insmod (which is a symbolic link to /opt/bin/busybox) is present. Just delete this link (if you really want to run this version of BusyBox? insmod later you can do that by writing "busybox insmod"). After deleting the link, just reboot and your drive should again be recognized as formatted and your shares available. If this does not work for you and your drive was marked as "Not formatted" and not as "Not installed", you can still benefit from the old workarounds below. If these work but not the simple deletion of /opt/sbin/insmod, please notify on IRC. January 10, 2005, at 07:39 PM
by --
Changed line 37 from:
to:
Deleted lines 100-103:
if ( [ -r /mnt/sda2/unslung/rc.local ] && . /mnt/sda2/unslung/rc.local ) ; then return 0 ; fi if ( [ -r /mnt/sdb2/unslung/rc.local ] && . /mnt/sdb2/unslung/rc.local ) ; then return 0 ; fi if ( [ -r /unslung/rc.local ] && . /unslung/rc.local ) ; then return 0 ; fi January 10, 2005, at 05:54 PM
by --
Added line 33:
January 10, 2005, at 04:59 PM
by --
Changed lines 19-138 from:
9. Type 'df' is there sda1? no? then we have a problem, we are still working on..solution here to:
9. Type 'df' is there sda1? no? then we have a problem, we are still working on...solution here hopefully soon. at least you can backup your data now. Sometimes steps 4-9 isn't needed. Just have the drives disconnected on boot and connect them later. USB_Detect will se them and mount them. Go figure. Preliminary workaround for this problemNote: This will only work if the above solution works - you must be able to mount your data partition manually. Also, this solution can in theory be used to mount lots of different file systems on the slug and should be integrated with /etc/fstab, but this is a proof of concept. The startup mounting and detection system in Unslung 3 is based on the Linksys utility /etc/rc.d/rc.bootbin for which not source code is availabale. To make the system boot and mount drives that rc.bootbin does not recognize, one solution is to make a replacement diversion script for rc.1 which does not use rc.bootbin. This means the following:
NOTE: Scripts below are testing quality at best. Also, I have no serial console so logging is done to HDD to check for problems. Lots of useless logging statements can be removed. /unslung/rc.1table border=0 width=100% bgcolor=#eeffee? cell? #!/bin/sh
/bin/echo "In diversion rc.1" > /unslung/rc.1.log
/bin/ls /proc/hd* >> /unslung/rc.1.log
/bin/ls /bin/*mount* >> /unslung/rc.1.log
# First remount config partitions on the right spot
# Mount data partitions on /dev/sda and /dev/sdb
# For now, don't mount swap on /dev/sdb, but it could improve performance, so later...
if ( [ -f /proc/hd_conn ] ) ; then
/bin/echo "Mounting partitions on /dev/sda" >> /unslung/rc.1.log
# Mount data partition and swap (conf partition already mounted)
/bin/mount -t ext3 /dev/sda1 /share/hdd/data
/bin/echo "Enabling swap" >> /unslung/rc.1.log
/sbin/swapon /dev/sda3
fi
if ( [ -f /proc/hd2_conn ] ) ; then
# Mount data partition
/bin/mount -t ext3 /dev/sdb1 /share/flash/data
fi
/bin/echo "Done mounting partitions" >> /unslung/rc.1.log
# Start network
/bin/echo "Starting network:" >> /unslung/rc.1.log; /etc/rc.d/rc.network; check_status
/bin/echo "Restore time and timezone:"; /etc/rc.d/rc.rstimezone; check_status
/bin/echo "Restore usrgrpshares:"; /etc/rc.d/rc.reset_usrgrpshare; check_status
/bin/echo "Generating telnet password:"; /usr/sbin/TelnetPassword?; check_status
/bin/echo "Starting WEB Server:"; . /etc/rc.d/rc.thttpd;check_status
/bin/echo "Starting samba:"; . /etc/rc.d/rc.samba
# /bin/echo "Starting download:"; /usr/sbin/download
/bin/echo "Starting INET Server:"; . /etc/rc.d/rc.xinetd; check_status
/bin/echo "Creating ramfs for /tmp:"; /bin/mount -t ramfs none /tmp -o maxsize=512
/bin/echo "Starting QuickSet? Daemon :"; . /etc/rc.d/rc.quickset
/bin/echo "Starting Crond :"; . /etc/rc.d/rc.crond
/bin/echo "Starting Rest Task :"; . /etc/rc.d/rc.local
/bin/echo "Starting UNSLUNG Packages:"; ( . /etc/rc.d/rc.unslung-start )
/usr/bin/Set_Led ready
/usr/bin/Set_Led beep1
/bin/echo "Checking disk status :"; /usr/sbin/CheckDiskFull 2 >/dev/null
/bin/echo "Exiting /unslung/rc.1" >> /unslung/rc.1.log
return 0
/unslung/rc.local (optional)table border=0 width=100% bgcolor=#eeffee? cell? #!/bin/sh HOSTNAME=`hostname` if ( [ -r /mnt/sda2/unslung/rc.local ] && . /mnt/sda2/unslung/rc.local ) ; then return 0 ; fi if ( [ -r /mnt/sdb2/unslung/rc.local ] && . /mnt/sdb2/unslung/rc.local ) ; then return 0 ; fi if ( [ -r /unslung/rc.local ] && . /unslung/rc.local ) ; then return 0 ; fi /usr/sbin/CheckResetButton? 2>/dev/null /usr/sbin/CheckPowerButton? 2>/dev/null # /usr/sbin/do_umount 2>/dev/null /bin/chmod 775 /share 2>/dev/null /bin/chown admin.everyone /share/hdd/ 2>/dev/null /bin/chown admin.everyone /share 2>/dev/null /etc/rc.d/rc.quota &>/dev/null /bin/echo "$HOSTNAME: boot complete!"; check_status return 0 /unslung/rc.quicksettable border=0 width=100% bgcolor=#eeffee? cell? #!/bin/sh return 0 /unslung/rc.reset_usrgrpsharetable border=0 width=100% bgcolor=#eeffee? cell? #!/bin/sh return 0 Bobtm. Deleted line 139:
hopefully soon. at least you can backup your data now. January 09, 2005, at 12:02 PM
by --
Added line 4:
Added line 6:
Added line 8:
Added line 10:
Added line 12:
Added line 14:
Added line 16:
Changed lines 18-21 from:
9. Type 'df' is there sda1? no? then we have a problem, we are still working on..solution here hopefully soon. at least you can backup your data now. to:
9. Type 'df' is there sda1? no? then we have a problem, we are still working on..solution here hopefully soon. at least you can backup your data now. January 09, 2005, at 12:01 PM
by --
Changed lines 1-11 from:
Describe TroubleshootADriveNotFormattedCondition here. to:
Having no access to your NSLU2 no more? Can't find your NSLU2-harddrive in the net anymore? Then this is the place to be.. 1. Shut NSLU2 down. 2. Switch USB-HDD off or disconnect it. 3. Turn NSLU2 on. 4. Enable Telnet (e.g. via http://192.168.1.77:/Management/telnet.cgi) 5. Telnet into NSLU2 with root/uNSLUng login/password. 6. Type 'sh' (not necessary, just more comfortable) 7. Type 'mount -t ext3 /dev/sda1 /mnt/tmpmnt'. 8. Type 'ls /mnt/tmpmnt'. So now you (hopefully) see your data. 9. Type 'df' is there sda1? no? then we have a problem, we are still working on..solution here hopefully soon. at least you can backup your data now.
view ·
edit ·
print ·
history ·
Last edited by fcarolo.
Based on work by Rob Anderson, Javier Carreņo, Hans Claassens, zippy, tman, jacek, Hans Persson, vic, rwhitby, Keith Garry Boyce, Tres Seaver, bobtm, and Wipmac. Originally by Wipmac. Page last modified on March 12, 2007, at 10:58 PM
|