LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2016, 10:22 AM   #31
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled

Awesome. I feel more confident about the install now. I am sure I will have questions after completing the install and reading the manuals.
 
Old 05-27-2016, 10:30 AM   #32
Erentigionation
Member
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by Belikewater View Post
Very helpful! Thank you both. Now I get the mounting of /home. I have been re-watching install videos. I never have partitioned before so last time i tried i failed. Last question here hopefully. When I am assigning the space can I use GB or do I have to use KB? seems like in all the videos they have it in KB. Do i convert them or just put for example 50GB for root and be done with it
If you're using fdisk to partition the drive, you have to specify the beginning and ending sector of each partition. I determined these using a calculator (a TI-84+ mind you; a pocket calculator most likely won't be sufficient).

You can also use cfdisk, which is a full-screen alternative to fdisk. I've never specified a partition size in cfdisk though, so I don't know how it's done.

Last edited by Erentigionation; 05-27-2016 at 10:33 AM.
 
Old 05-27-2016, 10:59 AM   #33
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
Yikes the beginning and ending sectors. I dont know anything about that. I am going to re-watch the install tutorial on Youtube now.
 
Old 05-27-2016, 11:23 AM   #34
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Erentigionation View Post
If you're using fdisk to partition the drive, you have to specify the beginning and ending sector of each partition. I determined these using a calculator (a TI-84+ mind you; a pocket calculator most likely won't be sufficient).

You can also use cfdisk, which is a full-screen alternative to fdisk. I've never specified a partition size in cfdisk though, so I don't know how it's done.
This is done automatically in fdisk. You don't need to worry about it. Just specifying the size in G or whatever you will be able to just use the default sectors that fdisk indicates.
 
1 members found this post helpful.
Old 05-27-2016, 11:29 AM   #35
Erentigionation
Member
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 31

Rep: Reputation: Disabled
Basically what you want to do is take the starting/ending gigabyte, multiply by 2^30 to get the byte number, then divide by the sector size (usually 512, but it will say in fdisk if you type "p") to get the sector number.
 
Old 05-27-2016, 11:30 AM   #36
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
With fdisk, you don't need to know about the sectors. By default, it will start with the first available sector, then you just specify the size you want... In other words, just use the defaults for the start, the actual size you want for the "Last sector" except for the last partition, just use the default last sector (as that'll use the full remaining amount of space on the drive. Here is a quick run through on one of my 1TB drives (with fdisk, so cfdisk will not look the same, but I'd assume the process would still be similar).

Code:
fdisk /dev/sdf
Welcome to fdisk (util-linux 2.21.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1): 
Using default value 1
First sector (2048-1953525167, default 2048): 
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-1953525167, default 1953525167): +500G
Partition 1 of type Linux and of size 500 GiB is set

Command (m for help): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): 
Using default response p
Partition number (1-4, default 2): 
Using default value 2
First sector (1048578048-1953525167, default 1048578048): 
Using default value 1048578048
Last sector, +sectors or +size{K,M,G} (1048578048-1953525167, default 1953525167): 
Using default value 1953525167
Partition 2 of type Linux and of size 431.5 GiB is set

Command (m for help): p

Disk /dev/sdf: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 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: 0x71b70c68

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1            2048  1048578047   524288000   83  Linux
/dev/sdf2      1048578048  1953525167   452473560   83  Linux
 
3 members found this post helpful.
Old 05-27-2016, 11:31 AM   #37
Erentigionation
Member
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post
This is done automatically in fdisk. You don't need to worry about it. Just specifying the size in G or whatever you will be able to just use the default sectors that fdisk indicates.
So do you mean you type, say, "10G" to specify a 10 GB partition? I did not know that. Still fairly new to fdisk.
 
Old 05-27-2016, 11:36 AM   #38
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
Gotcha so I should choose fdisk instead of cfdisk?

Sorry posted before refreshing the page

Thats what I needed Bass!! Thanks for breaking it down for me.

