LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help me!! "URGENT" (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-urgent-724987/)

learner.india 05-10-2009 08:32 AM

Help me!! "URGENT"
 
HEllo Everybody,
I was working on a Redhat 4.0 linux server. Actually I had to take backupin a External USB Harddisk.

Essentially when i use mount command:

[root@ABC /]#mount
/dev/sdb1 on/ type ext 3 (rw)
none on /proc type proc(rw)
usbdevf on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on/boot type ext3 (rw)
none on /dev/pts type devpts (rw, gid=5, mode=620)
none on /dev/shm type tmpfs (rw)
/dev/sdc on/extdrive type ext2 (rw)

Here extdrive is a internal hard disk installed 2-3 months before.

NOw I make a new directory

[root@ABC /]#mkdir /usbdrive

Then used

[root@ABC /]# mount /dev/sdc /usbdrive

and start backup using cp command.

COpying starts but stopped after 1GB.
SOme error message appears (Actually) I don't know now.
BUt
when I use df -h to see the partion
It give result

FIle SYSTEM Size Used Avail use% Mounted on

/dev/sdb1 67G 62G 2.0G 97% /
/dev/sda1 99M 15M 79M 16% /boot
none 502M 0 502M 0% /dev/shm


WHEN I USED MOUNT COMMAND, IT GIVE
[root@ABC /]#mount
/dev/sdb1 on/ type ext 3 (rw)
none on /proc type proc(rw)
usbdevf on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on/boot type ext3 (rw)
none on /dev/pts type devpts (rw, gid=5, mode=620)
none on /dev/shm type tmpfs (rw)

/dev/sdc does not appear.

when i used to see fstab

[root@ABC /]#cat /etc/fstab
LABEL=1 / ext3 defaults 1 1
LABEL=/Boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5, mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmps defaults 0 0
/dev/sda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom /udf,iso9660 noauto,owner, kudzu, ro 0 0
/dev/fdo /mnt/floppy auto noauto,owner, kudzu 0 0
/dev/sdc /extdrive auto defaults 0 0


My problem is
(i) when i used to "df -h" why /dev/sdc not appear.
(ii) when i used to
[root@ABC /]# mount /dev/sdc /extdrive, it gives
mount: special device /dev/sdc does not exit.

(iii) when i used to
[root@ABC /]# mount /dev/sdc /usbdrive, it gives
mount: special device /dev/sdc does not exit.

However "ls command gives
[root@ABC /]#ls
bin dev extdrive home lib misc opt root tmp usb usr boot exthdd initrd lot+found mnt proc usbdrive var

Kindly help me.

rayfordj 05-10-2009 09:46 AM

it is likely that the bus reset and the external drive (once sdc) is now identified as something else (like sdd, or sde). check the output of 'fdisk -l' and/or consult 'dmesg' and/or /proc/scsi/scsi to see if it is listed.

tredegar 05-10-2009 11:08 AM

/dev/sdc is a device. You cannot mount that. Or have it in /etc/fstab
You need to mount the partition eg /dev/sdc1 on the device

Plug your disk in. As root do a
Code:

fdisk -l
That will list all your disks, and what partitions they have.
Then you should be able to make a good guess as to which is your external disk.
Then you can mount the partition you need.

learner.india 05-10-2009 12:17 PM

Quote:

Originally Posted by tredegar (Post 3536214)
/dev/sdc is a device. You cannot mount that. Or have it in /etc/fstab
You need to mount the partition eg /dev/sdc1 on the device

Plug your disk in. As root do a
Code:

fdisk -l
That will list all your disks, and what partitions they have.
Then you should be able to make a good guess as to which is your external disk.
Then you can mount the partition you need.

Hello tredegar sir,
Good evening from India.

Actually i when tried to mount my external Harddisk

[root@ABC /]# mount /dev/sdc1 /usbdrive

OR

[root@ABC /]# mount /dev/sdd1 /usbdrive

I got a message

mount: there is no such volume available.

Kindly guide me once again.

Yours Sincerely
Learner.india

tredegar 05-10-2009 12:23 PM

Quote:

Plug your disk in. As root do a

Code:

fdisk -l
That will list all your disks, and what partitions they have.
So, go ahead and give us the information we need.

... And please tell us your distro (Ubuntu? Mandrake? etc)

learner.india 05-11-2009 12:04 PM

Quote:

Originally Posted by rayfordj (Post 3536169)
it is likely that the bus reset and the external drive (once sdc) is now identified as something else (like sdd, or sde). check the output of 'fdisk -l' and/or consult 'dmesg' and/or /proc/scsi/scsi to see if it is listed.


HEllo rayford sir,
Good Morning

(i) I see through 'dmesg' command. it is 'sdc' partition is listed their.

(ii) I saw it in /proc/scsi/scsi

please tell me what do i do now?

mount command does not success.


[root@ABC /]#mount
/dev/sdb1 on/ type ext 3 (rw)
none on /proc type proc(rw)
usbdevf on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on/boot type ext3 (rw)
none on /dev/pts type devpts (rw, gid=5, mode=620)
none on /dev/shm type tmpfs (rw)

