Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Formatting a partition in linux

  • 14-10-2001 10:28am
    #1
    Registered Users, Registered Users 2 Posts: 197 ✭✭


    I made a 4gig 'Windows 95 Fat32' partition in Debian/Linux with cfdisk. I then formatted it in windows. Although I can use it in windows, when I try and mount it in linux, it says it's not a valid msdos partition and asks me to specify the fs. Anyone know how to fix this problem? I was think if I formatted it in linux as an msdos partition then linux would be happy?


Comments

  • Closed Accounts Posts: 3,859 ✭✭✭logic1


    You should be able to mount it with mount -t msdos /dev/<partition number /<mount point>

    If it's after been formatted in windows then it should be a fat16 partition which can easily be accessed using the msdos fs type..

    What command are you using and what version of linux?

    .logic.


  • Registered Users, Registered Users 2 Posts: 197 ✭✭Patrick


    Linux 2.2.19.
    tried that command.

    pizza:~# mount -t msdos /dev/hdd /personal
    mount: wrong fs type, bad option, bad superblock on /dev/hdd,
    or too many mounted file systems
    pizza:~# df
    Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/hdd2 7692500 481132 6820588 7% /
    /dev/hdd1 31077 1305 28168 4% /boot
    /dev/hdd3 3842232 2378172 1268872 65% /home
    pizza:~#


  • Closed Accounts Posts: 3,859 ✭✭✭logic1


    You could try:

    /sbin/mkdosfs /dev/hdd

    Then mount /dev/hdd /tmp/mnt -t vfat

    .logic.


  • Registered Users, Registered Users 2 Posts: 197 ✭✭Patrick


    /sbin/mkdosfs /dev/hdd

    sorted it.
    Thanks very much
    :D


  • Closed Accounts Posts: 296 ✭✭moist


    ERm... You had partitions on hdd1 hdd2 and hdd3
    you then went and did '/sbin/mkdosfs /dev/hdd' (i.e. the full disk)
    should you not have used another partition ?? hdd4 perhpas ??


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 197 ✭✭Patrick


    Well spotted :)
    What I really did was '/sbin/mkdosfs /dev/hdd6' I just didn't bother mentioning it here, all I needed was the command unless I ran into problems after that. ;)

    Don't suppose you'd have answer to my other PPP question in the UNIX thread.


Advertisement