SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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): +500GPartition 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
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.
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.
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)).
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.