please help.
Learner.India

learner.india 05-12-2009 12:16 PM

disappointed no reply

jim80net 05-12-2009 01:14 PM

Quote:

Originally Posted by tredegar (Post 3536243)
So, go ahead and give us the information we need.

... And please tell us your distro (Ubuntu? Mandrake? etc)

fdisk -l

pixellany 05-12-2009 02:04 PM

Quote:

Originally Posted by learner.india (Post 3538445)
disappointed no reply

Why are you bumping your thread when you have not responded to all of the requests for information???
Please don't do that!

TB0ne 05-12-2009 04:34 PM

Quote:

Originally Posted by learner.india (Post 3538445)
disappointed no reply

Don't post follow-ups less than an hour apart. We volunteer our time here, so prodding us to go faster is very, VERY rude. If you need "URGENT" help, I suggest you load RedHat, SuSE, or any other enterprise-supported linux, where you PAY for the support. You can call them 24/7.

And you've been given things to do/check, but haven't done them, asked for information and haven't provided it, and don't seem to be reading what others are telling you. Until you start doing that, don't expect others to give you more than you've already got.

sdlor 05-13-2009 12:24 AM

What we are suggesting is that you run the command "fdisk -l" and then post the output you observe to this forum. (This is what mine looks like right now:
[sdlor@Xray ~]$ fdisk -l

Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x41ab2316

Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 * 6 26996 216805207+ 7 HPFS/NTFS
/dev/sda3 29933 30394 3711015 db CP/M / CTOS / ...
/dev/sda4 26997 29932 23583420 4 FAT16 <32M

Partition table entries are not in disk order

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003aac7

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 83 Linux
/dev/sdb2 26 9729 77947380 8e Linux LVM
[sdlor@Xray ~]$

linuxlover.chaitanya 05-13-2009 12:40 AM

Quote:

Originally Posted by learner.india (Post 3538445)
disappointed no reply

Can you give the information that is needed to solve your problems rather than bumping your thread with no useful posts?
As mentioned before, plug your usb drive first and then post the output of

fdisl -l

i92guboj 05-13-2009 12:43 AM

Quote:

Originally Posted by learner.india (Post 3536130)
HEllo Everybody,
I was working on a Redhat 4.0 linux server. Actually I had to take backupin a External USB Harddisk.

Essentially when i use mount command:

[root@ABC /]#mount
/dev/sdb1 on/ type ext 3 (rw)
none on /proc type proc(rw)
usbdevf on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on/boot type ext3 (rw)
none on /dev/pts type devpts (rw, gid=5, mode=620)
none on /dev/shm type tmpfs (rw)
/dev/sdc on/extdrive type ext2 (rw)

Here extdrive is a internal hard disk installed 2-3 months before.

NOw I make a new directory

[root@ABC /]#mkdir /usbdrive

Then used

[root@ABC /]# mount /dev/sdc /usbdrive

There's something that completely scapes my understanding. According to the output of mount, sdc is already mounted at /extdrive as ext2. Why are you trying to mount it again into another directory??

Quote:

COpying starts but stopped after 1GB.
SOme error message appears (Actually) I don't know now.
I can't be sure because you didn't even provide the error message (please, do it), but for the sound of it, I think that you might be getting an I/O error, hence the driver fails to access the driver and forces the unmounting, which would explain why after the failure you can't see the drive on the list of mounted drives.

Quote:

mount: special device /dev/sdc does not exit.
Once the driver detects the error the device node dissapears, until you re-attach the drive again.

A good way to diagnose this would be to use "tail -f /var/log/messages" into an xterm. Leave it around so you can see it, and then attach the drive. Some info should be written in that window telling you that the drive has been attached and a few other things. Then mount the drive if it doesn't automount, start copying whatever and when it fails look at the log window again and see if there are errors or more info spitted on it. If you can't make sense of the relevant output, post it here.

If this is the problem, then it could be faulty hardware (the driver or the usb ports for example), or a broken file system (less likely).

Quote:

Originally Posted by tredegar (Post 3536214)
/dev/sdc is a device. You cannot mount that. Or have it in /etc/fstab
You need to mount the partition eg /dev/sdc1 on the device

Nah, they both (sdc and sdc1) are just block device nodes. Whether you can mount sdc or not depends only on whether it has been formated with a proper file system or not. Yes, in linux you can use disks without partitioning them. It really isn't too surprising when you can format even a file and mount it as a loopback device using -oloop with mount.

PS. Oh, and please, learner.india, be polite. We are human beings, not robots. We are volunteers, you don't pay us. Also, marking your thread as URGENT means nothing to us. In fact, most times I ignore threads that contain that word on the title, as most users around. So each time you use "URGENT" in the tittle of your thread you are decreasing your chances to get a helpful response.

saagar 05-13-2009 11:47 AM

learner.india is disappointed...and left probably...!!!!

pixellany 05-14-2009 06:33 AM

Hearing nothing from the OP, it's time to close this.

learner;
If you are still with us, please send me an e-mail and tell me if you still want this thread open.


All times are GMT -5. The time now is 05:45 PM.