LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-15-2006, 11:14 AM   #16
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31

Well THAT was fricken stupid! All this time, I was trying to delete this folder and could'nt right? Well I could'nt delete it while it was on the fat32 partition, so I just moved it onto my Linux partition and deleted the stupid thing!

Whats that about? My windows partiton has read,write,execute permissions.
 
Old 08-15-2006, 12:33 PM   #17
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
Your fstab indicates this directory is on a second drive. The /media mount point is normally used for removable media like CD's, DVD's and USB connected storage. Also the format is the old Microsoft format vfat. It all seems a little strange. Vfat is common on flash cards but not elsewhere. Over time vfat fragments your disk you loose performance. Baring a better solution, I backup what I had in that partition (perhaps to the other hard drive.) Then I would reformat the partition to ext3 and restore the files. But that's me.
 
Old 08-15-2006, 02:42 PM   #18
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by fragos
Your fstab indicates this directory is on a second drive. The /media mount point is normally used for removable media like CD's, DVD's and USB connected storage. Also the format is the old Microsoft format vfat. It all seems a little strange. Vfat is common on flash cards but not elsewhere. Over time vfat fragments your disk you loose performance. Baring a better solution, I backup what I had in that partition (perhaps to the other hard drive.) Then I would reformat the partition to ext3 and restore the files. But that's me.
I DID think about doing that, but while transfering everything from the vfat drive over to my linux drive and back, files will fragment anyway, so it's really not an improvemnt right?
 
Old 08-15-2006, 04:30 PM   #19
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
Linux on disk formats don't suffer from fragmentation the way that vfat does. When you copy files to the Linux partition the vfat fragmentation will be removed. You may have noticed that unlike Windows, Linux has no defragmentation utilities -- they're not needed. There is no way in Linux to defragment your vfat partition. There's obviously a small degree of tedium involved, draging top level folders between windows. The end result will be a better performing file structure that doesn't degrade over time and use. Even Windows doesn't use vfat on hard disks anymore. If it was my system, I'd do it just to get rid of vfat.
 
Old 08-15-2006, 04:40 PM   #20
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by fragos
Linux on disk formats don't suffer from fragmentation the way that vfat does. When you copy files to the Linux partition the vfat fragmentation will be removed. You may have noticed that unlike Windows, Linux has no defragmentation utilities -- they're not needed. There is no way in Linux to defragment your vfat partition. There's obviously a small degree of tedium involved, draging top level folders between windows. The end result will be a better performing file structure that doesn't degrade over time and use. Even Windows doesn't use vfat on hard disks anymore. If it was my system, I'd do it just to get rid of vfat.
OK.,Thank you My Friend! I have already transfered my files over and am getting ready to install QTparted in order to re-format my vfat to ext3. I did notice a better response when opening those files after they were placed on my linux drive! (faster)

Yeah.,I know all about the absence of defrag apps in linux. Though I did read somewhere that there is still a small amount of fragmentation when transfering files over hard drives.

No biggy! All is well! Thanks again!
 
Old 08-16-2006, 02:31 AM   #21
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Two (three )things:
  • could it be two spaces between "My" and "Documents"?
  • can you "cd" into "/media/windows/My Documents/incoming" and do a "ls -a-" there?
  • if so, issue an "rmdir ./celtic" from there...
<edit> Ooops, that was my answer for the thread im my browser-cache <re-edit> not even that, just not clicked on the second page, must be too tired </re-edit>, I had no idea that there was so much activity since I viewed this first </edit>

Last edited by JZL240I-U; 08-16-2006 at 03:48 AM.
 
Old 08-16-2006, 02:47 AM   #22
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
randel6564,

Glad you got your problems resolved and did see the performance increase. It is true some degree of fragmentation may be unavoidable. It just that Linux makes an effort to minimize the problem. Microsoft ignored the defragmentation problem and the user suffers for it.
 
Old 08-16-2006, 04:03 AM   #23
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Still, I don't quite understand the response of your system. You had a "umask=0000" in your /etc/fstab and the partition is not write protected. Since the linux driver for vfat is quite mature, it shouldn't have been a problem to delete that directory. I don't recall problems like that on my setup, so what could have caused that behaviour?
 
