LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-03-2012, 12:14 AM   #1
macnab
LQ Newbie
 
Registered: Dec 2011
Posts: 20

Rep: Reputation: Disabled
Technical question: /dev/sda1 vs /mnt/sda1


Is there not a speed loss (via redirection) to writing (via a network) to /mnt/sda1 rather than /dev/sda1?

Not that I'm advocating writing to /dev/sda1.
 
Old 01-03-2012, 01:57 AM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
/dev/sda1 is the raw hard drive partition. It's not usable for storing data until it is mounted to a folder. In your case, /mnt/sda1 is the mounted folder. There is no way to write files directly into /dev/sda1.
In your case, The speed would probably be more related to the network connection and protocol used for file transfer.
 
Old 01-03-2012, 03:22 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Of course, writing to filesystem may be slower than writing linearly to a block device. If you have 100-megabit network, the question is likely moot because 10MB/s network transfer is probably slower than FS write. If you write big files over gigabit network and it is the primary function of one of the filesystems on the computer, it may be useful to test different FS options - they can differ noticeably in large-file write speeds.

Also, using fallocate befoire writing may be useful.
 
Old 01-03-2012, 04:22 AM   #4
macnab
LQ Newbie
 
Registered: Dec 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
TRue, my wirelss network is the bottleneck. A different FS is not viable as I am making backup disks that are instantly swappable for my Windows machine. This pretty much rules out fallocate as well.
 
Old 01-03-2012, 04:38 AM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Actually, Linux VFAT driver seems to support fallocate somehow. But "backups over WiFi" means that nobody has any reason to care about speed.
 
Old 01-03-2012, 04:58 AM   #6
macnab
LQ Newbie
 
Registered: Dec 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
I use Microsoft's SyncToy, so speed is not really an issue as it only sends changes, and at least having a backup box in a different room is a lot better than having the original and backup disks in the same machine.

I in any case carry on with other work while the backup is running. Or go and make lunch.
 
  


Reply


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
Does chown user /mnt/sda1 make sda1 writeable over network? macnab Linux - Newbie 7 12-30-2011 02:25 AM
Need to resize sda1 but sda2 & sda3 is between sda1 and unallocated space. tony128 Linux - Newbie 6 09-13-2010 12:15 AM
Trying to Mount USB mounting /dev/sda1 on /mnt/usb failed: Invalid argument JamesMore Linux - Newbie 9 07-28-2010 03:27 PM
/dev/sda1 already mounted or /mnt busy. (SATA Sil 3112) psamuel01 Red Hat 14 10-10-2008 03:59 PM


All times are GMT -5. The time now is 09:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration