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 have an old hard drive with Red Hat Linux on it. It was part of a dual boot system and the boot loader crashed. I have mounted the old Linux drive (/dev/hdb1) however it only shows me the boot directory. How do I access the other directories.
Here is the output of fdisk -l for the hdb1
Disk /dev/hdb: 10.2 GB, 10205282304 bytes
255 heads, 63 sectors/track, 1240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 1240 9960268+ c Win95 FAT32 (LBA)
/dev/hdb2 1241 1241 0 e Win95 FAT16 (LBA)
The subject is misleading as apparently you know how to mount the drive, and apparently they are Windows drives from the filesystems.
cd (change directory, spaces in names must be inclosed in delimiters such as quote marks)
Examples:
cd /mnt/<your-mount-point>/"My Documents"
ls -al (list all long)
Remember that Linux is case sensitive where Windows isn't.
Last edited by fancypiper; 06-10-2004 at 11:49 PM.
Originally posted by fancypiper The subject is misleading as apparently you know how to mount the drive, and apparently they are Windows drives from the filesystems.
cd (change directory, spaces in names must be inclosed in delimiters such as quote marks)
Examples:
cd /mnt/<your-mount-point>/"My Documents"
ls -al (list all long)
Remember that Linux is case sensitive where Windows isn't.
Ahh, but there's another problem. This disk is purely linux, I don't know why fdisk is showing the disk as FAT32. This hard drive was part of a dual boot system where one hard drive had Windows 2000 and the boot manager and the other disk (this one in question) had Linux
Also, once drives are mounted, try the mount command to see what partitions mounted and the filesystem types they contain.
Code:
Fri Jun 11 01:17 PM root@uilleann ~ # mount
/dev/hda7 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda3 on /boot type ext3 (rw)
/dev/hdb1 on /pub type ext3 (rw)
/dev/hda9 on /pub/home/fancy/stuff type ext3 (rw)
/dev/hda1 on /mnt/win98 type vfat (rw)
/dev/hda2 on /mnt/win2k type ntfs (rw)
/dev/hdc1 on /mnt/fat32 type vfat (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda6 on /mnt/gentoo type ext3 (rw)
/dev/hda3 on /mnt/gentoo/boot type ext3 (rw)
/dev/hdb1 on /mnt/gentoo/pub type ext3 (rw)
proc on /mnt/gentoo/proc type proc (rw)
Last edited by fancypiper; 06-11-2004 at 12:41 PM.
Also, once drives are mounted, try the mount command to see what partitions mounted and the filesystem types they contain.
Code:
Fri Jun 11 01:17 PM root@uilleann ~ # mount
/dev/hda7 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda3 on /boot type ext3 (rw)
/dev/hdb1 on /pub type ext3 (rw)
/dev/hda9 on /pub/home/fancy/stuff type ext3 (rw)
/dev/hda1 on /mnt/win98 type vfat (rw)
/dev/hda2 on /mnt/win2k type ntfs (rw)
/dev/hdc1 on /mnt/fat32 type vfat (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda6 on /mnt/gentoo type ext3 (rw)
/dev/hda3 on /mnt/gentoo/boot type ext3 (rw)
/dev/hdb1 on /mnt/gentoo/pub type ext3 (rw)
proc on /mnt/gentoo/proc type proc (rw)
Thanks but I know the output I generated is from
fdisk -l
as root. I omitted the output of hda because that drive is not important. I do not remember all the partitions for the disk in question but I do remember the partitioning was a normal Linux installation so I guess it had a boot partition, one regular disk partition, a / partition, and one swap. Here is another bizarre characteristic. The output of
df -h
shows that the disk is only 16M large but the output of fdisk shows the disk to be 10G.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.