Last edited by Belikewater; 05-27-2016 at 11:39 AM.
 
Old 05-27-2016, 11:37 AM   #39
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Erentigionation View Post
So do you mean you type, say, "10G" to specify a 10 GB partition? I did not know that. Still fairly new to fdisk.
Basically, yes. The expression would be "+10G" for 10 GB.
 
Old 05-27-2016, 11:39 AM   #40
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Belikewater View Post
Gotcha so I should choose fdisk instead of cfdisk?

Sorry posted before refreshing the page
Dealers choice I suppose. I am using a BIOS/MBR setup so fdisk works perfectly for me and it is relatively easy.
 
Old 05-27-2016, 11:39 AM   #41
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
was too slow

Last edited by BCarey; 05-27-2016 at 12:02 PM.
 
Old 05-27-2016, 11:43 AM   #42
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,176

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Erentigionation View Post
So do you mean you type, say, "10G" to specify a 10 GB partition? I did not know that. Still fairly new to fdisk.
If you're new to fdisk then please refrain from giving misleading advice to other users. Partitioning is not something done for fun and people who follow misleading, ill-informed advice run the risk of losing their data.
 
1 members found this post helpful.
Old 05-27-2016, 12:13 PM   #43
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Erentigionation View Post
So do you mean you type, say, "10G" to specify a 10 GB partition? I did not know that. Still fairly new to fdisk.
Just as a reminder, fdisk will prompt you on what it wants... just make sure you read everything it prints so you don't do the wrong thing.

Quote:
Last sector, +sectors or +size{K,M,G}
Basically, it will allow you to specify a specific sector you want to end at (just specify the actual sector you want it to end at), to create a partition how ever many sectors large you want it to be (put a plus sign in front of the number and it will make the partition that many sectors large), or you can use actual byte references to how big you want the partition (the plus sign followed by the size in K, M, or G (looks like I might've been incorrect in it letting you use T for terabytes, but fdisk doesn't support volumes over 2TBs anyway, so not supporting T isn't a huge deal)).

Probably muddied the waters with that one
 
Old 05-27-2016, 12:14 PM   #44
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by gezley View Post
If you're new to fdisk then please refrain from giving misleading advice to other users. Partitioning is not something done for fun and people who follow misleading, ill-informed advice run the risk of losing their data.
Yes, and another problem with the `calculator approach` with modern advance format drives is if you get it wrong, performance will suck too.

http://www.storagereview.com/the_impact_of_misalignment

These days, I trust fdisk -- it's way smarter than I am.

-- kjh
 
Old 05-27-2016, 07:32 PM   #45
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
I am trying to write Slackware to USB via terminal. I tried

sudo dd if=/home/lucifer/Desktop/slackware64-14.1-iso of=/dev/sdb oflag=direct bs=1048576
I get this error:
dd: failed to open ‘/home/lucifer/Desktop/slackware64-14.1-iso’: No such file or directory

I tried dd if=/home/lucifer/Desktop/slackware64-14.1-iso of=/dev/sdb bs=1M

and

if=/home/lucifer/Desktop/slackware64-14.1-iso of=/dev/sdb


lucifer@lucifer-Satellite-C655:~/Desktop/lxle-14.04.4-64bit$ sudo dd if=/home/lucifer/Desktop/slackware64-14.1-iso of=/dev/sdb oflag=direct bs=1048576
dd: error reading ‘/home/lucifer/Desktop/slackware64-14.1-iso’: Is a directory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00279267 s, 0.0 kB/s



Still no luck. Here is the output from sudo fdisk -l

Device Boot Start End Blocks Id System
/dev/sdb1p1 * 0 3088639 1544320 0 Empty
/dev/sdb1p2 3076268 3080811 2272 c W95 FAT32 (LBA)

Last edited by Belikewater; 05-27-2016 at 07:46 PM.
 
  


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
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

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

All times are GMT -5. The time now is 04:08 AM.

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