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.
So I'm trying to mount a (I assume ext3) partition.
Code:
[root@localhost azevedo]# mount -t ext3 /dev/hda4 /mnt/hda4
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
or too many mounted file systems
I dobot I have too many because the only 'other' partition is hdb1 which is an ntfs filling system. Ironically I got that one mounted but cannot get a Linux filling system recognized.
Code:
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1657 13309821 83 Linux
/dev/hda2 1658 2549 7164990 83 Linux
/dev/hda3 2550 2676 1020127+ 82 Linux swap
/dev/hda4 2677 4865 17583142+ 83 Linux
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9729 78148161 7 HPFS/NTFS
It's there. Another question though: Can I add hda2 onto hda1? That was going to be for windows but I reformated it to Linux.
do you have ext3 support in the kernel? (you probably do)
is the partition defined in /etc/fstab.
Most importantly, since you don't seem sure on whether it's ext3 or not, just issue
Code:
mount /dev/hda4 /mnt/hda4
and make sure the mount point exists
Quote:
It's there. Another question though: Can I add hda2 onto hda1? That was going to be for windows but I reformated it to Linux.
Besides qtparted that might do the trick for you, I'm sure there are command line tools to resize partitions. You'll probably have to erase hda2 and then resize hda1 to occupy the empty space... Someone else can probably give you more info on this one.
do you have ext3 support in the kernel? (you probably do)
is the partition defined in /etc/fstab.
When I installed Linux I put it on ext3 so I assume so. fstab gave me "bash: /etc/fstab: Permission denied" and I'm in root. However, the partition does show up with /sbin/fdisk -l.
Quote:
Most importantly, since you don't seem sure on whether it's ext3 or not, just issue
code:
mount /dev/hda4 /mnt/hda4
My version, I guess, requires that I specify a filling system with the mount command. I have tried it with ext2 though:
Code:
mount -t ext dev/hda4 /mnt/hda4
mount: fs type ext not supported by kernel
I think it is ext3 sense hda1 is and fdisk -l says Linux for both partitions. Is there any other way I can find out what the partition is?
you could try cfdisk /dev/hda, it shows what filesystems you have. But be careful not to accidently delete a partition (it's curses-fdisk). You might have a reiserfs-partition.
/etc/fstab is a config file. Issue the following command to edit it:
Code:
nano -w /etc/fstab
You should have something like this there
Code:
/dev/hda4 /mnt/hda4 ext3 noatime,users,exec 0 0
enter that line and then you should be able to mount the partition by simply entering:
just add the fstab entry I supplied to your fstab-file. I don't think there's anything really wrong with what you have there now. Just leave the rest as it is.
Quote:
How do I use cfdisk? I've tried several things and it just goesto the next line doing nothing.
code:
[root@localhost azevedo]# #cfdisk P /dev/hda4
[root@localhost azevedo]#
just write:
Code:
cfdisk /dev/hda
that should get you to a page where you can see all the partitions on hda.
just add the fstab entry I supplied to your fstab-file. I don't think there's anything really wrong with what you have there now. Just leave the rest as it is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.