Old 08-16-2006, 11:31 AM   #24
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by JZL240I-U
Still, I don't quite understand the response of your system. You had a "umask=0000" in your /etc/fstab and the partition is not write protected. Since the linux driver for vfat is quite mature, it shouldn't have been a problem to delete that directory. I don't recall problems like that on my setup, so what could have caused that behaviour?
Dont know. It is really strange! All I had to do to delete it was cut and paste it onto my linux desktop! The only thing that I can figure is when I wiped hda1 the last time that I installed ubuntu, I left hdb1 intact and some kind of glitch happened between the two drives because before wiping hda1, I had hdb1 in my / folder for a mount point and on the second install, I created the mount point inside /media.

So maybe there was some kind of system file that was created on hdb1 that remained there after I reinstalled my OS and created a different mount point.
 
Old 08-16-2006, 12:20 PM   #25
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Ok, I managed to delete my vfat and create ext3, but now how do I mount it? I renamed it 'vault'. I deleted the folder /media/windows and now just want to create a mount point in / instead of /media.

I know that I need to create a directory folder named 'vault', but what do I add to my /etc/fstab to enable me to mount hdb1 (ext3)?

This is the error that I get when trying to open hdb1, even after doing a sudo mount -a.,

error: device /dev/hdb1 is not removable

error: could not execute pmount


here is my /etc/fstab after deleting hdb1 (vfat).,

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0


Thanks guy's!
 
Old 08-16-2006, 12:36 PM   #26
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
System-> Administration-> Disks-> Select your 2nd disk-> Partitions tab-> name and enable. If your disk isn't listed you will need to edit /etc/fstab. I'm not expert at fstab but I believe the adding the following line should work:

/dev/hdb1 /vault ext3 defaults 0 2

Your system will boot with /vault mounted.
 
Old 08-16-2006, 12:45 PM   #27
anirudh.iitm
LQ Newbie
 
Registered: Jun 2006
Location: chennai , india
Distribution: ubuntu
Posts: 26

Rep: Reputation: 15
sorry for a newbie question,but i was just going through this thread(the (till now)24 replies piqued my curiousity .so what does the /etc/fsab error "umask=0000" mean exactly
 
Old 08-16-2006, 12:46 PM   #28
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by fragos
System-> Administration-> Disks-> Select your 2nd disk-> Partitions tab-> name and enable. If your disk isn't listed you will need to edit /etc/fstab. I'm not expert at fstab but I believe the adding the following line should work:

/dev/hdb1 /vault ext3 defaults 0 2

Your system will boot with /vault mounted.
After some more research, I was able to get it working.
this is my /etc/fstab now.,

# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdb1 /vault ext3 defaults 0 0

Thanks my friend!
 
Old 08-17-2006, 02:01 AM   #29
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
I'd suggest
Quote:
Originally Posted by randell6564
...
/dev/hdb1 /vault ext3 defaults 1 1
this will enable the disk check during boot. It is really fast on ext3.
@ fragos A "2" is reserved for "/ " AFAIK.
Code:
man fstab
.

Quote:
Originally Posted by anirudh.iitm
...what does the /etc/fstab error "umask=0000" mean...
It is no error, it is rather the "chmod" in /etc/fstab's mounting sequence but it works inversely => "umask=0000" in /etc/fstab is equivalent to "chmod 777 /my/file" on the console. Again
Code:
man fstab
it is all explained in detail here.

Last edited by JZL240I-U; 08-17-2006 at 02:05 AM.
 
Old 08-17-2006, 10:24 AM   #30
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by JZL240I-U
I'd suggest this will enable the disk check during boot. It is really fast on ext3.
Thank You, JZ. off to change it! Thanks to all of you!
 
  


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
Linux won't write to a Windows-created folder joshknape Linux - Newbie 6 07-25-2005 10:05 PM
Delete partition created by YAST trying to install SUSE 9.2 giuliano1 Linux - Newbie 1 05-03-2005 11:14 PM
how to delete file created as cat > --vp manikanth04 Linux - General 2 10-03-2004 06:51 AM
If I delete files are new ones created?? BajaNick Linux - Software 1 07-06-2004 11:07 PM
delete fle #a.c# created by emacs herambshembekar Linux - Newbie 4 02-28-2002 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:54 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