LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-19-2004, 04:58 PM   #1
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Mounting a partition


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.

 
Old 12-19-2004, 05:23 PM   #2
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Rep: Reputation: 30
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.
 
Old 12-19-2004, 05:51 PM   #3
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Quote:
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?

edit:
ext2 gives the same error

Last edited by 1veedo; 12-19-2004 at 05:54 PM.
 
Old 12-19-2004, 05:58 PM   #4
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Rep: Reputation: 30
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:

Code:
mount /mnt/hda4
 
Old 12-19-2004, 06:20 PM   #5
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP-hda3         swap                    swap    defaults        0 0
/dev/hdd                /media/cdrecorder       auto    pamconsole,fscontext=sy$
/dev/hdc                /media/cdrom            auto    pamconsole,fscontext=sy$
/dev/fd0                /media/floppy           auto    pamconsole,fscontext=sy$
I dont think that looks very good. 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]#
 
Old 12-19-2004, 06:27 PM   #6
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Rep: Reputation: 30
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.
 
Old 12-19-2004, 06:40 PM   #7
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Quote:
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.
And, um...I really dont know how to do that. I found this:
http://www.humbug.org.au/talks/fstab/fstab_options.html
...but none of it is actually making any sense to me.
Quote:

just write:

code:

cfdisk /dev/hda
I tried that but:
Code:
[root@localhost azevedo]# cfdisk /dev/hda
bash: cfdisk: command not found
I think if I can add the fstab entry I'd be fine though.
 
  


Reply



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
Mounting partition peaceslp Linux - Software 4 09-28-2005 01:08 PM
Mounting Partition DDRfreak2 Mandriva 8 09-10-2005 12:33 PM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 10:59 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM
Partition mounting Rex_chaos Linux - General 11 09-24-2001 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:58 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
Open Source Consulting | Domain Registration