Bekijk de volledige versie : Can't mount second partition
I have a wl-500g. And sometimes I can't mount my second partition
/dev/discs/disc1/part3 on tmp/harddisk
when I try to mount it, it says mount: Mounting /dev/discs/disc1/part3 on tmp/harddisk failed: Invalid argument
/dev/discs/disc1/part2 always works on /opt
I can find the partition with fdisk easily. What to do?:confused:
I have 350GB of files I need to access.
newbiefan
20-01-2008, 11:55
Can you post your fw version and post-boot?
How many discs do (have) you connect to your asus?
If fw is newest olegs, is there a file fstab?
I have olegs latest fw 1.9.2.7-8, right now i'm only using
#!bin/sh
dropbear
in post-boot but I usually use
# test if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
#if [ ! -d /dev/discs ]
#then
#insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
#fi
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
mount /dev/discs/disc0/part3 /tmp/harddisk
# Activate swap
swapon /dev/discs/disc0/part1
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
I have one disc connected to my wl-500gP
And I don't think I have fstab, what is that? I have only followed [How To] Install and Configure Olegs firmware, to get it to work, shouldn't I have got it in some way if I followed those instructions.
newbiefan
20-01-2008, 13:08
Well, your post-boot looks pretty good, just one simple improvement:
when mounting to /opt it is better to mount everything and then wait for
/opt, further - sometimes a short sleep command before rc.unslung starts
can be helpful.
Fstab is a description file for your partitions, when this file exist, your router mounts everything to the specified folder at start-up without any mount.
A bit mor information about fstab:
http://wl500g.info/showthread.php?t=12295
I've adjusted your post-boot.
Further, you've choosen a wrong disc, your disc is in /dev/disc/disc0/part3
not disc1....
So it's right, when getting error messages...
Hi,
I don't know if it's the same, but I had some problems a while ago with mounting partitions.
I first tried to mount it to /tmp/harddisk (same as you) while '/tmp/harddisk' existed on the router it couldn't mount to it (possibly because that dir had files in it!)
There's a part1 (and maybe a part2) folder in 'tmp/harddisk' which is empty when nothing is mounted to that spot.
if '/tmp/harddisk/part1' exists and is an empty folder, try to mount it to that location..
Hope this helps
Nothing of this works, I have tried to downgrade to Oleg 1.9.2.7-7g but that doesn't work either.
The thing is it worked before and today it just stopped. And I hadn't changed anything
newbiefan
20-01-2008, 15:22
Ok, don't worry....we'll get it!
perform a ls /proc/scsi
and then a: ls/dev/discs
and if disc0 exist, ls /dev/discs/disc0
If scsi show usb-storage-0, then device is detected and must show up in /dev/discs/disc0.
Further when disc0 exist, there must be at least a part1 maybe more, depending to your amount of partitions.
Ok, don't worry....we'll get it!
perform a ls /proc/scsi
and then a: ls/dev/discs
and if disc0 exist, ls /dev/discs/disc0
If scsi show usb-storage-0, then device is detected and must show up in /dev/discs/disc0.
Further when disc0 exist, there must be at least a part1 maybe more, depending to your amount of partitions.
When I perform ls /proc/scsi
usb-storage-0 usb-storage-1 shows up
but when I perform ls/dev/discs it says
-sh: ls/dev/discs: not found
and when I perform ls /dev/discs/disc0 it says /dev/discs/disc0 in lightblue letters.
newbiefan
20-01-2008, 16:39
So it means something is wrong with your usb-storage.
Because when performing a 'ls /dev/discs/disc0'
something like
disc0 part1 part2 part3
should be shown, when just nothing is listed, it means there is no valid partition.
If you have any other storage device like a stick or other hdd ist would be helpful, just to see, that your router can detect your usb device in a correct way.
So it means something is wrong with your usb-storage.
Because when performing a 'ls /dev/discs/disc0'
something like
disc0 part1 part2 part3
should be shown, when just nothing is listed, it means there is no valid partition.
If you have any other storage device like a stick or other hdd ist would be helpful, just to see, that your router can detect your usb device in a correct way.
I installed Ubuntu 7.10 on my computer and tried to mount the disc, it seems to be something wrong with the fs. I guess I've had a bit of disc crash.:( If there's anything to do about it please tell me.
Don't forget space:
ls /dev/discs
Check also output of:
dmesg
find out everything related to your hdd
newbiefan
20-01-2008, 21:48
Try your second hdd, if you can see and mount it proper, maybe fs is destroyed.
Anyhow, looks like you have to start again - hopefully you have a backup.
I suggest to check from time to time your harddisk.
Performing a check.....now it's not possible any more, maybe next time, but then you should be prepared.
Unmount everything:
swapoff
look what a mount says: 'mount'
if any partition is mounted which you wanna check, unmount before, then
e2fsck -py /dev/discs/disc0/part3
Consider, that e2fsck is stored at /opt/sbin - when you unmount /opt, e2fsck is not available! Therefore I've a stick with the most important progs which I can mount.
OK, thanks, my FS was broke. And I have tried to recover the data but with no luck. I had backup of about 50GB of data but the rest is gone. Well, I just have to start over again. This is life at it's best;)