mounting & fstab help

  • biruru
  • Novice
  • Novice
  • biruru
  • Posts: 31
  • Loc: Toronto

Post 3+ Months Ago

Hi, i just format ide drive with qtparted and created a folder /seagate for mounting an ide drive.
here's my current fstab
cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=/video /video xfs defaults 1 2
LABEL=SWAP-sda5 swap swap defaults 0 0

I want to add /seagate to it with xfs file system and defaults 1 2
how can i use mount to mount the drive properly, i'm not too good with the mount command, can someone help

mount /dev/hda /seagate -t xfs doesnt give me the proper execution:

mount: wrong fs type, bad option, bad superblock on /dev/hda,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

Quote:
tim@shibby:~$ mount --help
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .


so....based on what we can gather by reading the help information ;) why dont we try something crazy like.. mount -t xfs /dev/hda1 /seagate
you were trying to mount /dev/hda which is the drive itself. you have to mount a partition that exists on the drive :]

THAT IS ASSUMING that you formatted the entire hda drive and thats not currently the drive you're operating from. but it looks like you have a sata drive so i'm taking a stab and assuming thats the drive you're booting from.


sorry if you sense a hint of sarcasm, my tired mind thinks i'm funny ;)
  • biruru
  • Novice
  • Novice
  • biruru
  • Posts: 31
  • Loc: Toronto

Post 3+ Months Ago

thanks AnarchY SI, you save the day again!
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

awesome :-D
you're welcome. if you have any more problems, post away.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 90 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.