Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi,
Following the instructions in various threads on this forum, I successfully managed to mount an old 80GB drive using
insmod usb-storage.ko
mke2fs the sdc disk
mount
altering samba.conf for the new disk
and everything worked fine.
Now the activity light on the hard disk was not working, so I unmounted it after stopping samba and when it comes time to remount I get the following from dmesg
----------------------------------------------------------------------------------------
***************************************
* HD0 stand by now! *
***************************************
***************************************
* HD1 stand by now! *
***************************************
#######################################
# HD0 awake now ! #
#######################################
#######################################
# HD1 awake now ! #
#######################################
***************************************
* HD0 stand by now! *
***************************************
***************************************
* HD1 stand by now! *
***************************************
#######################################
# HD0 awake now ! #
#######################################
#######################################
# HD1 awake now ! #
#######################################
***************************************
* HD0 stand by now! *
***************************************
***************************************
* HD1 stand by now! *
***************************************
#######################################
# HD0 awake now ! #
#######################################
#######################################
# HD1 awake now ! #
#######################################
usb 1-1: USB disconnect, address 2
usb 1-1: new high speed USB device using ehci_platform and address 3
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Vendor: SAMSUNG Model: SP0842N Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdc: 156301488 512-byte hdwr sectors (80026 MB)
sdc: assuming drive cache: write through
SCSI device sdc: 156301488 512-byte hdwr sectors (80026 MB)
sdc: assuming drive cache: write through
sdc: unknown partition table
Attached scsi disk sdc at scsi3, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi3, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
usb 1-1: USB disconnect, address 3
usb 1-1: new high speed USB device using ehci_platform and address 4
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: SAMSUNG Model: SP0842N Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdc: 156301488 512-byte hdwr sectors (80026 MB)
sdc: assuming drive cache: write through
SCSI device sdc: 156301488 512-byte hdwr sectors (80026 MB)
sdc: assuming drive cache: write through
sdc: unknown partition table
Attached scsi disk sdc at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi4, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
usb 1-1: USB disconnect, address 4
/ #
-------------------------------------------------------------------------------------------------------
I've tried remounting with
mount -t ext2 /dev/sdc1 /mnt/usb80 and get
'mount: mounting /dev/sdc1 on /mnt/usb80 failed: No such device'
AS you can tell I'm a Linus newbie, but what am I missing to get it remounted.?
I've modified fun_plug to mount the disk when it runs, but using the commands I've tried manually. Insmod will not install as the DNS323 has not been switched off on this occasion.
I do not want to reformat it as I now have data on it.
TIA
EDIT: Just found out that I should have used 'umount /dev/sdc1' and I used 'umount /mnt/usb80'. ?
Last edited by gasman (2009-12-28 14:44:29)
Offline
Nobody? :-(
Offline
Offline
gasman wrote:
Hi,
Following the instructions in various threads on this forum, I successfully managed to mount an old 80GB drive using
insmod usb-storage.ko
mke2fs the sdc disk
mount
altering samba.conf for the new disk
...
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: SAMSUNG Model: SP0842N Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdc: 156301488 512-byte hdwr sectors (80026 MB)
sdc: assuming drive cache: write through
SCSI device sdc: 156301488 512-byte hdwr sectors (80026 MB)
sdc: assuming drive cache: write through
sdc: unknown partition table
Attached scsi disk sdc at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi4, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
usb 1-1: USB disconnect, address 4
You formated sdc instead of sdc1? Bad. Use fdisk to make a new partition table. all your data will be gone.
afair:
fdisk /dev/sdc
o (new partition table)
n (new partition)
p (primary)
1 (id)
return (whole space)
w (write and exit)
then format with mkfs.ext2 /dev/sdc1
Offline
fonz wrote:
Yes Fonz, that is where I got most of my info from and his associated threads when trying it all out.
I bit the bullet in the end as it seemed I was not going to get any response. The data at the time was only downloads, so I repartitioned it and started again.
I will only put data I can afford to lose for a while to see how it behaves.
I have since unmounted it and remounted it and it now seems to work OK.
Have even got it mounting when the DNS323 boots, via fun plug and a small script copied from the thread with the addition of the samba smb.conf.
Offline
Sorry, I did not make it that clear.
I did initially mke2fs /dev/sdc and then found I needed /dev/sdc1.
The display is the result when I tried to remount the drive the second time. Prior to that the disk was working as /dev/sdc1.
Something went wrong when it was unmounted and screwed the partition table. I tried using another set of superblocks but it came up with error messages all the time, and I thought, "stuff it" the data is gone start again.
I tried e2fsck etc and just got stacks of error messages and it would not accept the auto option, so I started all over again.
Will keep an eye on it before I put any 'cannot lose' data on it. :-)
oxygen wrote:
gasman wrote:
Hi,
Following the instructions in various threads on this forum, I successfully managed to mount an old 80GB drive using
insmod usb-storage.ko
mke2fs the sdc disk
mount
altering samba.conf for the new disk
...
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: SAMSUNG Model: SP0842N Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdc: 156301488 512-byte hdwr sectors (80026 MB)
sdc: assuming drive cache: write through
SCSI device sdc: 156301488 512-byte hdwr sectors (80026 MB)
sdc: assuming drive cache: write through
sdc: unknown partition table
Attached scsi disk sdc at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi4, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
usb 1-1: USB disconnect, address 4You formated sdc instead of sdc1? Bad. Use fdisk to make a new partition table. all your data will be gone.
afair:
fdisk /dev/sdc
o (new partition table)
n (new partition)
p (primary)
1 (id)
return (whole space)
w (write and exit)
then format with mkfs.ext2 /dev/sdc1
Offline
gasman wrote:
Sorry, I did not make it that clear.
I did initially mke2fs /dev/sdc and then found I needed /dev/sdc1.
The display is the result when I tried to remount the drive the second time. Prior to that the disk was working as /dev/sdc1.
Something went wrong when it was unmounted and screwed the partition table. I tried using another set of superblocks but it came up with error messages all the time, and I thought, "stuff it" the data is gone start again.
Not when you unmounted it, you formatted the whole drive (sdc) as ext2 instead of only the partition sdc1. The partition table was overwritten. As i said you need to initialise a new one with fdisk.
Offline