LinuxQuestions.org
Visit Jeremy's Blog.
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 05-15-2011, 05:52 PM   #16
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839

Quote:
Originally Posted by RockDoctor View Post
I think a swap file (even if it has to go on a flash drive) would help.
With only 256MB RAM I would second that.
 
Old 05-15-2011, 07:54 PM   #17
preembargo
LQ Newbie
 
Registered: May 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by RockDoctor View Post
I think a swap file (even if it has to go on a flash drive) would help.
Rock, where would I get a 'swap file'?

edit-
Dohh!!
For a moment I thought you were suggesting a file download. I'll read up on how to create a swapfile. Thanks!!

Last edited by preembargo; 05-15-2011 at 08:20 PM. Reason: Brain fart cleared
 
Old 05-16-2011, 07:20 AM   #18
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,571

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
Quote:
Originally Posted by preembargo View Post
Rock, where would I get a 'swap file'?

edit-
Dohh!!
For a moment I thought you were suggesting a file download. I'll read up on how to create a swapfile. Thanks!!
Had a good laugh when I saw your edit.

Anyway, here's a reference for you:
http://www.cyberciti.biz/faq/linux-a...ap-file-howto/
 
1 members found this post helpful.
Old 05-16-2011, 07:52 PM   #19
preembargo
LQ Newbie
 
Registered: May 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks Doc (may i call you doc?), unfortunatly the author assumes a degree of understanding that I seem to lack. Where am I going wrong here?
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	18
Size:	82.8 KB
ID:	7037  
 
Old 05-16-2011, 08:05 PM   #20
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
You have done it right. The only thing is that you have to be root to activate a swap-file. Try it with
Code:
sudo swapon /swapfile1
 
Old 05-17-2011, 03:34 AM   #21
preembargo
LQ Newbie
 
Registered: May 2011
Posts: 11

Original Poster
Rep: Reputation: 0
uggghhh, I don't seem to be getting any closer. I've tried various combinations of "su -" login but to no avail.
Attached Thumbnails
Click image for larger version

Name:	Last screenshot.JPG
Views:	11
Size:	119.9 KB
ID:	7039   Click image for larger version

Name:	Screenshot 4.JPG
Views:	13
Size:	114.4 KB
ID:	7040  
 
Old 05-17-2011, 04:41 AM   #22
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
OK, I now see where the failure comes from. You try to make the swapfile in your /-directory. Since you are using a live-medium (which is read-only), write accesses to / are cached into RAM. Creating a swapfile of 512MB in 256MB RAM will obviously not work. You have to create the swapfile either on your USB-drive or on the harddisk.
 
Old 05-17-2011, 12:46 PM   #23
preembargo
LQ Newbie
 
Registered: May 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Tobi, what command do I need to change? I've been following the steps laid out in the link below.

Quote:
Originally Posted by RockDoctor View Post
Had a good laugh when I saw your edit.

Anyway, here's a reference for you:
http://www.cyberciti.biz/faq/linux-a...ap-file-howto/
 
Old 05-17-2011, 12:55 PM   #24
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
You have to mount either the USB-drive or a aprtition on your harddisk and create the file there. For example, if your Windows partition is /dev/sda1 then you do
Code:
mount -t ntfs-3g /dev/sda1 /mnt
dd if=/dev/zero of=/mnt/swapfile bs=512M count=1
mkswap /mnt/swapfile
swapon /mnt/swapfile
 
Old 05-17-2011, 01:00 PM   #25
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,208

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Quote:
Originally Posted by preembargo View Post
I'm a first time (or should I say future) linux user, what would be a good starter distro to use with this system?
OpenBSD
 
Old 05-17-2011, 05:22 PM   #26
preembargo
LQ Newbie
 
Registered: May 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
You have to mount either the USB-drive or a aprtition on your harddisk and create the file there. For example, if your Windows partition is /dev/sda1 then you do
Code:
mount -t ntfs-3g /dev/sda1 /mnt
dd if=/dev/zero of=/mnt/swapfile bs=512M count=1
mkswap /mnt/swapfile
swapon /mnt/swapfile
How would I do this for the USB?
 
Old 05-17-2011, 05:31 PM   #27
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
You have to find out which device descriptor your USB has. You can do that with with
Code:
sudo fdisk -l
If I issue that command on my laptop I get this output:
Code:
Disk /dev/sda: 40.0 GB, 40020664320 bytes
32 heads, 32 sectors/track, 76333 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x51116ede

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            1024     4196351     2097664   82  Linux swap
/dev/sda2   *     4196352    25168895    10486272   83  Linux
/dev/sda3        25168896    78164991    26498048   83  Linux

Disk /dev/sdc: 16.0 GB, 16039018496 bytes
64 heads, 32 sectors/track, 15296 cylinders, total 31326208 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x421405b0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048    31326207    15662080    b  W95 FAT32
You can see here my 40GB SSD as /dev/sda with three partitions (sda1-3) and my 16GB usb-drive /dev/sdc with one partition (sdc1). You should get something similar, of course you most likely will get other partitions and sizes.
So now that I know that my USB partition is /dev/sdc1 I just replace /dev/sda1 with /dev/sdc1 in the mount command given above. The other commands stay the same. Of course, in my my case the -t ntfs-3g option won't work, since that partition is formatted in FAT32. If you don't use NTFS on the partition you want to mount just omit -t ntfs-3g in the command.

Last edited by TobiSGD; 05-17-2011 at 06:33 PM.
 
Old 05-17-2011, 06:16 PM   #28
rediflex
Member
 
Registered: Apr 2011
Distribution: Linux Mint, antiX, crunchbang
Posts: 33

Rep: Reputation: 3
Quote:
Originally Posted by preembargo View Post
When downloading and transfering Crunchbang and AntiX to my USB via universal USB installer I received several "file broken" errors.
Crunchbang I've never looked into making into a USB, Antix has to be made into a USB install a certain way, see this thread for a walkthrough on how to create a persistent USB install: http://antix.freeforums.org/viewtopi...it=antix%20usb

Hope that helps!
 
Old 05-17-2011, 06:21 PM   #29
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,194

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
CrunchBang also has a specific USB install method, described here:

http://crunchbanglinux.org/wiki/stat...b_installation
 
  


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
Linux takes time to release file handles coolrb Linux - Server 2 09-06-2010 01:16 AM
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
Hello all 2nd time linux user ...first time wasn't so successful kennypoopoo Linux - Newbie 3 09-11-2008 01:14 PM
First time user needs help with bypassing a start up screen. aNi-DiFrAnCo Linux - Newbie 27 07-23-2004 07:41 PM
`Shutdown now` goes to single user mode? Paused Start time guardian653 Linux - Security 1 12-11-2003 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration