LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 05-10-2009, 09:32 AM   #1
learner.india
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 0
Question 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.
 
Old 05-10-2009, 10:46 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
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.
 
Old 05-10-2009, 12:08 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
/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.
 
Old 05-10-2009, 01:17 PM   #4
learner.india
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by tredegar View Post
/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
 
Old 05-10-2009, 01:23 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
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)
 
Old 05-11-2009, 01:04 PM   #6
learner.india
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by rayfordj View Post
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
 
Old 05-12-2009, 01:16 PM   #7
learner.india
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
disappointed no reply
 
Old 05-12-2009, 02:14 PM   #8
jim80net
LQ Newbie
 
Registered: May 2009
Location: San Antonio, TX
Distribution: Debian
Posts: 15

Rep: Reputation: 1
Quote:
Originally Posted by tredegar View Post
So, go ahead and give us the information we need.

... And please tell us your distro (Ubuntu? Mandrake? etc)
fdisk -l
 
Old 05-12-2009, 03:04 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by learner.india View Post
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!
 
Old 05-12-2009, 05:34 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,310

Rep: Reputation: 3871Reputation: 3871Reputation: 3871Reputation: 3871Reputation: 3871Reputation: 3871Reputation: 3871Reputation: 3871Reputation: 3871Reputation: 3871Reputation: 3871
Quote:
Originally Posted by learner.india View Post
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.
 
Old 05-13-2009, 01:24 AM   #11
sdlor
LQ Newbie
 
Registered: Mar 2008
Location: The Great NorthWest
Distribution: Fedora 14, Unbuntu 8.04
Posts: 8

Rep: Reputation: 0
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 ~]$
 
Old 05-13-2009, 01:40 AM   #12
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by learner.india View Post
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
 
Old 05-13-2009, 01:43 AM   #13
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by learner.india View Post
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 View Post
/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.

Last edited by i92guboj; 05-13-2009 at 01:50 AM.
 
Old 05-13-2009, 12:47 PM   #14
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
learner.india is disappointed...and left probably...!!!!
 
Old 05-14-2009, 07:33 AM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"urgent" Can't Install Glusterfs "ubuntu 8." sjahed Linux - Newbie 1 07-02-2008 03:13 PM
Do you view uninformative thread subjects like "urgent", "please help", etc. bigrigdriver General 17 02-21-2008 02:08 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
gnome global settings "Help Me!!" or "URGENT" Fascistchicken Linux - Software 3 01-26-2004 07:27 PM


All times are GMT -5. The time now is 12:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration