LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing file system to ext3 (https://www.linuxquestions.org/questions/linux-newbie-8/changing-file-system-to-ext3-337092/)

mohtasham1983 06-25-2005 01:41 PM

changing file system to ext3
 
when I write command moun I recieve this message:
/dev/hdb8 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdb1 on /home type ext3 (rw)
/dev/hdb5 on /media/hd/e type vfat (rw)
/dev/hdb7 on /media/hd/g type vfat (rw)
/media/hd/e on /home/mohammad/Hard_Drive/E_partition type none (rw,bind)
/media/hd/f on /home/mohammad/Hard_Drive/F_partition type none (rw,bind)
/media/hd/g on /home/mohammad/Hard_Drive/G_partition type none (rw,bind)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
but I made a mistake accidentally and destroyed my drive f which was fat32 for windows XP.
when my computer starts it says that it is unable to mount hdb6 (drive F). it says bad type, bad option, bad super block or too many mounted file systems.
I want to change my hdb6 to ext3. I have nothing in hdb6 to be lost.

mmmm 06-25-2005 02:39 PM

type : mkfs.ext3 /dev/hdb6 . It will format partition as ext3 fs.

mohtasham1983 06-25-2005 04:10 PM

thanks, it works,
after that I typed mount /dev/hdb6 /media/hd/f
Now I have a ext3 file system
But I am not able to write any information in it

mmmm 06-26-2005 04:48 AM

try - mount -o rw /dev/hdb6 /media/hd/f
And do it as root. Should work. And what does ´df -kah´ writes?

mohtasham1983 06-26-2005 06:05 AM

it doesn't work.
what do you mean by ´df -kah´?
if I want to mount it automatically how can I use -o auto?

mmmm 06-26-2005 03:12 PM

"df -kah" displays all mounted disks and free/busy space on them. To mount disk automatic on boot you need to add it in /etc/fstab. Line about this partition should looks like :
/dev/hdb5 /home ext3 defaults 1 2
What is -o auto ? I have never heard about sth like this

mohtasham1983 06-27-2005 03:20 AM

thank you man,
it works now
-o auto is an option for mounting
when I typed man mount is read some description about it but I understood nothing :)

mmmm 06-28-2005 10:27 AM

Writing also works ?

mohtasham1983 06-28-2005 03:39 PM

yes, even writing works now


All times are GMT -5. The time now is 06:05 PM.