LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


Search this Thread
Old 12-05-2009, 01:56 AM   #1
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Rep: Reputation: 31
Editing partitions through SSH then mounting.

I have a partition on my server that is not mounting correctly, i am using cfdiskt to write the partition and then editing my fstab and mount -a. I have not been successfull yet, what is the best way to go about this process? Maybe something step by step so I don't miss anything. Is it that cfdisk just isn't formatting the partition really or what? I've tried this over and over.


root@kate:~# mount -a
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
# /etc/fstab: static file system information.
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=aa763522-2bd9-480d-9cef-7b6f9e3adc11 / ext4 errors=remount-ro 0 1

/dev/sda5 none swap sw 0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sda3 /media/media1 ext3 defaults 1 1
/media/media1 is chmoded to 777

Last edited by mitchell7man; 12-05-2009 at 02:00 AM.
Old 12-05-2009, 03:50 AM   #2
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137

is there a filesystem on your partition? As the error message states the superblock of the filesystem cannot be found.
Old 12-05-2009, 04:04 AM   #3
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
i ran a command that it recommended and it is tellimg me that it cant find the ext3 file system on sda3. Is there a better way to partition via command prompt?
Old 12-05-2009, 05:56 AM   #4
Registered: Aug 2002
Posts: 12,390

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
To elaborate on mesiol's post cfdisk creates a partition but not a filesystem i.e it does not format). To create a filesystem use the mkfs command.

I assume this is a new partition and not an existing one that contains data.
Old 12-05-2009, 06:19 AM   #5
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
oh, okay. Thanks for helping out the noob.



mount, partition, ssh

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
Editing partitions Hb_Kai Linux - General 4 02-15-2009 12:35 PM
cant login after editing partitions Person_1873 Linux - Newbie 6 07-21-2008 10:12 PM
Editing my partitions sudarshan22 Ubuntu 2 06-07-2008 11:07 PM
Editing Partitions Using Live Disc... TelQuel Ubuntu 3 06-05-2008 08:20 PM
Editing NTFS and FAT32 partitions under linux? eire Linux - Hardware 2 12-07-2003 07:54 PM

All times are GMT -5. The time now is 08:15 PM.

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