Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got my AMD64 system working (reasonably) well with Ubuntu and a 250 GB SATA hard drive (/dev/sda1).
Now I want to use my old 80Gb ATA hard drive and harvest its data (ie. no reformatting) as well in the system. (1/3 of a TB storage fer less than $200 - sometimes the advance of technology is mindboggling).
New HD is still on SATA cable - works fine.
Due to the geometry of the case, the old HD is on the secondary IDE cable.
(DVD drive on primary IDE)
The system is recognizing the second HD as hdc, but it will not mount. It returns: " mount: /dev/hdc8 already mounted or /mnt/hdd2 busy"
There is no evidence that the drive is actually mounted anywhere. (yes hdc8 is a valid partition, and /mnt/hdd2 is a legit folder)
When I run cfdisk on the drive it shows up fine.
Is the hardware configuration OK? If so, what would i need to do to mount the old hard drive partitions?
I don't think this is a hardware problem. Could you please state the command you are using to mount, and the filesystem of the partition in question. For most filesystems you can mount them in more than one place, and the 'already mounted' error only happens when you try to mount as a regular user, so let's try the foolproof method - I'll assume that you are in a root shell and that the /dev/hdc8 partition is formatted ext3.
# cd /tmp
# mkdir mountpoint
# mount -t ext3 /dev/hdc8 mountpoint
# ls mountpoint
If that fails then maybe there is a hardware problem. Use the file command to take a peek at the raw partition info:
file -Ls /dev/hdc8
If it works then you have a configuration problem. You'll have to check your /etc/fstab, and maybe use fuser to see if anything is conflicting on that folder.
I was using "sudo mount /dev/hdc8 /mnt/olddrive" - i figured that mount woudl autodetect. the filesystem type.
So I tried "sudo -t ext2 mount /dev/hdc8 /mnt/olddrive"
(new folder name fer mountpoint)
same error: "mount: /dev/hdc8 already mounted or /mnt/olddrive busy"
So I then tried "file -Ls /dev/hdc8"
Which returned: "/dev/hdc8: writable, no read permission (Permission denied)"
As far as hardware goes, this drive was working fine less than 24 hrs ago in its old computer - could the position on the secondary IDe bus have soemthing to do with it? (I tried the drive jumper settings in both the slave and master positions, no change in behavior - currently in master).
I am running Ubunutu on the box (I like Debian, but i wanted AMD64 support) so I have to sudo everything - could that have an effect?
OK that looks like a kernel issue I guess. I'm sure I saw in another article on LQ this weekend saying that the AMD64 kernel has issues with drive geometry (the post was related to FC3). You can feed geometry parameters to the kernel at boot, so maybe that is needed, but I'm really just speculating now. You can check the currently detected values with hdparm -v.
I've never tried the Ubuntu no-root environment and can't really see the point of it, but the sudo command does run stuff with true root privileges, so that won't be a problem. Surely you can still do 'sudo bash -l' and get a root shell anyway?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Did you have the old ata drive setup as a stand alone hardrive with linux on it?
What does your /etc/fstab file have in it like on the new sata drive?
Lets also see ' fdisk -l ' output of the sata.
If the ATA is bootable lets see the ' fdisk -l ' output of it by itself.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
I just read over the post again. Just doesn't make any sense to me why it won't mount. With both drives plugged in at boot and the sata booted to its OS install. It can see its sata drive on sda* and the ata drive on hdc*. The mount command you used is ' sudo mount -t ext2 /dev/hdc8 /mnt/olddrive '. You say you have valid directory called /mnt/olddrive.
More thoughts
So the drive is formmated as ext2 not anything else?
What does your /etc/fstab look like? I might see something there.
Also your /etc/mtab while I am at it? It might help if I see the issue with fstab.
Have you tried mounting as root and not sudo?
Little confused What distro is on the sata again?
Still thinking if I see or think of something I will post.
Later
- All the partitions on hdc are ext2 (except for swap)
- Can't really do anything as root, Ubuntu won't let me
- Sata drive (New drive, working fine) is Ubunutu Warty Warthog (kernel 2.6.10)
- Ata drive (Old drive, can't read) was Debian Sarge (kernel 2.4.22)
This appears to be getting weirder all the time.
The error still is: "mount: /dev/hdc8 already mounted or /mnt/olddrive busy"
When I try "umount /dev/hdc8" , I get "umount: /dev/hdc8: not mounted"
When I try "fuser /mnt/olddrive" I get nothing.
and "file -Ls /dev/hdc8" now gives: "/dev/hdc8: Linux rev 1.0 ext2 filesystem data (mounted or unclean)"
Finally, "strings /dev/hdc8 | head" gives
Code:
ZAD@B
lost+found
matt
warrior
vTLEN
248659TCON
CountryTPE1
Travis TrittTIT2
Best Of Intentions
2>jCI
This means that I am reading off the raw data on the dirve, correct?
I shut down mdadm and some daemon that montiors mounted fielsystems.
I remounted using Knoppix, which reads and mounts the partition AOK (but doesnt mount my SATA drive or display properly on my TV)
Any guesses?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.